Skip to content

Commit 5e7c767

Browse files
committed
Make Sphinx build nitpicky
1 parent 57d613f commit 5e7c767

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def build(session, autobuild=False):
3030
# Ref: https://github.com/pypa/pypa-docs-theme/issues/17
3131
# "-j", "auto", # parallelize the build
3232
"-b", "html", # use HTML builder
33+
"-n", # nitpicky warn about all missing references
3334
"-W", # Treat warnings as errors.
3435
"source", # where the rst files are located
3536
target_build_dir, # where to put the html output

source/conf.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,17 @@
382382
# The default is False.
383383

384384
todo_include_todos = True
385+
386+
nitpicky = True
387+
388+
# NOTE: consider having a separate ignore file
389+
# Ref: https://stackoverflow.com/a/30624034/595220
390+
nitpick_ignore = [
391+
('envvar', 'PATH'),
392+
('py:func', 'find_packages'),
393+
('py:func', 'pkg_resources.iter_entry_points'),
394+
('py:func', 'setup'),
395+
('py:func', 'setuptools.find_namespace_packages'),
396+
('py:func', 'setuptools.find_packages'),
397+
('py:func', 'setuptools.setup'),
398+
]

0 commit comments

Comments
 (0)