From 915311adab36acb547d673188b7955d77d1cd1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Wed, 5 Apr 2023 07:07:45 -0700 Subject: [PATCH] Bump deps and tools Committed via https://github.com/asottile/all-repos --- .pre-commit-config.yaml | 8 ++++---- tox.ini | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b07d546..2c0289f 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,13 +29,13 @@ repos: rev: 1.13.0 hooks: - id: blacken-docs - additional_dependencies: [ black==23.1 ] + additional_dependencies: [ black==23.3 ] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0 hooks: - id: rst-backticks - 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 e33d161..58b4141 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,5 @@ [tox] +minversion = 3.21 envlist = fix py311 @@ -10,14 +11,15 @@ envlist = readme isolated_build = true skip_missing_interpreters = true -minversion = 3.21 [testenv] description = run the tests with pytest -setenv = - COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{/}.coverage.{envname}} +package = wheel +wheel_build_env = .pkg extras = test +setenv = + COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{/}.coverage.{envname}} commands = coverage erase coverage run -m pytest {tty:--color=yes} \ @@ -26,26 +28,24 @@ commands = coverage combine coverage report coverage html -d {envtmpdir}{/}htmlcov -package = wheel -wheel_build_env = .pkg [testenv:fix] description = run static analysis and style check using flake8 +skip_install = true +deps = + pre-commit>=3.2.1 passenv = HOMEPATH PROGRAMDATA -skip_install = true -deps = - pre-commit>=3.2 commands = pre-commit run --all-files --show-diff-on-failure [testenv:type] description = run type check on code base -setenv = - {tty:MYPY_FORCE_COLOR = 1} deps = mypy==1.1.1 +setenv = + {tty:MYPY_FORCE_COLOR = 1} commands = mypy --strict src mypy --strict tests