Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check for redefined names in CI
  • Loading branch information
hugovk committed Sep 8, 2023
commit 4cd48034a821d6e077f510abd536614601b86300
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
files: ^Lib/test/

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
20 changes: 20 additions & 0 deletions .ruff.toml
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
select = [
"F811",
]
extend-exclude = [
# Failed to lint
"Lib/test/badsyntax_pep3120.py",
"Lib/test/encoded_modules/module_iso_8859_1.py",
"Lib/test/encoded_modules/module_koi8_r.py",
# Failed to parse
"Lib/test/mod_generics_cache.py",
"Lib/test/badsyntax_3131.py",
"Lib/test/support/socket_helper.py",
"Lib/test/test_builtin.py",
"Lib/test/test_fstring.py",
"Lib/test/test_funcattrs.py",
"Lib/test/test_functools.py",
"Lib/test/test_type_aliases.py",
"Lib/test/test_type_params.py",
"Lib/test/test_typing.py",
]