Skip to content

Commit 75a08cf

Browse files
committed
address review
1 parent 26b288a commit 75a08cf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
args: [--exit-non-zero-on-fix]
1212
files: ^Lib/test/
1313
- id: ruff
14-
name: Run Ruff (lint) on Tools/build
14+
name: Run Ruff (lint) on Tools/build/
1515
args: [--exit-non-zero-on-fix, --config=Tools/build/.ruff.toml]
1616
files: ^Tools/build/
1717
- id: ruff

Tools/build/.ruff.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ select = [
1212
"LOG", # flake8-logging
1313
"PGH", # pygrep-hooks
1414
"PT", # flake8-pytest-style
15+
"PYI", # flake8-pyi
1516
"RUF100", # Ban unused `# noqa` comments
1617
"UP", # pyupgrade
1718
"W", # pycodestyle
@@ -20,6 +21,8 @@ select = [
2021
ignore = [
2122
"E501", # Line too long
2223
"F541", # f-string without any placeholders
24+
"PYI024", # Use `typing.NamedTuple` instead of `collections.namedtuple`
25+
"PYI025", # Use `from collections.abc import Set as AbstractSet`
2326
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
2427
]
2528

0 commit comments

Comments
 (0)