mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 04:18:05 +00:00
Add markdownlint and dev Ruff to pre-commit (#2303)
This commit is contained in:
parent
ec8b827d26
commit
bdcab87d2f
23 changed files with 277 additions and 236 deletions
|
|
@ -21,7 +21,7 @@ def snake_case(name: str) -> str:
|
|||
).lstrip("_")
|
||||
|
||||
|
||||
def main(*, name: str, code: str, linter: str) -> None:
|
||||
def main(*, name: str, code: str, linter: str) -> None: # noqa: PLR0915
|
||||
"""Generate boilerplate for a new rule."""
|
||||
# Create a test fixture.
|
||||
with (ROOT_DIR / "resources/test/fixtures" / dir_name(linter) / f"{code}.py").open(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue