Closed felix-cw closed 1 year ago
The issue arises when running nbqa ruff
nbqa ruff
--select=I
In this case, there seems to always be a false positive error message of
I001 [*] Import block is un-sorted or un-formatted
The --fix option does not change the notebook, but reports it as fixed anyway
--fix
Found 1 error (1 fixed, 0 remaining).
I use a notebook with the following two cells
import os import numpy as np
cwd = os.getcwd() x = np.arange(1, 10)
My versions: python 3.9.15 nbqa 1.6.1 ruff 0.0.247
thanks @felix-cw for the report, fix incoming
@all-contributors please add @felix-cw for bugs
@MarcoGorelli
I've put up a pull request to add @felix-cw! :tada:
The issue arises when running
nbqa ruff
--select=I
In this case, there seems to always be a false positive error message of
The
--fix
option does not change the notebook, but reports it as fixed anywayI use a notebook with the following two cells
My versions: python 3.9.15 nbqa 1.6.1 ruff 0.0.247