File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,21 +26,21 @@ repos:
2626 hooks :
2727 - id : isort
2828 - repo : https://github.com/psf/black
29- rev : 23.1 .0
29+ rev : 23.3 .0
3030 hooks :
3131 - id : black
3232 args : [--safe]
3333 - repo : https://github.com/asottile/blacken-docs
3434 rev : 1.13.0
3535 hooks :
3636 - id : blacken-docs
37- additional_dependencies : [black==23.1 ]
37+ additional_dependencies : [black==23.3 ]
3838 - repo : https://github.com/pre-commit/pygrep-hooks
3939 rev : v1.10.0
4040 hooks :
4141 - id : rst-backticks
4242 - repo : https://github.com/tox-dev/tox-ini-fmt
43- rev : " 0.6.1 "
43+ rev : " 1.0.0 "
4444 hooks :
4545 - id : tox-ini-fmt
4646 args : ["-p", "fix"]
4949 hooks :
5050 - id : flake8
5151 additional_dependencies :
52- - flake8-bugbear==23.3.12
52+ - flake8-bugbear==23.3.23
5353 - flake8-comprehensions==3.11.1
5454 - flake8-pytest-style==1.7.2
5555 - flake8-spellcheck==0.28
Original file line number Diff line number Diff line change 11[tox]
2+ minversion = 3.14.0
23envlist =
34 fix
45 py310
@@ -9,46 +10,45 @@ envlist =
910 pkg_check
1011isolated_build = true
1112skip_missing_interpreters = true
12- minversion = 3.14.0
1313
1414[testenv]
1515description = run the unit tests with pytest under {basepython}
16+ package = wheel
17+ wheel_build_env = .pkg
18+ extras =
19+ test
1620setenv =
1721 COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
1822 COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
1923 _COVERAGE_SRC = {envsitepackagesdir}/sphinx_argparse_cli
20- extras =
21- test
2224commands =
2325 pytest {tty:--color =yes} {posargs: \
2426 --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}sphinx_argparse_cli \
2527 --cov {toxinidir}{/}tests --cov-fail-under =100 \
2628 --cov-config =pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context =test \
2729 --cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
2830 tests}
29- package = wheel
30- wheel_build_env = .pkg
3131
3232[testenv:fix]
3333description = run static analysis and style check using flake8
34- passenv =
35- HOMEPATH
36- PROGRAMDATA
3734basepython = python3.10
3835skip_install = true
3936deps =
40- pre-commit>=3.2
37+ pre-commit>=3.2.1
38+ passenv =
39+ HOMEPATH
40+ PROGRAMDATA
4141commands =
4242 pre-commit run --all-files --show-diff-on-failure
4343 python -c ' print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'
4444
4545[testenv:type]
4646description = run type check on code base
47- setenv =
48- {tty:MYPY_FORCE_COLOR = 1}
4947deps =
5048 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}
5252commands =
5353 mypy src
5454 mypy tests
You can’t perform that action at this time.
0 commit comments