Skip to content

Commit 29debe5

Browse files
committed
# Conflicts: # docs/conf.py
2 parents 58fe058 + 790fa6e commit 29debe5

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
@@ -41,5 +45,16 @@
4145
# Preserve authored syntax for defaults
4246
autodoc_preserve_defaults = True
4347

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
58+
4459
# for distutils, disable nitpicky
4560
nitpicky = False

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)