Skip to content
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

Replace flake8/isort/black with ruff #115

Merged
merged 10 commits into from
Feb 11, 2024
Merged

Conversation

cbrnr
Copy link
Collaborator

@cbrnr cbrnr commented Feb 11, 2024

This PR replaces flake8/isort/black with ruff. In addition, I've (mostly manually) re-formatted docstrings so that they now use the line length limit of 88 chars. I've also removed make pep, because this is now being taken care of via pre-commit.

@cbrnr cbrnr marked this pull request as draft February 11, 2024 11:46
Copy link

codecov bot commented Feb 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e1a6c79) 100.00% compared to head (4b84b78) 100.00%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #115   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          634       632    -2     
=========================================
- Hits           634       632    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cbrnr cbrnr marked this pull request as ready for review February 11, 2024 13:23
Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

Wonderful, this has been on my to do list for a long time. Thanks for taking this over @cbrnr.

Just a small comment why not do docs/ as well (but could be done in a follow up, so I am approving anyhow).

pyproject.toml Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@cbrnr cbrnr left a comment

Choose a reason for hiding this comment

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

This is good to go IMO, please feel free to merge when green.

@sappelhoff sappelhoff merged commit cafcd96 into bids-standard:main Feb 11, 2024
18 checks passed
@cbrnr cbrnr deleted the ruff branch February 11, 2024 17:32
@@ -39,7 +39,7 @@ you can run tests by making use of the `Makefile` and
From the project root, call:

- `make test` to run tests and coverage
- `make pep` to run style checks
- `pre-commit run` to run style checks (Ruff and some additional hooks)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this better be pre-commit run -a?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, otherwise it will only run against staged files.

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.

None yet

3 participants