Make running ruff on ruff possible (#4760)

I was wondering why `pip install -U ruff && ruff .` in the ruff repo would result in only noise while the pre-commit ruff works. Turns out the pre-commit has an exclude for the resources directories.

This adds the excludes from pre-commit to ruff's own pyproject.toml so `ruff .` works on ruff itself
This commit is contained in:
konstin 2023-05-31 18:19:15 +02:00 committed by GitHub
parent 2b2812c4f2
commit 35cd57d0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,12 @@ exclude = [
"crates/ruff/src/rules/*/snapshots/**/*"
]
[tool.ruff]
extend-exclude = [
"crates/ruff/resources/",
"crates/ruff_python_formatter/resources/"
]
[tool.black]
force-exclude = '''
/(