File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,21 @@ repos:
26
26
hooks :
27
27
- id : isort
28
28
- repo : https://github.com/psf/black
29
- rev : 23.1 .0
29
+ rev : 23.3 .0
30
30
hooks :
31
31
- id : black
32
32
args : [--safe]
33
33
- repo : https://github.com/asottile/blacken-docs
34
34
rev : 1.13.0
35
35
hooks :
36
36
- id : blacken-docs
37
- additional_dependencies : [black==23.1 ]
37
+ additional_dependencies : [black==23.3 ]
38
38
- repo : https://github.com/pre-commit/pygrep-hooks
39
39
rev : v1.10.0
40
40
hooks :
41
41
- id : rst-backticks
42
42
- repo : https://github.com/tox-dev/tox-ini-fmt
43
- rev : " 0.6.1 "
43
+ rev : " 1.0.0 "
44
44
hooks :
45
45
- id : tox-ini-fmt
46
46
args : ["-p", "fix"]
49
49
hooks :
50
50
- id : flake8
51
51
additional_dependencies :
52
- - flake8-bugbear==23.3.12
52
+ - flake8-bugbear==23.3.23
53
53
- flake8-comprehensions==3.11.1
54
54
- flake8-pytest-style==1.7.2
55
55
- flake8-spellcheck==0.28
Original file line number Diff line number Diff line change 1
1
[tox]
2
+ minversion = 3.14.0
2
3
envlist =
3
4
fix
4
5
py310
@@ -9,46 +10,45 @@ envlist =
9
10
pkg_check
10
11
isolated_build = true
11
12
skip_missing_interpreters = true
12
- minversion = 3.14.0
13
13
14
14
[testenv]
15
15
description = run the unit tests with pytest under {basepython}
16
+ package = wheel
17
+ wheel_build_env = .pkg
18
+ extras =
19
+ test
16
20
setenv =
17
21
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
18
22
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
19
23
_COVERAGE_SRC = {envsitepackagesdir}/sphinx_argparse_cli
20
- extras =
21
- test
22
24
commands =
23
25
pytest {tty:--color =yes} {posargs: \
24
26
--junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}sphinx_argparse_cli \
25
27
--cov {toxinidir}{/}tests --cov-fail-under =100 \
26
28
--cov-config =pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context =test \
27
29
--cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
28
30
tests}
29
- package = wheel
30
- wheel_build_env = .pkg
31
31
32
32
[testenv:fix]
33
33
description = run static analysis and style check using flake8
34
- passenv =
35
- HOMEPATH
36
- PROGRAMDATA
37
34
basepython = python3.10
38
35
skip_install = true
39
36
deps =
40
- pre-commit>=3.2
37
+ pre-commit>=3.2.1
38
+ passenv =
39
+ HOMEPATH
40
+ PROGRAMDATA
41
41
commands =
42
42
pre-commit run --all-files --show-diff-on-failure
43
43
python -c ' print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'
44
44
45
45
[testenv:type]
46
46
description = run type check on code base
47
- setenv =
48
- {tty:MYPY_FORCE_COLOR = 1}
49
47
deps =
50
48
mypy ==1.1.1
51
- types-docutils>=0.19.1.6
49
+ types-docutils>=0.19.1.7
50
+ setenv =
51
+ {tty:MYPY_FORCE_COLOR = 1}
52
52
commands =
53
53
mypy src
54
54
mypy tests
You can’t perform that action at this time.
0 commit comments