Skip to content

Use ruff in CI to check Python and notebook files - #298

Merged
loichuder merged 1 commit into
mainfrom
use-ruff
Mar 6, 2026
Merged

loichuder merged 1 commit into
mainfrom
use-ruff

Conversation

@loichuder

@loichuder loichuder commented Mar 6, 2026 •

Copy link
Copy Markdown
Member

To fix #61 (comment)

I could not run flake8_nb locally so I thought we might as well move to ruff.

ruff is smarter than flake8_nb and only raises an error if the import is not at the top of the cell rather than the file for notebooks (https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file/).

@loichuder
loichuder requested a review from woutdenolf March 6, 2026 08:45
Comment thread src/ewoks/_engines.py Outdated
@codecov

codecov Bot commented Mar 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread .gitignore Outdated
Comment on lines 6 to 7

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.

These two files can be removed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch!

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.

@loichuder You forgot to remove the files themselves.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

🤦

@loichuder
loichuder requested a review from woutdenolf March 6, 2026 15:33
@loichuder

Copy link
Copy Markdown
Member Author

Merging this to fix the nightly build over the week-end.

@loichuder
loichuder merged commit 92e4755 into main Mar 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants