-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use ruff for linting and formatting #105
Conversation
… in pre-commit configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so far. Do you want to add more changes ?
examples/plot_toy_int_experiment.py
Outdated
tuning_pred_run_1, | ||
tuning_pred_run_2, | ||
n_components=2, | ||
dissimilarity=1 - corr_tunning, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will ruff complain if this is formatted as
dissimilarity=1 - corr_tunning, | |
dissimilarity=(1 - corr_tunning), |
? I find it more human-readable, but not worth breaking automation !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both ruff format
and ruff check
don't seem to complain so I'm adding it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, thank you @pbarbarant !
I'm merging it as soon as CI finishes. |
There are still a lot of issues regarding docstrings and documentation though, I suggest adding D-related rules in a future PR. |
Fixes #104. Adds ruff to replace flake8, isort and black.
Follows the same config as
nilearn
for consistency.