PyCQA / pydocstyle

docstring style checker
http://pydocstyle.org
MIT License
1.11k stars 189 forks source link

Warning: Cannot parse file. #628

Closed jlu-barracuda closed 1 year ago

jlu-barracuda commented 1 year ago

I have a Databricks style notebook with *.py extension, but contains ipython notebook magic commands like %run and %pip install that I believe is causing the parsing errors. I've added # noqa to end of these lines, however, I'm still getting the following error with termination in Github workflow.

WARNING: Error in file EGD/egd_all_dlt.py: Cannot parse file.
Error: Process completed with exit code 1.

Is there a configuration to set to ignore file parsing errors?

sigmavirus24 commented 1 year ago

pydocstyle uses the python standard ast library iirc and cannot parse ipynb because they're not python

There's no option to disable ast parsing

jlu-barracuda commented 1 year ago

thanks. I was able to get parsing working with ruff.