Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
GH-109408: Add a make lint target#122333
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
base:main
Are you sure you want to change the base?
Conversation
AA-Turner commented Jul 26, 2024 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
encukou commented Jul 27, 2024
Who vouches for the security of the software that |
erlend-aasland commented Jul 27, 2024
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. |
encukou commented Jul 27, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Yup. For pip & setuptools it's PyPA; for compilers it's (for me) the distro. Here it's harder to keep up. |
AA-Turner commented Jul 27, 2024
Repeating Greg's comment from the Discourse thread re naming:
|
AA-Turner commented Jul 27, 2024
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 |
hugovk commented Jul 27, 2024
Also it is not required to install it locally, it runs on CI in any case. |
erlend-aasland commented Jul 27, 2024
Yep. You don't need to install this, @encukou; it's optional :) |
encukou commented Jul 29, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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 linttarget, 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