Add markdownlint and dev Ruff to pre-commit (#2303)

This commit is contained in:
Jonathan Plasse 2023-02-02 22:29:07 +01:00 committed by GitHub
parent ec8b827d26
commit bdcab87d2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 277 additions and 236 deletions

View file

@ -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(