Skip to content

Commit aa9421d

Browse files
committed
# Conflicts: # docs/conf.py # mypy.ini
2 parents f9a91a1 + 790fa6e commit aa9421d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

docs/conf.py

Lines changed: 16 additions & 1 deletion
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',
@@ -34,6 +37,7 @@
3437

3538
# Be strict about any broken references
3639
nitpicky = True
40+
nitpick_ignore: list[tuple[str, str]] = []
3741

3842
# Include Python intersphinx mapping to prevent failures
3943
# jaraco/skeleton#51
@@ -45,6 +49,17 @@
4549
# Preserve authored syntax for defaults
4650
autodoc_preserve_defaults = True
4751

52+
# Add support for linking usernames, PyPI projects, Wikipedia pages
53+
github_url = 'https://github.com/'
54+
extlinks = {
55+
'user': (f'{github_url}%s', '@%s'),
56+
'pypi': ('https://pypi.org/project/%s', '%s'),
57+
'wiki': ('https://wikipedia.org/wiki/%s', '%s'),
58+
}
59+
extensions += ['sphinx.ext.extlinks']
60+
61+
# local
62+
4863
extensions += ['jaraco.tidelift']
4964

5065
intersphinx_mapping.update(
@@ -61,7 +76,7 @@
6176
),
6277
)
6378

64-
nitpick_ignore = [
79+
nitpick_ignore += [
6580
# Workaround for #316
6681
('py:class', 'importlib_metadata.EntryPoints'),
6782
('py:class', 'importlib_metadata.PackagePath'),

mypy.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ 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,
1516

1617
# jaraco/pytest-perf#16
1718
[mypy-pytest_perf.*]

0 commit comments

Comments
 (0)