Skip to content

Commit 8d86aef

Browse files
[pre-commit.ci] pre-commit autoupdate (#62)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4a64d60 commit 8d86aef

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
hooks:
2222
- id: isort
2323
- repo: https://github.com/psf/black
24-
rev: 23.1.0
24+
rev: 23.3.0
2525
hooks:
2626
- id: black
2727
args: [--safe]
@@ -35,7 +35,7 @@ repos:
3535
hooks:
3636
- id: setup-cfg-fmt
3737
- repo: https://github.com/tox-dev/tox-ini-fmt
38-
rev: "0.6.1"
38+
rev: "1.0.0"
3939
hooks:
4040
- id: tox-ini-fmt
4141
args: ["-p", "fix"]
@@ -53,7 +53,7 @@ repos:
5353
- pep8-naming==0.13.3
5454
- flake8-pyproject==1.2.3
5555
- repo: https://github.com/pre-commit/mirrors-prettier
56-
rev: "v2.7.1"
56+
rev: "v3.0.0-alpha.6"
5757
hooks:
5858
- id: prettier
5959
additional_dependencies:

tox.ini

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tox]
2+
minversion = 3.14
23
envlist =
34
fix
45
py310
@@ -9,43 +10,42 @@ envlist =
910
readme
1011
isolated_build = true
1112
skip_missing_interpreters = true
12-
minversion = 3.14
1313

1414
[testenv]
1515
description = run the unit tests with pytest under {basepython}
16+
package = wheel
17+
wheel_build_env = .pkg
18+
extras =
19+
test
1620
setenv =
1721
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
1822
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
1923
_COVERAGE_SRC = {envsitepackagesdir}/sphinx_argparse_cli
20-
extras =
21-
test
2224
commands =
2325
pytest {tty:--color=yes} {posargs: \
2426
--junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}devpi_process \
2527
--cov {toxinidir}{/}tests --cov-fail-under=100 \
2628
--cov-config=setup.cfg --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]
3333
description = run static analysis and style check using flake8
34-
passenv =
35-
HOMEPATH
36-
PROGRAMDATA
3734
skip_install = true
3835
deps =
3936
pre-commit>=3.2
37+
passenv =
38+
HOMEPATH
39+
PROGRAMDATA
4040
commands =
4141
pre-commit run --all-files --show-diff-on-failure
4242

4343
[testenv:type]
4444
description = run type check on code base
45-
setenv =
46-
{tty:MYPY_FORCE_COLOR = 1}
4745
deps =
4846
mypy==1.1.1
47+
setenv =
48+
{tty:MYPY_FORCE_COLOR = 1}
4949
commands =
5050
mypy --strict --python-version 3.10 src
5151
mypy --strict --python-version 3.10 tests

0 commit comments

Comments
 (0)