chore: lint with ruff in CI, drop mypy baseline

The code now carries no type error and no ruff finding. CI runs mypy
bare and ruff with the rule set of pyproject.toml; pr_checks.py and
the contribution guide list both. The baseline and its tooling go.
This commit is contained in:
Abdessamad Derraz committed 2026-11-17 15:28:11 +01:00
1 parent f1e5cb3f5f
commit 8f1b88bb7e
7 files changed
+54 -73

No files matched your search

+2 -2
View File
@@ -239,7 +239,7 @@ class OneCommandRunsTheChecks(unittest.TestCase):
skipping one (refresh_data_dirs) failed the pack tests with no hint."""
CHECK = re.compile(r"(?:xargs -0 |run: |^\s*)((?:python3?\.?8? -m unittest|python scripts/\w+\.py"
r"|vermin|npm (?:ci|run build)|mypy-baseline filter|mypy|shellcheck))")
r"|vermin|npm (?:ci|run build)|mypy|ruff check|shellcheck))")
def test_every_check_ci_runs_is_a_step(self):
import pr_checks
@@ -248,7 +248,7 @@ class OneCommandRunsTheChecks(unittest.TestCase):
ran = {m.group(1) for line in workflow.splitlines()
if not line.strip().startswith("#") for m in [self.CHECK.search(line)] if m}
self.assertGreaterEqual(len(ran), 10)
steps = [c for step in pr_checks.STEPS for c in (step.command, step.then) if c]
steps = [step.command for step in pr_checks.STEPS]
for check in sorted(ran):
with self.subTest(check=check):
self.assertTrue(any(command.startswith(check) for command in steps))