You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This won't prevent manual runs of ruff . to fail. I think you should instead add hints in the file : either a # noqa: F821 in the end of each line where there is a get_ipython, or a # ruff: noqa: F821 at the begining of the file.
A better solution might be to add a def run(self, magic) method, which run get_ipython().run_line_magic(magic) with the correct noqa only once, and use this method in the other places.
gepetuto/.pre-commit-config.yaml
Line 10 in d2040ce
This won't prevent manual runs of
ruff .
to fail. I think you should instead add hints in the file : either a# noqa: F821
in the end of each line where there is aget_ipython
, or a# ruff: noqa: F821
at the begining of the file.A better solution might be to add a
def run(self, magic)
method, which runget_ipython().run_line_magic(magic)
with the correct noqa only once, and use this method in the other places.Originally posted by @nim65s in #24 (comment)
The text was updated successfully, but these errors were encountered: