|
17 | 17 | dependencies = [ |
18 | 18 | "ipython", |
19 | 19 | "ipytest", |
| 20 | + "nbformat>=5.10.4", |
20 | 21 | "pytest", |
21 | 22 | "typing-extensions; python_version < '3.11'", |
22 | 23 | ] |
|
52 | 53 | "pytype; python_version <= '3.12'", |
53 | 54 | "typing_extensions", # required for Python3.10 and below |
54 | 55 | ] |
55 | | - test = [ |
56 | | - "pytest-doctest-mkdocstrings", |
57 | | - ] |
| 56 | + test = ["pytest-doctest-mkdocstrings"] |
58 | 57 | cov = [ |
59 | 58 | {include-group = "test"}, |
60 | 59 | "pytest-cov", |
|
64 | 63 | "mkdocs", |
65 | 64 | "mkdocstrings[python]", |
66 | 65 | "mkdocs-material", |
| 66 | + "pymdown-extensions", |
67 | 67 | ] |
68 | 68 | dev = [ |
69 | | - "jupyter", |
70 | 69 | {include-group = "lint"}, |
71 | 70 | {include-group = "typing"}, |
72 | 71 | {include-group = "test"}, |
73 | 72 | {include-group = "cov"}, |
74 | 73 | {include-group = "doc"}, |
| 74 | + "jupyter", # python's toml decoder won't accept a text entry at the start of the array, only at the end!! |
75 | 75 | ] |
76 | 76 |
|
77 | 77 | [tool.pytest.ini_options] |
@@ -99,7 +99,7 @@ exclude_also = [ |
99 | 99 | show_contexts = true |
100 | 100 |
|
101 | 101 | [tool.pytype] |
102 | | -inputs = ["pytest_ipynb2"] |
| 102 | + inputs = ["pytest_ipynb2"] |
103 | 103 |
|
104 | 104 | [tool.ruff] |
105 | 105 | line-length = 120 |
@@ -163,5 +163,9 @@ inputs = ["pytest_ipynb2"] |
163 | 163 | ] |
164 | 164 |
|
165 | 165 | "**/*.ipynb" = [ |
166 | | - "T201", # Allow `print` in Jupyter notebooks |
| 166 | + "T201", # Allow `print` in Jupyter notebooks |
| 167 | + "ANN", # Missing type annotations |
| 168 | + "S101", # Use of `assert` |
| 169 | + "PLR2004", # Magic number comparisons |
| 170 | + "D1", # Don't REQUIRE docstrings in notebooks - but lint them if they are there |
167 | 171 | ] |
0 commit comments