Open Remi-Gau opened 1 month ago
I have done removed of the PTH errors. Can I send a pull request now, or do I have to complete the whole list before doing so?
@PrakharJain1509
@Remi-Gau I have resolved 102, 107, 110, 113, 100, 111, 101, 201, 109, 114, 115, 117. Can you please assign them to me and then I can send you a PR.
OK I have assigned those to you. To make things easier: do you you could split things into separate PRs? By the number of fixes I would do one PR for each of the following group.
@Remi-Gau Actually I have resolved them(The 12 mentioned above) all and pushed Into a branch on my fork, So could I directly create a PR? All of those are resolved and It is not throwing any error.
So could I directly create a PR?
A single PR may make it hard to review... Let's see...
Open the PR and then we may rather split the PR by module or subpacklage rather than by error.
I am an engineering student, and I would like to contribute to this issue. Is it possible to assign myself to it?
hey @SamiLaayat which error from the "List of errors" were you thinking of working on? I discourage people from working on ALL of them at once. Better to pick one error and focus on this one in one pull request before moving to the next.
One that could improve the quality of life of users is fixing the B028 one: https://docs.astral.sh/ruff/rules/no-explicit-stacklevel/
See this video for more context: https://youtu.be/tZSEZ2WG5w8?feature=shared&t=220
The problem with B028 is that there are a LOT of instances to fix and most of them will require to figure the call stack for a given warning and adapt the stacklevel accordingly, so if you want to go for that one start by doing a couple of them to see how long this may take you.
I am listing them here for more transparency and so that things are not just in my head.
nilearn/_utils/docs.py
andnilearn/datasets/neurovault.py
) - see https://github.com/nilearn/nilearn/pull/4578After this I think, some more rules could be removed from the ignored list and autofixed by running
pre-commit run -a
and see how many files are changed and what the changes are.I would probably start looking into:
List of errors
N806
ERA001
PLR2004
B028
N803
RUF012
B904
D105
E741
ARG005
PERF203
In progress
Probably won't fix
Fixing the following ones would mess up our doc rendering.
D205
D208
D301
To fix later (maybe)
issues related to code complexity - silenced for now by adapting the threshold
PLR0913
PLR0912
PLR0915
PLR0911
Fixed
B018
SIM117
PD011
N802
PLR1704
PD901
ARG003
ARG001
ARG002
RUF005
RUF002
RUF003
N813
N816
N817
N818
SIM102
SIM105
SIM115
PERF401
PERF102
PERF403
PD003
PD002
NPY002
SIM103
SIM114
SIM108
SIM118
SIM201
SIM300
PLR1714
PLR1730
PLR1736
PLR5501
PLR0402
C419
C414
C416
C408
D209
RUF100
RUF010
RUF015
FLY002
UP031