Closed densnow closed 8 months ago
If this is something you could do and test w/ Colab, I'd appreciate.
Yes sure, no problem.
Thanks. From https://docs.astral.sh/ruff/configuration/#full-command-line-interface it seems we can do in the CLI all that is in src/essays/pyproject.toml
, with ruff check --ignore D100,W292,... --select ... --output-format pylint
.
%pytype
also needs to be configured from the command line, but the pyproject.toml
file can remain for those linting from the terminal
Some of the violations printed by
%ruff
do not make sense in the context of Jupyter Notebook environments due to the cell by cell linting that occurs. This was previously handled via configuration inpyproject.toml
Since
%ruff
will only be used in Ipython environments, andalgoesup
is on the PyPi, we could add an@argument
to%ruff
so that violations that do not make sense for this environment are ignored.