-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Upgrade linters #12454
Upgrade linters #12454
Conversation
No idea yet why those tests are failing. I can't reproduce locally. |
@sbidoul I was setting up a fresh pip development environment last night and I ran into similar issues locally. I've tracked it down to the latest setuptools release: v69.0.3. This release contains pypa/setuptools@d0b0a4d which changes If you remove the cached nox environments, AFAIU you should run into similar failures.
If you force the test suite to use the previous setuptools release, the failing tests start to pass again. diff --git a/tests/requirements-common_wheels.txt b/tests/requirements-common_wheels.txt
index 6403ed738..a440487e8 100644
--- a/tests/requirements-common_wheels.txt
+++ b/tests/requirements-common_wheels.txt
@@ -6,6 +6,7 @@
# (Adjust artifact directory used based on preference and operating system)
setuptools >= 40.8.0, != 60.6.0
+setuptools == 69.0.2
wheel
# As required by pytest-cov.
coverage >= 4.4 This probably warrants a new issue, but I'm not making that call as a brand new contributor 🙂 |
@ichard26 Would you like to file a PR fixing the tests that are failing due to the normalisation changes? |
Sure! That'd be great. I've got people over tomorrow so I'm not sure how long the PR will take, but I'll take a crack at it. |
I need some pip developer input on pypa/setuptools#4167 to fix the failing tests. Either pip needs to update its egg-link logic to be more permissive or setuptools will revert part of a behavioural change. |
71cb63f
to
ca6971d
Compare
🍏 |
.pre-commit-config.yaml
Outdated
@@ -17,18 +17,18 @@ repos: | |||
exclude: .patch | |||
|
|||
- repo: https://github.com/psf/black |
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.
For a faster mypyc-compiled wheel:
- repo: https://github.com/psf/black | |
- repo: https://github.com/psf/black-pre-commit-mirror |
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.
Not for right now, but maybe at some point we should switch to ruff instead of black? Presumably it's even faster...
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.
👍 I use the ruff formatter on several of my projects and have been very satisfied with it.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
No description provided.