-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEV/STYLE: use ruff for linting #50160
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 12 commits
678252d
dacc803
46cdce3
9aedb84
00b7f37
27963c0
cdebc83
b2223f5
407e962
21495ea
db0cf96
1774eb5
d077ec8
0fa40d8
a5e6c10
bb5d7e5
61437df
2e1a4aa
2aaaa72
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 |
---|---|---|
|
@@ -78,12 +78,11 @@ dependencies: | |
- black=22.10.0 | ||
- cpplint | ||
- flake8=6.0.0 | ||
- flake8-bugbear=22.7.1 # used by flake8, find likely bugs | ||
- isort>=5.2.1 # check that imports are in the right order | ||
- mypy=0.991 | ||
- pre-commit>=2.15.0 | ||
- pycodestyle # used by flake8 | ||
- pyupgrade | ||
- ruff=0.0.205 | ||
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. Needs to be synced with pre-commit (ideally enforced or comments in both files) 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. Should ruff actually be here? People are supposed to run pre-commit. 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 think we don't require people to use pre-commit (only recommend it in our contributing guide). In general the environment seems to contain all tools, it also includes black, isort, etc |
||
|
||
# documentation | ||
- gitpython # obtain contributors from git for whatsnew | ||
|
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.
ruff
has its own version ofyesqa