mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-30 05:18:51 -06:00
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:
1 parent
f1e5cb3f5f
commit
8f1b88bb7e
7 files changed
+54
-73
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user