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

STY: Add *Ruff* config and fix all warnings and errors #1203

Merged
merged 3 commits into from
Mar 19, 2024
Merged

Conversation

oesteban
Copy link
Member

No description provided.

@oesteban oesteban force-pushed the sty/ruff branch 2 times, most recently from 3824cfb to 6a792ed Compare March 19, 2024 22:39
@oesteban oesteban merged commit 544a505 into master Mar 19, 2024
14 checks passed
@oesteban oesteban deleted the sty/ruff branch March 19, 2024 23:22
@oesteban oesteban restored the sty/ruff branch March 19, 2024 23:22
@oesteban oesteban deleted the sty/ruff branch March 19, 2024 23:22
@DimitriPapadopoulos
Copy link
Contributor

@oesteban Do you intend to add a CI job for ruff, in addition to or instead of the flake8 CI job?

@oesteban
Copy link
Member Author

Yup, happy to review a PR :)

@DimitriPapadopoulos
Copy link
Contributor

I guess instead of flake8?

@DimitriPapadopoulos
Copy link
Contributor

DimitriPapadopoulos commented Mar 20, 2024

Also, while I am not a big fan of .pre-commit, it is recommended by Repo-Review:
https://learn.scientific-python.org/development/guides/repo-review/?repo=nipreps%2Fmriqc&branch=master

How about adding support for .pre-commit instead of explicitly running a ruff job?

@oesteban
Copy link
Member Author

I would prefer to stay away from pre-commit. It places some burden on the contributor to set it up and I don't love how the project is driven.

The only gain is averting some CI tests to fail. I think we can live with that.

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