Add linting to the action#23
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds Python linting/format checking via Ruff and adopts uv (with pyproject.toml + uv.lock) to manage and lock development dependencies, while updating existing Python code/tests to satisfy the new linting standards.
Changes:
- Introduces
uvproject configuration (pyproject.toml) and a lockfile (uv.lock) with Ruff as a dev dependency. - Adds a dedicated lint workflow and updates CI to install dependencies via
uvbefore running unit tests. - Applies Ruff-driven formatting/typing cleanups across the Python source and unit tests.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Adds uv lockfile to pin dev dependency resolution (Ruff). |
pyproject.toml |
Defines the uv project and Ruff configuration (lint + formatting rules). |
.github/workflows/lint.yml |
New workflow to run Ruff lint + format checks in CI. |
.github/workflows/ci.yml |
Updates CI to install uv + dev dependencies and run tests via uv run. |
upload_coverage.py |
Formatting/type-hint updates to comply with Ruff rules. |
status_report.py |
Formatting/type-hint updates to comply with Ruff rules. |
categorised_error.py |
Minor formatting fix to satisfy linting. |
post_upload_coverage.py |
Minor formatting (blank line) to satisfy linting. |
test_upload_coverage.py |
Formatting/modernization edits to satisfy linting. |
test_status_report.py |
Formatting edits to satisfy linting. |
test_post_upload_coverage.py |
Formatting edits to satisfy linting. |
.gitignore |
Ignores .venv/ and .ruff_cache/ created by new tooling. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 10/12 changed files
- Comments generated: 3
- Review effort level: Low
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
cassiomarques
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes https://github.com/github/code-scanning/issues/23716
This PR introduces linting in this repository so that the project follows python standards. We also introduce the usage of
uvas a package manager, which would allow us to make sure that we have our dependencies in sync.