Enable more lint rules #10

Merged
alexander merged 31 commits from more-lint-rules into develop 2026-11-30 23:59:09 +01:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit 5dce8e6645 - Show all commits

Enable UP in ruff

Alexander Hess 2026-11-30 20:52:01 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -520,7 +520,7 @@ def clean_cwd(session: nox.Session) -> None:
session.run("rm", "-rf", path)
def _expand(*patterns: str) -> cabc.Generator[pathlib.Path, None, None]:
def _expand(*patterns: str) -> cabc.Generator[pathlib.Path]:
"""Expand glob patterns into (resolved) paths.
Args:

View file

@ -231,6 +231,11 @@ select = [
"N8",
# pydoclint => docstring matches implementation
"DOC",
# ========================================
# `ruff` only (no working `flake8` plugin)
# ========================================
# pyupgrade => Modern syntax for the targeted Python version
# "UP",
]
# By default, flake8 ignores some errors.
@ -489,6 +494,8 @@ select = [
"PLR",
# flake8-print => no `print()`
"T20",
# pyupgrade => Modern syntax for the targeted Python version
"UP",
]
extend-ignore = [