Skip to content

Commit

Permalink
Move ignoring A002 to config file instead of gen_exports
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Jan 22, 2024
1 parent 0bc0a8b commit 8fac3e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ extend-exclude = [
'src/trio/socket.py' = ['F401']
'src/trio/testing/__init__.py' = ['F401']
'src/trio/_core/_generated_io_kqueue.py' = ['A002']
'src/trio/_core/_io_kqueue.py' = ['A002']

[tool.ruff.isort]
combine-as-imports = true
Expand Down
1 change: 0 additions & 1 deletion src/trio/_tools/gen_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def run_ruff(file: File, source: str) -> tuple[bool, str]:
"check",
"--fix",
"--unsafe-fixes",
"--ignore=A002",
"--output-format=text",
"--stdin-filename",
file.path,
Expand Down

0 comments on commit 8fac3e5

Please sign in to comment.