From 158423dfdba814727058c95d0922beed2400e973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Wed, 5 Apr 2023 09:20:20 -0700 Subject: [PATCH] Bump deps and tools (#220) --- .pre-commit-config.yaml | 8 ++++---- tox.ini | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e6e0742..1c54858 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/tox.ini b/tox.ini index e932970..d866300 100644 --- a/tox.ini +++ b/tox.ini @@ -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