-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Remove lint logic from setup.py #4201
Conversation
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.
Hi, Thanks for this.
I think we still need a place to put commands that can be run during development. But I'm not sure if there even is a new place in whatever the latest python packaging way is to do this? In old Makefile projects this might be in make check
. npm projects have a package.json scripts. Rust projects have task runners like cargo make. Seems tasks aren't standardised in python yet... except in distutils/setuptools commands.
I left a note about the docs check in CI probably still needing to be there. I guess that will move to precommit too eventually?
The following will work...
|
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.
👍 thanks
Not related to this PR exactly... I noticed the pre-commit that comes with Ubuntu 22.04 is a bit too old for our config. There also aren't any install instructions for pre-commit with Ubuntu and other OS that work for me on the install page https://pre-commit.com/#install |
After #4200 is mergedremove lint logic from setup.pypython3 setup.py lint
is deprecated: Let's lint withpre-commit
#4200To replace the commands that were removed from
setup.py
, the following will work...pre-commit run black
pre-commit run clang-format
pre-commit run --all-files