mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 04:18:05 +00:00
Add black to pre-commit (#3192)
This commit is contained in:
parent
bda2a0007a
commit
a688a237d7
4 changed files with 14 additions and 3 deletions
|
|
@ -140,7 +140,7 @@ pub fn {rule_name_snake}(checker: &mut Checker) {{}}
|
|||
text += line
|
||||
text += line
|
||||
linter_variant = pascal_case(linter)
|
||||
text += " "*8 + f'({linter_variant}, "{code}") => Rule::{name},\n'
|
||||
text += " " * 8 + f'({linter_variant}, "{code}") => Rule::{name},\n'
|
||||
text += fp.read()
|
||||
|
||||
with (ROOT_DIR / "crates/ruff/src/codes.rs").open("w") as fp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue