Comments (8)
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.
Okay thanks, that's still better than fixing the 125 non-test lines to fit 80. Let's do it.
from securesystemslib.
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.
Any reason we wouldn't fix tests too if we switch the ruff default 88char?
from securesystemslib.
Thanks. The 88char default for non-test files seems like a sound approach.
from securesystemslib.
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.
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.
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)
- fix permisssions on check-upstream-ed25519 workflow
- ed25519 upstream has new commits
- ecdsa keytypes issue, again HOT 1
- Remove legacy interfaces/implementation HOT 3
- Auto-update pre-commit plugins HOT 8
- Issues for KubeCon EU contribfest HOT 2
- review default signer & key selection HOT 3
- AzureSigner: import_ may return *unsupported* ecdsa-sha2-nistp521 scheme
- AWSSigner: may return *incorrect* ecdsa-sha2-nistp512 scheme
- SSlibKey: consider stronger validation of keytype/scheme for keyval HOT 1
- SigstoreSigner is temporarily broken HOT 2
- gpg tests fail if a yubikey is connected HOT 3
- Get a CryptographyDeprecationWarning just calling generate_ecdsa_key() HOT 2
- CryptoSigner should expose private key bytes
- 1.0 release HOT 3
- VaultSigner test unexpectedly does not depend on environment variables
- modify pre-commit-config.yaml
- linter: ruff coverage HOT 3
- Collection of suppressed Ruff Linter errors to review (noqa) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from securesystemslib.