Skip to content

Commit

Permalink
Bump deps and tools (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Apr 5, 2023
1 parent 884f423 commit ba7a132
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
args: [ --safe ]
- repo: https://github.com/asottile/blacken-docs
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" ]
Expand All @@ -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
Expand Down
20 changes: 10 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tox]
minversion = 3.21
envlist =
fix
py311
Expand All @@ -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} \
Expand All @@ -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
Expand Down

0 comments on commit ba7a132

Please sign in to comment.