-
-
Notifications
You must be signed in to change notification settings - Fork 655
reactive the code style checks using ruff #40122
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
Conversation
@tobiasdiez please review ! |
commands = pycodestyle --select E111,E115,E21,E221,E222,E225,E227,E228,E25,E271,E272,E275,E302,E303,E305,E306,E401,E502,E701,E702,E703,E71,E72,W291,W293,W391,W605 {posargs:{toxinidir}/sage/} | ||
pycodestyle --select E111,E222,E271,E301,E302,E303,E305,E306,E401,E502,E703,E712,E713,E714,E72,W29,W391,W605, --filename *.pyx {posargs:{toxinidir}/sage/} | ||
commands = | ||
pycodestyle --select E111,E115,E21,E221,E222,E225,E227,E228,E25,E271,E272,E275,E302,E303,E305,E306,E401,E502,E701,E702,E703,E71,E72,W291,W293,W391,W605 {posargs:{toxinidir}/sage/} |
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.
What do you think about completely removing everything related to pycodestyle from the code base? Or do you think its worth to maintain this still in parallel to ruff?
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 also checks cython files, so let us keep that for the moment
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.
Fair enough. For reference, cython support in ruff is astral-sh/ruff#10250.
sagemathgh-40122: reactive the code style checks using ruff in order to avoid fixing them again at every release ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40122 Reported by: Frédéric Chapoton Reviewer(s): Frédéric Chapoton, Tobias Diez
sagemathgh-40122: reactive the code style checks using ruff in order to avoid fixing them again at every release ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40122 Reported by: Frédéric Chapoton Reviewer(s): Frédéric Chapoton, Tobias Diez
sagemathgh-40122: reactive the code style checks using ruff in order to avoid fixing them again at every release ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40122 Reported by: Frédéric Chapoton Reviewer(s): Frédéric Chapoton, Tobias Diez
Damn, this is not run by the linter ! Why is there another configuration for the linter ? |
follow up of sagemath#40122 about using ruff to check code formatting in the lint CI ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40208 Reported by: Frédéric Chapoton Reviewer(s): Tobias Diez
sagemathgh-40208: add checks to the linter once again follow up of sagemath#40122 about using ruff to check code formatting in the lint CI ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40208 Reported by: Frédéric Chapoton Reviewer(s): Tobias Diez
sagemathgh-40208: add checks to the linter once again follow up of sagemath#40122 about using ruff to check code formatting in the lint CI ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40208 Reported by: Frédéric Chapoton Reviewer(s): Tobias Diez
sagemathgh-40208: add checks to the linter once again follow up of sagemath#40122 about using ruff to check code formatting in the lint CI ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40208 Reported by: Frédéric Chapoton Reviewer(s): Tobias Diez
sagemathgh-40208: add checks to the linter once again follow up of sagemath#40122 about using ruff to check code formatting in the lint CI ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40208 Reported by: Frédéric Chapoton Reviewer(s): Tobias Diez
sagemathgh-40208: add checks to the linter once again follow up of sagemath#40122 about using ruff to check code formatting in the lint CI ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#40208 Reported by: Frédéric Chapoton Reviewer(s): Tobias Diez
in order to avoid fixing them again at every release
📝 Checklist