Giter Site home page Giter Site logo

line length decision about securesystemslib HOT 8 CLOSED

jku avatar jku commented on July 17, 2024
line length decision

from securesystemslib.

Comments (8)

L77H avatar L77H commented on July 17, 2024 3

Most of the lines exceeding 80 chars limit are input data strings like public keys, it could make the code more cluttered when breaking those over multiple lines to fall within 88 chars.

from securesystemslib.

lukpueh avatar lukpueh commented on July 17, 2024 1

Okay thanks, that's still better than fixing the 125 non-test lines to fit 80. Let's do it.

from securesystemslib.

L77H avatar L77H commented on July 17, 2024

I would be in support of adopting the ruff default line length of 88 chars. This would reduce the number of errors from 125 to just 8 (ignoring tests) which is a quick manual fix and gives more leeway in the code style for future development.

For tests we can just ignore those with inline error suppression.

from securesystemslib.

joshuagl avatar joshuagl commented on July 17, 2024

Any reason we wouldn't fix tests too if we switch the ruff default 88char?

from securesystemslib.

joshuagl avatar joshuagl commented on July 17, 2024

Thanks. The 88char default for non-test files seems like a sound approach.

from securesystemslib.

L77H avatar L77H commented on July 17, 2024

If we agree on changing the line length to 88 chars, i'll make the changes and create a new PR so we can close this issue.

from securesystemslib.

lukpueh avatar lukpueh commented on July 17, 2024

Thanks. The 88char default for non-test files seems like a sound approach.

Agreed. I don't have a strong opinion about 80 vs. 88, but I'm very much pro sane defaults and minimal diffs.

Regarding minimal diff, I'm curious, will the switch also unwrap many lines because there is more space now?

from securesystemslib.

L77H avatar L77H commented on July 17, 2024

On first sight there are around 39 unwraps across 14 files when going from 80 to 88, excluding test files.

from securesystemslib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.