diff --git a/pyproject.toml b/pyproject.toml index 28f70b27fa..c48d167646 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/src/trio/_tools/gen_exports.py b/src/trio/_tools/gen_exports.py index 0a703dde95..7156d7015d 100755 --- a/src/trio/_tools/gen_exports.py +++ b/src/trio/_tools/gen_exports.py @@ -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,