-
-
Notifications
You must be signed in to change notification settings - Fork 284
Description
Describe the bug
We have a CI set up that for PRs, our linters run in list_of_files mode to only detect issues within your PR. But once that PR is merged to main, we run ruff in project mode to ensure we lint everything.
I have a PR that only edited a jupyter notebook (*.ipynb). None of the python linters were activated for that PR and that PR was merged.
Then, when that triggered the CI for the main branch, the ruff linter was activated and detected linting errors in that file.
To Reproduce
Steps to reproduce the behavior:
- Setup ruff linting (and other python linters)
- Create or edit an ipynb file (and only an ipynb file)
- Run megalinter in list_of_files mode with the file from step 2 listed as changed.
- See that
ruffwas not activated.
Expected behavior
The ruff linter (and other python linters that support jupyter notebooks) are/is activated and run against ipynb files.
Screenshots
Here's where the PR is not including *.ipynb files for python linting and thus the linter is not activated:


Here's where we run ruff in project mode and it does lint the *.ipynb files, even though megalinter isn't looking for them:


Additional context
Add any other context about the problem here.