Move black excludes from pre-commit config to pyproject.toml (#4370)

This commit is contained in:
Calum Young 2023-05-11 14:00:05 +01:00 committed by GitHub
parent be6e00ef6e
commit ba6370e5d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View file

@ -63,11 +63,6 @@ repos:
rev: 23.1.0
hooks:
- id: black
exclude: |
(?x)^(
crates/ruff/resources/.*|
crates/ruff_python_formatter/resources/.*
)$
ci:
skip: [cargo-fmt, clippy, dev-generate-all]

View file

@ -50,3 +50,11 @@ bindings = "bin"
manifest-path = "crates/ruff_cli/Cargo.toml"
python-source = "python"
strip = true
[tool.black]
force-exclude = '''
/(
| crates/ruff/resources
| crates/ruff_python_formatter/resources
)/
'''