Skip to content

CI: enable Ruff RUF005 - #6259

Open
iamdhrv wants to merge 3 commits into
xdslproject:mainfrom
iamdhrv:ci/5927-enable-ruf005
Open

CI: enable Ruff RUF005#6259
iamdhrv wants to merge 3 commits into
xdslproject:mainfrom
iamdhrv:ci/5927-enable-ruf005

Conversation

@iamdhrv

@iamdhrv iamdhrv commented Jul 15, 2026

Copy link
Copy Markdown

Summary

  • replace all 16 collection-literal concatenations reported by RUF005 with behavior-preserving iterable unpacking
  • preserve each original collection type and element order
  • remove only the RUF005 ignore so future concatenations are rejected by CI

Progresses #5927 (RUF005 slice).

Validation

  • uv run ruff check .
  • uv run ruff format --check . (729 files)
  • uv run pyright (0 errors)
  • make pytest (5050 passed, 1 skipped)
  • make filecheck (494 passed, 110 unsupported because external MLIR tools are not configured)

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.09%. Comparing base (14f8a1d) to head (93601be).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rms/experimental/hls_convert_stencil_to_ll_mlir.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6259      +/-   ##
==========================================
+ Coverage   87.07%   87.09%   +0.01%     
==========================================
  Files         433      433              
  Lines       65255    65313      +58     
  Branches     7465     7465              
==========================================
+ Hits        56822    56882      +60     
+ Misses       6864     6862       -2     
  Partials     1569     1569              

☔ View full report in Codecov by Harness.
📢 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.

Comment thread xdsl/dialects/csl_stencil.py Outdated
Comment thread xdsl/backend/llvm/convert_op.py Outdated
@superlopuh superlopuh added the CI Continuous Integration label Jul 15, 2026
@superlopuh superlopuh changed the title ci: enable Ruff RUF005 CI: enable Ruff RUF005 Jul 15, 2026

@alexarice alexarice 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.

There's a few more places we could use tuples instead of lists, but that feels like work for a different PR to me

@superlopuh

Copy link
Copy Markdown
Member

@iamdhrv, when will you have time to resolve the merge conflicts and address my comments?

@iamdhrv
iamdhrv force-pushed the ci/5927-enable-ruf005 branch from 01fe9b2 to 6d10875 Compare July 29, 2026 16:09
Signed-off-by: Dhruv Maniya <dhruvmaniya1998@gmail.com>

@superlopuh superlopuh left a comment

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.

Nice

Comment thread xdsl/backend/llvm/convert_op.py Outdated
@alexarice

Copy link
Copy Markdown
Collaborator

This is just waiting for one tiny change right?

@superlopuh

Copy link
Copy Markdown
Member

Yeah, I just committed my suggestion, will merge when CI is green.

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

Labels

CI Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants