Skip to content

[ENG-8423] add ruff support #400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mkovalua
Copy link

@mkovalua mkovalua commented Aug 8, 2025

Ticket

https://openscience.atlassian.net/browse/ENG-8423

Purpose

add ruff support

Changes

added dependencies and configurations in poetry.lock and .toml files

(
more detailed PR here
#395
)

Side effects

created the PR from the following one #399
to keep it changings so please merge 399 previously

QA Notes

Deployment Notes

@coveralls
Copy link

coveralls commented Aug 8, 2025

Coverage Status

coverage: 68.714%. remained the same
when pulling 5fd07dc on mkovalua:feature/ENG---8423
into 69b7309 on CenterForOpenScience:feature/buff-worms.

Copy link
Contributor

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

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

Looks good with one question which is initially asked by @felliott .

There are minor differences between WB (left) and MFR (right) for the rules, wondering if we should make them the same. Or is there any special considerations for the discrepancy?

Screenshot 2025-08-12 at 10 27 37

poetry.lock Outdated
@@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
# This file is automatically @generated by Poetry 2.1.2 and should not be changed by hand.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for using 2.1.2

Copy link
Author

@mkovalua mkovalua Aug 12, 2025

Choose a reason for hiding this comment

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

  1. it looks like some configurations in WB fail the process for now on ruff format . command run
image

and it looks we need to update it for WB

  1. the following one constraints added previously "E501", "E265", "E301", "E302", "F403", "E731", "B904", "B905" (I don't recall but maybe I added it previously to make it possible to run test suit without linter blocking, for now it goes ok without that constraints) , I removed it to keep it same

Copy link
Contributor

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

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

LGTM ⭐

@felliott felliott force-pushed the feature/ENG---8423 branch from 298dd25 to 5fd07dc Compare August 21, 2025 02:10
@felliott felliott merged commit a080e58 into CenterForOpenScience:feature/buff-worms Aug 21, 2025
4 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.

4 participants