Skip to content

Re-order ruff runs in pre-commit - #11737

Merged
AlexWaygood merged 2 commits into
python:mainfrom
Avasam:Re-order-ruff-runs-in-pre-commit
Apr 9, 2024
Merged

AlexWaygood merged 2 commits into
python:mainfrom
Avasam:Re-order-ruff-runs-in-pre-commit

Conversation

@Avasam

@Avasam Avasam commented Apr 9, 2024

Copy link
Copy Markdown
Collaborator

Unnecessary sys.version_info blocks removal should be run first as it can leave unused imports behind.

Realistically this can probably be removed after #11694 and #11696 as the mypy-protobuf update no longer generate files with UP036 violations. But that's a later consideration.

@Avasam Avasam mentioned this pull request Apr 9, 2024
@AlexWaygood

Copy link
Copy Markdown
Member

Realistically this can probably be removed after #11694 and #11696 as the mypy-protobuf update no longer generate files with UP036 violations. But that's a later consideration.

I think it's useful to keep it as it will make it significantly easier to e.g. drop support for Python 3.8, when the time comes

Comment thread .pre-commit-config.yaml Outdated

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than my YAML formatting nit 😄

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
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.

2 participants