File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
3
+
1
4
extensions = [
2
5
'sphinx.ext.autodoc' ,
3
6
'jaraco.packaging.sphinx' ,
30
33
31
34
# Be strict about any broken references
32
35
nitpicky = True
36
+ nitpick_ignore : list [tuple [str , str ]] = []
33
37
34
38
# Include Python intersphinx mapping to prevent failures
35
39
# jaraco/skeleton#51
40
44
41
45
# Preserve authored syntax for defaults
42
46
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
Original file line number Diff line number Diff line change @@ -10,5 +10,6 @@ enable_error_code = ignore-without-code
10
10
# Support namespace packages per https://github.com/python/mypy/issues/14057
11
11
explicit_package_bases = True
12
12
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,
You can’t perform that action at this time.
0 commit comments