Skip to content

Enable additional ruff lint rules (zero-violation batch)#1998

Merged
iMicknl merged 2 commits intov2/mainfrom
v2/ruff_additional_checks
Apr 19, 2026
Merged

Enable additional ruff lint rules (zero-violation batch)#1998
iMicknl merged 2 commits intov2/mainfrom
v2/ruff_additional_checks

Conversation

@iMicknl
Copy link
Copy Markdown
Owner

@iMicknl iMicknl commented Apr 19, 2026

Summary

  • Add 15 new ruff rule sets that require no code changes: W, LOG, DTZ, FLY, ISC, PGH, SLF, SLOT, TID, INP, ICN, G, BLE, TRY, Q
  • Ignore TRY003 globally (long exception messages are idiomatic for domain-specific errors)
  • Add per-file ignores for tests (SLF001) and utils (INP001, BLE001)
  • Add noqa for intentional blind except in ActionQueue worker

Test plan

  • ruff check . passes
  • pytest — 280 tests pass
  • mypy passes

@iMicknl iMicknl added enhancement New feature or request v2 labels Apr 19, 2026
Copilot AI review requested due to automatic review settings April 19, 2026 17:21
@iMicknl iMicknl requested a review from tetienne as a code owner April 19, 2026 17:21
@iMicknl iMicknl added enhancement New feature or request v2 labels Apr 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Enables additional Ruff lint rule families that are currently violation-free, with targeted exceptions/ignores where the project intentionally deviates.

Changes:

  • Expanded Ruff select to include 15 additional rule sets and added global ignore for TRY003.
  • Added per-file ignores for tests (SLF001) and utils (INP001, BLE001).
  • Added an inline # noqa: BLE001 for an intentional broad except Exception in the action queue batch executor.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Enables additional Ruff rule families and configures global/per-file ignores to keep checks passing without code churn.
pyoverkiz/action_queue.py Adds a targeted noqa for an intentional broad exception catch to satisfy newly enabled BLE rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

iMicknl added 2 commits April 19, 2026 17:32
Add five new rule sets that pass cleanly without any code changes:
pycodestyle warnings, flake8-logging, flake8-datetimez, flynt,
and flake8-implicit-str-concat.
Add PGH, SLF, SLOT, TID, INP, ICN, G, BLE, TRY, and Q rule sets.
Ignore TRY003 globally (long exception messages are idiomatic here).
Add per-file ignores for tests (SLF001) and utils (INP001, BLE001).
Add noqa for intentional blind except in ActionQueue worker.
@iMicknl iMicknl force-pushed the v2/ruff_additional_checks branch from e10a681 to 7ee839f Compare April 19, 2026 17:32
@iMicknl iMicknl merged commit efa3be4 into v2/main Apr 19, 2026
8 checks passed
@iMicknl iMicknl deleted the v2/ruff_additional_checks branch April 19, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants