Skip to content

Apply Ruff rules - #261

Merged
reactive-firewall merged 18 commits into
raimon49:dev-v5.6from
DimitriPapadopoulos:ruff
Jan 29, 2026
Merged

Apply Ruff rules#261
reactive-firewall merged 18 commits into
raimon49:dev-v5.6from
DimitriPapadopoulos:ruff

Conversation

@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor

Rules are not enforced in CI for now.

Comment thread test_piplicenses.py
@reactive-firewall
reactive-firewall self-requested a review January 18, 2026 01:31
@reactive-firewall reactive-firewall self-assigned this Jan 18, 2026
@reactive-firewall
reactive-firewall changed the base branch from master to dev-5.5.1 January 22, 2026 21:36
@reactive-firewall reactive-firewall added chore Chores are miscellaneous tasks that are neither fixing a bug nor adding a feature. python Pull requests that update python code labels Jan 22, 2026
@codecov

codecov Bot commented Jan 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.58%. Comparing base (6b97581) to head (4d206c2).
⚠️ Report is 24 commits behind head on dev-v5.6.

Additional details and impacted files
@@             Coverage Diff              @@
##           dev-v5.6     #261      +/-   ##
============================================
- Coverage     99.58%   99.58%   -0.01%     
============================================
  Files             1        1              
  Lines           481      478       -3     
============================================
- Hits            479      476       -3     
  Misses            2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@reactive-firewall
reactive-firewall changed the base branch from dev-5.5.1 to dev-v5.6 January 24, 2026 19:55
dependabot Bot and others added 18 commits January 27, 2026 21:54
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@08c6903...de0fac2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ithub/workflows/master/actions/checkout-6.0.2

[UPDATE] (deps): Bump actions/checkout from 5.0.0 to 6.0.2 in /.github/workflows
Implicitly concatenated string literals on one line
Implicitly concatenated string literals over multiple lines
Use `key in dict` instead of `key in dict.keys()`
Use `... != ...` instead of `not ... == ...`
Use a list comprehension to create a transformed list
Use a dictionary comprehension instead of a for-loop
Test for membership should be `not in`
Imported but unused
Use specific rule codes when ignoring type issues
Extracting value from dictionary without calling `.items()`
Class inherits from `object`
UTF-8 encoding declaration is unnecessary
Replace aliased errors with `OSError`
Use format specifiers instead of percent format
Use f-string instead of `format` call
Avoid extraneous parentheses

@reactive-firewall reactive-firewall left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM; with minor caveats.

Specifically, either revert the PEP-263 headers or update the vim directive to clarify python3 (and thus PEP-3120) to match.

See additional comments and suggestions inline.

Comment thread piplicenses.py
Comment thread piplicenses.py
Comment thread piplicenses.py
Comment thread piplicenses.py
Comment thread piplicenses.py
Comment thread test_piplicenses.py
Comment thread test_piplicenses.py
Comment thread piplicenses.py
Comment thread .github/workflows/python-package.yml
Comment thread .github/workflows/CD-PyPi.yml
@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor Author

I'm fine with removing it if it does not change the test behavior. If it is needed by MyPy then I recommend we use a specific linter pragma (e.g., # type: ignore[arg-type] as needed).

Tests pass, so it is not needed by MyPy, is it?

@reactive-firewall
reactive-firewall self-requested a review January 29, 2026 20:15

@reactive-firewall reactive-firewall left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM;

☑️ Specifically, the ruff linter suggestions are approved!

Additional Comments: All concerns discussed and resolved. See resolved comments in GH PR for NIT and out-of-scope details.

@DimitriPapadopoulos 🙇 Thank you for your time and efforts on this PR! 🎉

@reactive-firewall
reactive-firewall merged commit d29ccdd into raimon49:dev-v5.6 Jan 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Chores are miscellaneous tasks that are neither fixing a bug nor adding a feature. python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discuss and enumerate code-style for project (e.g., do we replace black?) Black → Ruff formatter?

3 participants