Skip to content

CI improvements - #6

Open
fboudra wants to merge 3 commits into
FedericoTs:masterfrom
fboudra:ci-improvements
Open

CI improvements#6
fboudra wants to merge 3 commits into
FedericoTs:masterfrom
fboudra:ci-improvements

Conversation

@fboudra

@fboudra fboudra commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Add pre-commit checks, ruff format/check, drop EOL python support

  • chore: fix all ruff lint errors
  • chore: bump requires-python to >=3.11
  • ci: add pre-commit checks job for ruff and pyproject-fmt

Closes: #5

- auto-fix 150 findings (C408 dict literals, C401, ISC004, RUF059)
- convert %-format strings to f-strings (UP031)
- add check=False to subprocess.run calls (PLW1510)
- use context managers for file opens (SIM115)
- drop useless if-else (RUF034), rename shadowed arg (PLR1704)
- ignore BLE001/S110/S112 in [tool.ruff.lint]: blind excepts around external
  CLI probes (ollama, nvidia-smi, llama-bench) are intentional
- ruff format applied
- pyproject-fmt --keep-full-version pyproject.toml applied

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
drop python 3.9/3.10 support. 3.9 is EOL and 3.10 is EOL in October.

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
- add .pre-commit-config.yaml: ruff check/format scoped to quantprobe/ and
  pyproject-fmt hooks
- add checks job to smoke.yml running pre-commit

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant