Skip to content

Commit c788d9e

Browse files
itamarofacebook-github-bot
authored andcommitted
Add exclusion to ruff pre-commit check
Summary: stack thesis: Add cross-platform CI coverage using upstream-like workflow (see T214227854) this diff: exclude lazy imports test file from ruff pre-commit check -- it has an intentional import redefinition as part of the lazy imports test Reviewed By: alexmalyshev Differential Revision: D69013026 fbshipit-source-id: 175a06b2441fa96f2f70cd6ceca83fae816b136c
1 parent af01c8d commit c788d9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.pre-commit-config.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ repos:
66
name: Run Ruff on Lib/test/
77
args: [--exit-non-zero-on-fix]
88
files: ^Lib/test/
9+
# exclude set_lazy_imports_eager.py from ruff check
10+
# it has an intentional import redefinition as part of the lazy imports test
11+
exclude: /set_lazy_imports_eager.py$
912
- id: ruff
1013
name: Run Ruff on Argument Clinic
1114
args: [--exit-non-zero-on-fix, --config=Tools/clinic/.ruff.toml]

0 commit comments

Comments
 (0)