Skip to content

chore: update linter configuration for compatibility with latest ruff release#9528

Merged
Amnah199 merged 5 commits intomainfrom
fix-linting-error
Jun 18, 2025
Merged

chore: update linter configuration for compatibility with latest ruff release#9528
Amnah199 merged 5 commits intomainfrom
fix-linting-error

Conversation

@Amnah199
Copy link
Copy Markdown
Contributor

Related Issues

  • Fixes failing lint tests caused by updated ruff rules

Proposed Changes:

  • Update pyproject.toml to ignore new rules introduced in the latest ruff release

Checklist

  • I have read the contributors guidelines and the code of conduct
  • I have updated the related issue with new insights and changes
  • I added unit tests and updated the docstrings
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I documented my code
  • I ran pre-commit hooks and fixed any issue

@Amnah199 Amnah199 requested a review from a team as a code owner June 17, 2025 20:51
@Amnah199 Amnah199 requested review from julian-risch and removed request for a team June 17, 2025 20:51
@Amnah199 Amnah199 added the ignore-for-release-notes PRs with this flag won't be included in the release notes. label Jun 17, 2025
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Jun 17, 2025

Pull Request Test Coverage Report for Build 15726914697

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.143%

Totals Coverage Status
Change from base Build 15706928119: 0.0%
Covered Lines: 11550
Relevant Lines: 12813

💛 - Coveralls

Comment thread pyproject.toml Outdated
"PLC0414", # useless-import-alias
"PLC0414", # useless-import-alias,
"PLC0415", # import-outside-top-level,
"PLW1641", # eq-without-hash
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With @sjrl, we thought that eq-without-hash might be useful: https://docs.astral.sh/ruff/rules/eq-without-hash/

It currently affects Document, Sockets and PipelineBase.

What I suggest:

Copy link
Copy Markdown
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

Let's also update our ruff pre-commit hook

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12

@github-actions github-actions Bot added the topic:DX Developer Experience label Jun 18, 2025
@Amnah199 Amnah199 requested a review from anakin87 June 18, 2025 07:42
Copy link
Copy Markdown
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

Thanks!

(Will you open the issue about __hash__ or should I take care?)

@Amnah199
Copy link
Copy Markdown
Contributor Author

Amnah199 commented Jun 18, 2025

@anakin87 Here is the related issue. Feel free to update it, if needed.
#9529

@Amnah199 Amnah199 merged commit 67a8f12 into main Jun 18, 2025
21 checks passed
@Amnah199 Amnah199 deleted the fix-linting-error branch June 18, 2025 07:53
julian-risch pushed a commit that referenced this pull request Jun 18, 2025
… release (#9528)

* Fix linting

* Fix linting

* Update error suppression

* Update pre commit

* Update pyproject.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release-notes PRs with this flag won't be included in the release notes. topic:build/distribution topic:core topic:DX Developer Experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants