We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b72619 commit 6c9eeecCopy full SHA for 6c9eeec
.pre-commit-config.yaml
@@ -3,7 +3,6 @@ repos:
3
rev: v0.12.2
4
hooks:
5
- id: ruff
6
- args: [--fix, --exit-non-zero-on-fix]
7
- repo: https://github.com/pre-commit/pre-commit-hooks
8
rev: v4.5.0
9
pyproject.toml
@@ -91,13 +91,11 @@ ignore = [
91
"UP019",
92
"UP035",
93
"UP038",
94
- # Not relevant here, or harmful for tests if applied.
+ "UP045", # X | None instead of Optional[X]
95
+ # Not relevant here
96
"RUF012", # Use ClassVar for mutables
97
"RUF022", # Unsorted __all__
98
"RUF023", # Unsorted __slots__
- "RUF031", # parentheses for tuples in subscripts
99
- "RUF036", # None not at end of Union
100
- "RUF041", # nested Literal
101
"B903", # Use dataclass / namedtuple
102
# Ruff doesn't understand the globals() assignment; we test __all__
103
# directly in test_all_names_in___all__.
@@ -114,6 +112,12 @@ ignore = [
114
112
"E501",
115
113
"E701",
116
]
+"src/test_typing_extensions.py" = [
+ # Harmful for tests if applied.
117
+ "RUF031", # parentheses for tuples in subscripts
118
+ "RUF036", # None not at end of Union
119
+ "RUF041", # nested Literal
120
+]
121
122
[tool.ruff.lint.isort]
123
extra-standard-library = ["tomllib"]
0 commit comments