mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Move black excludes from pre-commit config to pyproject.toml (#4370)
This commit is contained in:
parent
be6e00ef6e
commit
ba6370e5d0
2 changed files with 8 additions and 5 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
)/
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue