Improve the state of Python linting #5843
Labels
Lead: @cclauss
Issues overseen by Chris (Python3 & Dev-ops lead 2019-2021) [managed]
Priority: 2
Important, as time permits. [managed]
Type: Epic
A feature or refactor that is big enough to require subissues. [managed]
Type: Refactor/Clean-up
Issues related to reorganization/clean-up of data or code (e.g. for maintainability). [managed]
Milestone
Python linting is currently a problem. Everyone is constantly being hit with linting issues, creating new commits to fix linting issues, either wasting manual time to fix issues or using automatic commands that make changes to loads of unrelated places. And it makes our git history a mess, and diffs/PRs hard to read.
I think the end goal we want is: Easy way to automatically apply linting before a commit happens.
A subtask of #4776
Steps to get there:
flake8 --select=E9,F63,F7,F82
; only catch syntax errors and undefinedscripts/flake8-diff.sh
#5842/tests
pyupgrade + black on/tests
#5338/scripts
pyupgrade + black on/scripts
#5841/openlibrary
pyupgrade + black+ codespell code for the entire repo #5855Stakeholders
@cclauss @RayBB @jimman2003
The text was updated successfully, but these errors were encountered: