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
When parsing jupyter notebooks that uses magic functions (starting with %), call outs to shell (starting with !) or line continuation characters (lines ending with \), deptry fails.
These parsing errors can be seen by running the sample notebooks in this repo. There I have created three notebooks that showcase the errors, one containing a magic function, one calling out to shell, and one using a continuation character. The warnings are provided below:
$ deptry -ddg dev .
Scanning 4 files...
Warning: Skipping processing of notebook-exclamation.ipynb because of the following error: "SyntaxError: invalid syntax. Got unexpected token '!' at byte offset 0".
Warning: Skipping processing of notebook-line-continuation.ipynb because of the following error: "SyntaxError: invalid syntax. Got unexpected token Newline at byte offset 9".
Warning: Skipping processing of notebook-percent.ipynb because of the following error: "SyntaxError: invalid syntax. Got unexpected token '%' at byte offset 19".
pyproject.toml: DEP002 'numpy' defined as a dependency but not used in the codebase
pyproject.toml: DEP002 'jupyter' defined as a dependency but not used in the codebase
Found 2 dependency issues.
For more information, see the documentation: https://deptry.com/
I would expect deptry to be able to parse these notebooks.
My system:
$ uname -a
Linux XXXX 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ python --version
Python 3.12.2
$ deptry --version
deptry 0.15.0
The text was updated successfully, but these errors were encountered:
When parsing jupyter notebooks that uses magic functions (starting with
%
), call outs to shell (starting with!
) or line continuation characters (lines ending with\
), deptry fails.These parsing errors can be seen by running the sample notebooks in this repo. There I have created three notebooks that showcase the errors, one containing a magic function, one calling out to shell, and one using a continuation character. The warnings are provided below:
I would expect deptry to be able to parse these notebooks.
My system:
The text was updated successfully, but these errors were encountered: