-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style: add pre-commit, typos and ruff, fix several #64
Conversation
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: mixed-line-ending | ||
# - id: trailing-whitespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't work well with .err
files.
ignore = [ | ||
"COM812", "ISC001", # conflicting with the formatter | ||
"S101", # Use of `assert` detected | ||
"B905", # `zip()` without an explicit `strict=` parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This last lint could probably be fixed and removed from ignore
. I didn't want to assume.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From memory it should be fine to add strict=True
to every zip, but should check to make sure. I added an issue #65 for this
"T10", # flake8-debugger | ||
"T20", # flake8-print | ||
"TCH", # flake8-type-checking | ||
# "TD", # flake8-todos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many of these commented out lints can be enabled if desired.
ignore = [ | ||
"COM812", "ISC001", # conflicting with the formatter | ||
"S101", # Use of `assert` detected | ||
"B905", # `zip()` without an explicit `strict=` parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From memory it should be fine to add strict=True
to every zip, but should check to make sure. I added an issue #65 for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you! Feel free to merge
ruff.toml
with some sane lints, with some disabledMANIFEST.in
requirements.txt
Fixes #63