Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.6
rev: v0.12.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand Down
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ ignore = [
"UP019",
"UP035",
"UP038",
"UP045", # X | None instead of Optional[X]
# Not relevant here
"RUF012",
"RUF022",
"RUF023",
"RUF012", # Use ClassVar for mutables
"RUF022", # Unsorted __all__
"RUF023", # Unsorted __slots__
"B903", # Use dataclass / namedtuple
# Ruff doesn't understand the globals() assignment; we test __all__
# directly in test_all_names_in___all__.
"F822",
Expand All @@ -110,6 +112,12 @@ ignore = [
"E501",
"E701",
]
"src/test_typing_extensions.py" = [
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
# Harmful for tests if applied.
"RUF031", # parentheses for tuples in subscripts
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
"RUF036", # None not at end of Union
"RUF041", # nested Literal
]

[tool.ruff.lint.isort]
extra-standard-library = ["tomllib"]
Expand Down
Loading