Skip to content

Commit 1e3055c

Browse files
committed
Updated config files.
1 parent c6f5a06 commit 1e3055c

File tree

14 files changed

+149
-137
lines changed

14 files changed

+149
-137
lines changed

.dependabot/config.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# This file is managed by 'repo_helper'. Don't edit it directly.
22
---
3-
4-
version: 1
53
update_configs:
6-
- package_manager: "python"
7-
directory: "/"
8-
update_schedule: "weekly"
9-
default_reviewers:
10-
- "domdfcoding"
4+
- default_reviewers:
5+
- domdfcoding
6+
directory: /
7+
package_manager: python
8+
update_schedule: weekly
9+
version: 1

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ assignees: domdfcoding
99
<!-- Have you searched for similar issues? Before submitting this issue, please check the open issues and add a note before logging a new issue.
1010
1111
PLEASE USE THE TEMPLATE BELOW TO PROVIDE INFORMATION ABOUT THE ISSUE.
12-
INSUFFICIENT INFO WILL GET THE ISSUE CLOSED. IT WILL ONLY BE REOPENED AFTER SUFFICIENT INFO IS PROVIDED-->
12+
THE ISSUE WILL BE CLOSED IF INSUFFICIENT INFORMATION IS PROVIDED.
13+
-->
1314

1415
## Description
1516
<!--Provide a brief description of the issue-->

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ assignees: domdfcoding
77
---
88

99
<!-- Have you searched for similar issues? Someone may already be working on the feature you are suggesting. Before submitting this issue, please check the open issues and add a note before logging a new issue.
10-
11-
PLEASE USE THE TEMPLATE BELOW TO PROVIDE INFORMATION ABOUT THE ISSUE.
12-
INSUFFICIENT INFO WILL GET THE ISSUE CLOSED. IT WILL ONLY BE REOPENED AFTER SUFFICIENT INFO IS PROVIDED-->
10+
-->
1311

1412

1513
## Description

.github/workflows/docs_test_action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: Install and Build 🔧
1515
uses: ammaraskar/sphinx-action@master
1616
with:
17-
pre-build-command: apt-get update && apt-get install gcc python3-dev git -y && python -m pip install tox
17+
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox
1818
docs-folder: "doc-source/"
1919
build-command: "tox -e docs -- "

.isort.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ known_third_party =
2121
pytest_cov
2222
pytest_randomly
2323
pytest_rerunfailures
24+
pytest_timeout
2425
requests
2526
known_first_party = flake8_sphinx_links
2627
remove_redundant_aliases = True

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ repos:
5050
- repo: https://github.com/Lucas-C/pre-commit-hooks
5151
rev: v1.1.7
5252
hooks:
53-
- id: forbid-crlf
5453
- id: remove-crlf
54+
- id: forbid-crlf
5555

5656

5757
- repo: https://github.com/domdfcoding/yapf-isort
58-
rev: v0.3.0
58+
rev: v0.3.2
5959
hooks:
6060
- id: yapf-isort
6161
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$

.travis.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ python:
1111
- '3.9-dev'
1212
- 'pypy3'
1313

14-
arch: amd64
14+
arch:
15+
- amd64
16+
- arm64
1517
install:
1618

1719
- pip install --upgrade pip
1820
- pip install tox tox-travis
1921
- pip install coveralls coverage_pyver_pragma
2022

2123
script:
22-
- tox
24+
- tox -vv
2325
after_success:
2426
- coveralls
2527

@@ -31,15 +33,24 @@ stages:
3133

3234

3335
jobs:
36+
allow_failures:
37+
- arch: arm64
38+
39+
exclude:
40+
- python: '3.7'
41+
arch: arm64
42+
- python: '3.8'
43+
arch: arm64
44+
- python: '3.9-dev'
45+
arch: arm64
46+
- python: 'pypy3'
47+
arch: arm64
48+
3449
include:
3550
- stage: test
3651
dist: bionic
3752
python: 3.8
3853

39-
- stage: test
40-
arch: arm64
41-
python: 3.8
42-
4354
- stage: deploy_pypi
4455
python: "3.6"
4556
script: skip

__pkginfo__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is managed by 'repo_helper'. Don't edit it directly.
2-
# Copyright (C) 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
2+
# Copyright © 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
33
#
44
# This file is distributed under the same license terms as the program it came with.
55
# There will probably be a file called LICEN[S/C]E in the same directory as this file.

doc-source/conf.py

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@
1010
sys.path.append(os.path.abspath('.'))
1111
sys.path.append(os.path.abspath('..'))
1212

13+
# this package
1314
from __pkginfo__ import __version__
1415

15-
# User-configurable lines
16-
# End of user-configurable lines
17-
1816
github_username = "domdfcoding"
1917
github_repository = "flake8-sphinx-links"
2018
github_url = f"https://github.com/{github_username}/{github_repository}"
2119

22-
2320
rst_prolog = f""".. |pkgname| replace:: flake8_sphinx_links
2421
.. |pkgname2| replace:: ``flake8_sphinx_links``
2522
.. |browse_github| replace:: `Browse the GitHub Repository <{github_url}>`__
@@ -34,22 +31,22 @@
3431
package_root = "flake8_sphinx_links"
3532

3633
extensions = [
37-
'sphinx_toolbox',
38-
'sphinx_toolbox.more_autodoc',
39-
'sphinx_toolbox.more_autosummary',
40-
'sphinx_toolbox.tweaks.param_dash',
41-
'sphinx.ext.intersphinx',
42-
'sphinx.ext.mathjax',
43-
'sphinxcontrib.httpdomain',
44-
'sphinxcontrib.extras_require',
45-
'sphinx.ext.todo',
46-
'sphinxemoji.sphinxemoji',
47-
'notfound.extension',
48-
'sphinx_copybutton',
49-
'sphinxcontrib.default_values',
50-
'sphinxcontrib.toctree_plus',
51-
'seed_intersphinx_mapping',
52-
]
34+
'sphinx_toolbox',
35+
'sphinx_toolbox.more_autodoc',
36+
'sphinx_toolbox.more_autosummary',
37+
'sphinx_toolbox.tweaks.param_dash',
38+
'sphinx.ext.intersphinx',
39+
'sphinx.ext.mathjax',
40+
'sphinxcontrib.httpdomain',
41+
'sphinxcontrib.extras_require',
42+
'sphinx.ext.todo',
43+
'sphinxemoji.sphinxemoji',
44+
'notfound.extension',
45+
'sphinx_copybutton',
46+
'sphinxcontrib.default_values',
47+
'sphinxcontrib.toctree_plus',
48+
'seed_intersphinx_mapping',
49+
]
5350

5451
sphinxemoji_style = 'twemoji'
5552
todo_include_todos = bool(os.environ.get("SHOW_TODOS", 0))
@@ -67,9 +64,6 @@
6764
intersphinx_mapping = {
6865
'python': ('https://docs.python.org/3/', None),
6966
'sphinx': ('https://www.sphinx-doc.org/en/stable/', None),
70-
'rtd': ('https://docs.readthedocs.io/en/latest/', None),
71-
"h5py": ('https://docs.h5py.org/en/latest/', None),
72-
"sarge": ('https://sarge.readthedocs.io/en/latest/', None),
7367
}
7468

7569
html_theme = 'domdf_sphinx_theme'
@@ -110,29 +104,33 @@
110104
}
111105

112106
add_module_names = False
113-
114-
107+
hide_none_rtype = True
108+
all_typevars = True
109+
overloads_location = "bottom"
110+
111+
112+
autodoc_exclude_members = [ # Exclude "standard" methods.
113+
"__dict__",
114+
"__class__",
115+
"__dir__",
116+
"__weakref__",
117+
"__module__",
118+
"__annotations__",
119+
"__orig_bases__",
120+
"__parameters__",
121+
"__subclasshook__",
122+
"__init_subclass__",
123+
"__attrs_attrs__",
124+
"__init__",
125+
"__new__",
126+
"__getnewargs__",
127+
"__abstractmethods__",
128+
"__hash__",
129+
]
115130
autodoc_default_options = {
116131
'members': None, # Include all members (methods).
117132
'special-members': None,
118133
"autosummary": None,
119134
"show-inheritance": None,
120-
'exclude-members': ','.join([ # Exclude "standard" methods.
121-
"__dict__",
122-
"__class__",
123-
"__dir__",
124-
"__weakref__",
125-
"__module__",
126-
"__annotations__",
127-
"__orig_bases__",
128-
"__parameters__",
129-
"__subclasshook__",
130-
"__init_subclass__",
131-
"__attrs_attrs__",
132-
"__init__",
133-
"__new__",
134-
"__getnewargs__",
135-
"__abstractmethods__",
136-
"__hash__",
137-
]),
135+
'exclude-members': ','.join(autodoc_exclude_members),
138136
}

doc-source/docutils.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[restructuredtext parser]
2-
tab_width: 4
2+
tab_width = 4

doc-source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sphinx-copybutton>=0.2.12
88
sphinx-notfound-page>=0.5
99
sphinx-prompt>=1.1.0
1010
sphinx-tabs>=1.1.13
11-
sphinx-toolbox>=1.0.0
11+
sphinx-toolbox>=1.5.1
1212
sphinxcontrib-httpdomain>=1.7.0
1313
sphinxemoji>=0.1.6
1414
toctree_plus>=0.0.4

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
# this package
1313
from __pkginfo__ import * # pylint: disable=wildcard-import
1414

15-
16-
1715
setup(
18-
description='A flake8 plugin which checks docstrings for double backticked strings that should be links to the Python documentation.',
16+
description=
17+
'A flake8 plugin which checks docstrings for double backticked strings that should be links to the Python documentation.',
1918
extras_require=extras_require,
2019
install_requires=install_requires,
2120
py_modules=[],
2221
version=__version__,
23-
2422
)

tests/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
coverage>=5.1
2-
coverage_pyver_pragma>=0.0.5
2+
coverage_pyver_pragma>=0.0.6
3+
iniconfig!=1.1.0,>=1.0.1
34
pytest>=6.0.0
45
pytest-cov>=2.8.1
56
pytest-randomly>=3.3.1
67
pytest-rerunfailures>=9.0
8+
pytest-timeout>=1.4.2

0 commit comments

Comments
 (0)