Skip to content

Commit 78f239f

Browse files
committed
Fix lint testenv and increase minimum permitted test coverage
1 parent ee79ac2 commit 78f239f

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

repo_helper.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ entry_points:
3939
sphinx_html_theme: furo
4040
standalone_contrib_guide: true
4141

42-
min_coverage: 90
42+
min_coverage: 100
43+
44+
tox_unmanaged:
45+
- testenv:lint

tox.ini

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# * testenv
66
# * testenv:docs
77
# * testenv:build
8-
# * testenv:lint
98
# * testenv:mypy
109
# * testenv:pyup
1110
# * testenv:coverage
@@ -56,30 +55,6 @@ commands =
5655
twine check dist/*.tar.gz dist/*.whl
5756
check-wheel-contents dist/
5857

59-
[testenv:lint]
60-
basepython = python3.6
61-
changedir = {toxinidir}
62-
ignore_errors = True
63-
skip_install = True
64-
deps =
65-
flake8 >=3.8.2
66-
flake8-2020 >= 1.6.0
67-
flake8-builtins>=1.5.3
68-
flake8-docstrings>=1.5.0
69-
flake8-dunder-all>=0.1.1
70-
flake8-github-actions>=0.1.0
71-
flake8-pyi>=20.10.0
72-
flake8-pytest-style>=1.3.0
73-
flake8-sphinx-links>=0.0.4
74-
flake8-strftime>=0.1.1
75-
flake8-typing-imports>=1.10.0
76-
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
77-
git+https://github.com/domdfcoding/flake8-quotes.git
78-
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
79-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
80-
pygments>=2.7.1
81-
commands = python3 -m flake8_rst_docstrings_sphinx flake8_strftime tests --allow-toolbox {posargs}
82-
8358
[testenv:mypy]
8459
basepython = python3.6
8560
ignore_errors = True
@@ -132,7 +107,7 @@ count = True
132107
plugins = coverage_pyver_pragma
133108
134109
[coverage:report]
135-
fail_under = 90
110+
fail_under = 100
136111
exclude_lines =
137112
raise AssertionError
138113
raise NotImplementedError
@@ -151,6 +126,29 @@ package = flake8_strftime
151126
addopts = --color yes --durations 25
152127
timeout = 300
153128
129+
[testenv:lint]
130+
basepython = python3.6
131+
changedir = {toxinidir}
132+
ignore_errors = True
133+
deps =
134+
flake8 >=3.8.2
135+
flake8-2020 >= 1.6.0
136+
flake8-builtins>=1.5.3
137+
flake8-docstrings>=1.5.0
138+
flake8-dunder-all>=0.1.1
139+
flake8-github-actions>=0.1.0
140+
flake8-pyi>=20.10.0
141+
flake8-pytest-style>=1.3.0
142+
flake8-sphinx-links>=0.0.4
143+
flake8-strftime>=0.1.1
144+
flake8-typing-imports>=1.10.0
145+
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
146+
git+https://github.com/domdfcoding/flake8-quotes.git
147+
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
148+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
149+
pygments>=2.7.1
150+
commands = python3 -m flake8_rst_docstrings_sphinx flake8_strftime tests --allow-toolbox {posargs}
151+
154152
[gh-actions]
155153
python =
156154
3.6: py36, build, mypy

0 commit comments

Comments
 (0)