Skip to content

Commit ab68ef9

Browse files
authored
📚 Enable nitpicky mode (chrisjsewell#56)
1 parent e69fcda commit ab68ef9

File tree

4 files changed

+12
-21
lines changed

4 files changed

+12
-21
lines changed

docs/source/conf.py

+7-21
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
version = ".".join(release.split(".")[:2])
3838

3939
intersphinx_mapping = {
40-
"python": ("https://docs.python.org/3.6", None),
40+
"python": ("https://docs.python.org/3.8", None),
4141
"_pytest": ("https://doc.pytest.org/en/latest/", None),
4242
# "PIL": ("http://pillow.readthedocs.org/en/latest/", None),
4343
"nbclient": ("https://nbclient.readthedocs.io/en/latest/", None),
@@ -47,35 +47,21 @@
4747
}
4848

4949
intersphinx_aliases = {
50-
("py:class", "List"): ("py:class", "list"),
51-
("py:class", "Sequence"): ("py:class", "list"),
52-
("py:class", "Mapping"): ("py:class", "dict"),
53-
("py:class", "Tuple"): ("py:class", "tuple"),
54-
("py:class", "Callable"): ("py:class", "collections.abc.Callable"),
55-
("py:class", "callable"): ("py:class", "collections.abc.Callable"),
56-
("py:class", "_pytest.nodes.File"): ("py:class", "_pytest.nodes.Node"),
5750
("py:class", "NotebookNode"): ("py:class", "nbformat.NotebookNode"),
58-
("py:class", "nbformat.notebooknode.NotebookNode"): (
59-
"py:class",
60-
"nbformat.NotebookNode",
61-
),
62-
("py:class", "nbconvert.preprocessors.execute.ExecutePreprocessor"): (
63-
"py:class",
64-
"nbconvert.preprocessors.ExecutePreprocessor",
65-
),
66-
("py:class", "coverage.control.Coverage"): ("py:class", "coverage.Coverage"),
51+
("py:class", "Path"): ("py:class", "pathlib.Path"),
6752
}
6853

54+
nitpicky = True
6955
nitpick_ignore = [
70-
("py:class", "NoneType"),
56+
("py:class", "t.Any"),
7157
("py:class", "Config"),
72-
("py:class", "TextIO"),
7358
("py:class", "attr.ib"),
7459
("py:class", "attr.s"),
75-
("py:class", "ruamel.yaml.dumper.RoundTripDumper"),
60+
("py:class", "Session"),
7661
("py:exc", "nbconvert.preprocessors.CellExecutionError"),
7762
("py:class", "nbdime.diff_format.DiffEntry"),
78-
("py:class", "_pytest.nodes.Item"),
63+
("py:class", "_pytest._py.path.LocalPath"),
64+
("py:meth", "Item.reportinfo"),
7965
]
8066

8167
# The name of the Pygments (syntax highlighting) style to use.

docs/source/user_guide/tutorial_coverage.md

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ This is also the case, when using the pytest file collection approach.
116116
[pytest]
117117
nb_coverage = True
118118
nb_test_files = True
119+
nb_diff_ignore =
120+
/metadata/language_info
119121
---
120122
121123
***

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ docs = [
6060
"myst-nb~=1.0",
6161
"coverage~=5.0",
6262
"pytest-cov",
63+
"black",
6364
]
6465

6566
[project.entry-points."pytest11"]

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ commands = pytest {posargs}
2020
extras = docs
2121
changedir = docs
2222
whitelist_externals = make
23+
setenv =
24+
PYDEVD_DISABLE_FILE_VALIDATION = 1
2325
commands =
2426
clean: make clean
2527
make

0 commit comments

Comments
 (0)