File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ exclude: ^$
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.14
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 27
27
slug = re .sub (r'\W+' , '-' , project .lower ())
28
28
release = version = config .version
29
29
30
- todo_include_todos = bool (os .environ .get ("SHOW_TODOS" , 0 ))
30
+ sphinx_builder = os .environ .get ("SPHINX_BUILDER" , "html" ).lower ()
31
+ todo_include_todos = int (os .environ .get ("SHOW_TODOS" , 0 )) and sphinx_builder != "latex"
31
32
32
33
intersphinx_mapping = {
33
34
"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 6
6
# * testenv:docs
7
7
# * testenv:build
8
8
# * testenv:lint
9
+ # * testenv:perflint
9
10
# * testenv:mypy
10
11
# * testenv:pyup
11
12
# * testenv:coverage
@@ -39,6 +40,7 @@ commands =
39
40
40
41
[testenv:docs]
41
42
setenv = SHOW_TODOS = 1
43
+ passenv = SPHINX_BUILDER
42
44
basepython = python3.8
43
45
changedir = {toxinidir}/doc-source
44
46
deps = -r{toxinidir}/doc-source/requirements.txt
@@ -80,11 +82,20 @@ deps =
80
82
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
81
83
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
82
84
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
85
+ git+https://github.com/python-formate/flake8-missing-annotations.git
83
86
pydocstyle>=6.0.0
84
87
pygments>=2.7.1
85
88
importlib_metadata<4.5.0; python_version<'3.8'
86
89
commands = python3 -m flake8_rst_docstrings_sphinx tox_recreate_hook tests --allow-toolbox {posargs}
87
90
91
+ [testenv:perflint]
92
+ basepython = python3.7
93
+ changedir = {toxinidir}
94
+ ignore_errors = True
95
+ skip_install = True
96
+ deps = perflint
97
+ commands = python3 -m perflint tox_recreate_hook {posargs}
98
+
88
99
[testenv:mypy]
89
100
basepython = python3.7
90
101
ignore_errors = True
You can’t perform that action at this time.
0 commit comments