-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
GH-109408: Add a make lint
target
#122333
base: main
Are you sure you want to change the base?
Conversation
Who vouches for the security of the software that |
It is installed in a virtual environment. We already require folks to install third-party dependencies for extension module, not to mention various compiler toolchains for building. |
Yup. For pip & setuptools it's PyPA; for compilers it's (for me) the distro. Here it's harder to keep up. |
Repeating Greg's comment from the Discourse thread re naming:
|
I think there are a couple of approaches we could take here. One is to use the On a more philosophical level, I'm not sure the level of assurance we can provide -- to take the PyPA per your example, they provide a high level governance framework, rather than managing individual projects. A good example might be the documentation, where we pull in Sphinx, sphinxext-opengraph, sphinx-notfound-page, and many dependencies. There is no CPython assurance of any of these projects (beyond perhaps 'blurb' and 'python-docs-theme'). My proposal would be to use an OS-provided binary if it exists, which would also benefit in avoiding a venv if the user has pre-commit globally installed. Would this alleviate your concerns? A |
Also it is not required to install it locally, it runs on CI in any case. |
Yep. You don't need to install this, @encukou; it's optional :) |
The
Right, I said PyPA for short. The long story is that
Yes. That's another place where I think we could improve handling the security implications.
Sure, I'm not really planning to use this. |
I am almost certainly not the best person to do this, given I use Windows and I am not confident in testing changes to the Makefile.
However, this is a sketch of a solution to adding a
make lint
target, as discussed in on Discourse and related to #109895.Please feel free to push to this branch if you have improvements / spot glaring errors.
A