File tree 4 files changed +16
-5
lines changed
4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ exclude: ^domdf_python_tools/compat/importlib_resources.py$
5
5
6
6
repos :
7
7
- repo : https://github.com/repo-helper/pyproject-parser
8
- rev : v0.5.0
8
+ rev : v0.6.1
9
9
hooks :
10
10
- id : reformat-pyproject
11
11
67
67
- --keep-runtime-typing
68
68
69
69
- repo : https://github.com/Lucas-C/pre-commit-hooks
70
- rev : v1.1.13
70
+ rev : v1.2.0
71
71
hooks :
72
72
- id : remove-crlf
73
73
- id : forbid-crlf
Original file line number Diff line number Diff line change 32
32
slug = re .sub (r'\W+' , '-' , project .lower ())
33
33
release = version = config .version
34
34
35
- todo_include_todos = bool (os .environ .get ("SHOW_TODOS" , 0 ))
35
+ sphinx_builder = os .environ .get ("SPHINX_BUILDER" , "html" ).lower ()
36
+ todo_include_todos = int (os .environ .get ("SHOW_TODOS" , 0 )) and sphinx_builder != "latex"
36
37
37
38
intersphinx_mapping = {
38
39
"python" : ("https://docs.python.org/3/" , None ),
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ unused-imports:
10
10
tox -e lint -- --select F401
11
11
12
12
incomplete-defs :
13
- #!/usr/bin/env bash
14
- tox -e mypy -- --disallow-incomplete-defs --disallow-untyped-defs | grep " Function is missing a .* annotation" || exit 0
13
+ tox -e lint -- --select MAN
15
14
16
15
vdiff :
17
16
git diff $(repo-helper show version -q)..HEAD
Original file line number Diff line number Diff line change 5
5
# * testenv:docs
6
6
# * testenv:build
7
7
# * testenv:lint
8
+ # * testenv:perflint
8
9
# * testenv:mypy
9
10
# * testenv:pyup
10
11
# * testenv:coverage
@@ -51,6 +52,7 @@ cov = py36, coverage
51
52
52
53
[testenv:docs]
53
54
setenv = SHOW_TODOS = 1
55
+ passenv = SPHINX_BUILDER
54
56
basepython = python3.8
55
57
changedir = {toxinidir}/doc-source
56
58
extras = all
@@ -93,11 +95,20 @@ deps =
93
95
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
94
96
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
95
97
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
98
+ git+https://github.com/python-formate/flake8-missing-annotations.git
96
99
pydocstyle>=6.0.0
97
100
pygments>=2.7.1
98
101
importlib_metadata<4.5.0; python_version<'3.8'
99
102
commands = python3 -m flake8_rst_docstrings_sphinx domdf_python_tools tests --allow-toolbox {posargs}
100
103
104
+ [testenv:perflint]
105
+ basepython = python3.6
106
+ changedir = {toxinidir}
107
+ ignore_errors = True
108
+ skip_install = True
109
+ deps = perflint
110
+ commands = python3 -m perflint domdf_python_tools {posargs}
111
+
101
112
[testenv:mypy]
102
113
basepython = python3.6
103
114
ignore_errors = True
You can’t perform that action at this time.
0 commit comments