Bump deps and tools (#220)

This commit is contained in:
Bernát Gábor 2023-04-05 09:20:20 -07:00 committed by GitHub
parent ff4e50eefa
commit 158423dfdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -21,7 +21,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
args: [--safe]
@ -29,9 +29,9 @@ repos:
rev: 1.13.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.1]
additional_dependencies: [black==23.3]
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: "0.6.1"
rev: "1.0.0"
hooks:
- id: tox-ini-fmt
args: ["-p", "fix"]
@ -44,7 +44,7 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==23.3.12
- flake8-bugbear==23.3.23
- flake8-comprehensions==3.11.1
- flake8-pytest-style==1.7.2
- flake8-spellcheck==0.28

14
tox.ini
View File

@ -1,4 +1,5 @@
[tox]
minversion = 3.14
envlist =
fix
py311
@ -9,17 +10,18 @@ envlist =
readme
isolated_build = true
skip_missing_interpreters = true
minversion = 3.14
[testenv]
description = run the unit tests with pytest under {basepython}
package = wheel
wheel_build_env = .pkg
extras =
graphviz
test
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
_COVERAGE_SRC = {envsitepackagesdir}/sphinx_argparse_cli
extras =
graphviz
test
commands =
python -m pytest {tty:--color=yes} {posargs: \
--junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}pipdeptree \
@ -28,14 +30,12 @@ commands =
--cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
tests}
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}{/}coverage.{envname}.xml
package = wheel
wheel_build_env = .pkg
[testenv:fix]
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
skip_install = true
deps =
pre-commit>=3.2
pre-commit>=3.2.1
commands =
pre-commit run --all-files --show-diff-on-failure