mirror of https://github.com/astral-sh/ruff
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:
parent
2b2812c4f2
commit
35cd57d0fc
|
|
@ -54,6 +54,12 @@ exclude = [
|
||||||
"crates/ruff/src/rules/*/snapshots/**/*"
|
"crates/ruff/src/rules/*/snapshots/**/*"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
extend-exclude = [
|
||||||
|
"crates/ruff/resources/",
|
||||||
|
"crates/ruff_python_formatter/resources/"
|
||||||
|
]
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
force-exclude = '''
|
force-exclude = '''
|
||||||
/(
|
/(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue