-
Notifications
You must be signed in to change notification settings - Fork 218
pre-commit: Replace flake8, isort, and pyupgrade with ruff #584
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# [tool.ruff] # <- TODO Uncomment when migrating to pyproject.toml | ||
exclude = [ | ||
".eggs", | ||
".tox", | ||
"build", | ||
"ci/templates", | ||
"dist", | ||
] | ||
line-length = 140 | ||
select = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well all I want is to not hardcode a ruleset (which How about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are way too many categories to enable manually. I'd expect that there are more good checks than broken or bad ones. I noticed it's aggressive ... or rather destructive. That's why I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok so I've played with it a bit more.... now I am not really sure what the best way... eg: these are either invalid checks or would be a pain to sort out, or not even worth fixing:
Now considering that rsync features are being dropped in xdist ... a lot of bulk using that in pytest-cov becomes unnecessary, if it isn't already as some people are suggesting pytest-cov is not necessary for getting xdist support... I guess select with a few is fine for now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So... How should we proceed? Given your explorations and your knowledge of the codebase, do you want to open a new PR that cherry-picks from this one? I have no trouble closing this with unmerged commits. Or should I press on? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd also recommend the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there somewhere proof that C4 mods increase performance? |
||
"E", | ||
"F", | ||
"I", | ||
"PLC", | ||
"PLE", | ||
"UP", | ||
"W", | ||
] | ||
target-version = "py37" | ||
|
||
# [tool.ruff.isort] # <- TODO Uncomment when migrating to pyproject.toml | ||
cclauss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[isort] | ||
# default-section = "THIRDPARTY" | ||
force-single-line = true | ||
forced-separate = ["test_pytest_cov"] | ||
known-first-party = ["pytest_cov"] |
Uh oh!
There was an error while loading. Please reload this page.