Skip to content

Commit 365a1ee

Browse files
Enforce ruff/flake8-pyi rules (PYI)
1 parent e67125b commit 365a1ee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ extend-select = [
258258
"C4", # flake8-comprehensions
259259
"PIE", # flake8-pie
260260
"TID", # flake8-tidy-imports (absolute imports)
261+
"PYI", # flake8-pyi
261262
"PGH", # pygrep-hooks
262263
"PERF", # Perflint
263264
"RUF",
@@ -272,6 +273,7 @@ ignore = [
272273
"UP007", # use X | Y for type annotations
273274
"C40", # unnecessary generator, comprehension, or literal
274275
"PIE790", # unnecessary pass statement
276+
"PYI041", # use `float` instead of `int | float`
275277
"PERF203", # try-except within a loop incurs performance overhead
276278
"RUF001", # string contains ambiguous unicode character
277279
"RUF002", # docstring contains ambiguous acute accent unicode character

0 commit comments

Comments
 (0)