Skip to content

Skip ruff's isort rules on files generated with mypy-protobuf #10940

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
Oct 28, 2023

Conversation

AlexWaygood
Copy link
Member

This takes us back to how things worked prior to 49ba409. See #10939 (review) for an explanation of what's going on here.

@@ -7,6 +7,48 @@ skip_magic_trailing_comma = true
# for just these files, but doesn't seem possible yet.
force-exclude = ".*_pb2.pyi"

[tool.ruff]
Copy link
Member Author

@AlexWaygood AlexWaygood Oct 28, 2023

Choose a reason for hiding this comment

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

I moved this table above the tool.ruff.isort table, as I found the current order somewhat confusing

Comment on lines +49 to +51
[tool.ruff.per-file-ignores]
"*_pb2.pyi" = ["I"] # Skip isort rules for files generated with mypy-protobuf

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only bit of new config in this PR

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.

1 participant