Closed
Description
Having pylint in CI would've prevented a bug from entering 1.5.0 #48736
So let's add pylint as a pre-commit hook
pylint has a lot of options - some duplicative of what's already in flake8
, others arguably too opinionated, others that we'd like to eventually enable but perhaps not all in one go
So, the task here is:
- add
pylint
to https://github.com/pandas-dev/pandas/blob/main/.pre-commit-config.yaml - run
pre-commit run pylint --all-files
- fixup any linting errors which come up. If some linting error would require big changes to lots of files, or refactoring, then it's OK to turn it off for now, see pylint configuration
- once
pre-commit run pylint --all-files
passes, then stage, commit, and push! Feel free to tag me in the PR