-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Upgrade flake8 in CI and pre-commit hook. #48022
Comments
I'd like to take this |
@CheyuWu could you tell me which rules should be ignored? I'll open seperate sub-issues for them |
format.sh
, .pre-commit-config.yaml
, and .flake8
, ignore all rules that will cause code change.format.sh
, .pre-commit-config.yaml
, and .flake8
. Ignore all rules that will cause code change.
|
@CheyuWu and @MortalHappiness , do you two know each other and work together? |
@CheyuWu @MortalHappiness I think this is a good opportunity to fix the lint errors before the flake8 upgrade so we don't keep kicking this technical debt down the road. Instead of ignoring and upgrading just flake8 can we instead of fix the lint errors than proceed with the upgrade? @aslonnie @kevin85421 can shepherd this in as well so in CC. |
@anyscalesam I have upgraded linters in other projects before, and from my experience, it’s better to upgrade the linter first and ignore the new rules for now. This is because linter upgrades usually take serveral PRs and iterations, and new commits will likely be added during that period. If you only update the linter configuration at the end, you might have to fix new style errors caused by the latest commits. That’s why I set the first subtask to upgrade the linter but ignore the new rules for now. Here is a parent issue tracking the flake8 upgrade progress. #47991 |
format.sh
, .pre-commit-config.yaml
, and .flake8
. Ignore all rules that will cause code change.
This is a subtask of #47991. See the parent issue for more information.
The text was updated successfully, but these errors were encountered: