Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bump test dependencies; improve pycln config #9197

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

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

AlexWaygood
Copy link
Member

  • Bump mypy to 0.991

  • Bump pytype to 2022.11.10

  • Bump pycln to 2.1.2

  • Enable the new disable_all_dunder_policy flag for pycln.

    This flag means that pycln treats __init__.py(i) files just like normal .py(i) files. By default, pycln is much more cautious when removing imports from __init__.py(i) files due to the fact that many projects use "redundant" imports in __init__.py files for implicit reexports. But it doesn't make sense for pycln to apply the same level of caution to __init__.pyi files in stubs, where all imports are "private to the stub" except imports using the import foo as foo idiom. So it makes sense to enable this flag for typeshed.

  • Put all pycln config in the pyproject.toml file instead of hardcoding it into the .pre-commit-config.yaml file.

@AlexWaygood
Copy link
Member Author

AlexWaygood commented Nov 14, 2022

PR to my typeshed fork showing that pycln still works fine in CI with the new config setup: AlexWaygood#7

@JelleZijlstra JelleZijlstra merged commit 263427f into python:main Nov 14, 2022
@AlexWaygood AlexWaygood deleted the 991 branch November 14, 2022 20:01
@Avasam
Copy link
Collaborator

Avasam commented Nov 15, 2022

@AlexWaygood I think you missed a --all in runtests.py

AlexWaygood added a commit that referenced this pull request Nov 15, 2022
An oversight in #9197 that was noticed by @Avasam post-merge (thanks!)
JelleZijlstra pushed a commit that referenced this pull request Nov 15, 2022
…9202)

An oversight in #9197 that was noticed by @Avasam post-merge (thanks!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.