Skip to content

Commit d705831

Browse files
committed
2 parents f25615f + 790fa6e commit d705831

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docs/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from __future__ import annotations
2+
3+
14
extensions = [
25
'sphinx.ext.autodoc',
36
'jaraco.packaging.sphinx',
@@ -30,6 +33,7 @@
3033

3134
# Be strict about any broken references
3235
nitpicky = True
36+
nitpick_ignore: list[tuple[str, str]] = []
3337

3438
# Include Python intersphinx mapping to prevent failures
3539
# jaraco/skeleton#51
@@ -40,3 +44,14 @@
4044

4145
# Preserve authored syntax for defaults
4246
autodoc_preserve_defaults = True
47+
48+
# Add support for linking usernames, PyPI projects, Wikipedia pages
49+
github_url = 'https://github.com/'
50+
extlinks = {
51+
'user': (f'{github_url}%s', '@%s'),
52+
'pypi': ('https://pypi.org/project/%s', '%s'),
53+
'wiki': ('https://wikipedia.org/wiki/%s', '%s'),
54+
}
55+
extensions += ['sphinx.ext.extlinks']
56+
57+
# local

mypy.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ enable_error_code = ignore-without-code
1010
# Support namespace packages per https://github.com/python/mypy/issues/14057
1111
explicit_package_bases = True
1212

13-
# Disable overload-overlap due to many false-positives
14-
disable_error_code = overload-overlap
13+
disable_error_code =
14+
# Disable due to many false positives
15+
overload-overlap,

0 commit comments

Comments
 (0)