diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02c69313..92f68a27 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,10 +6,9 @@ repos: args: [--py37-plus] - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.3.0 hooks: - id: black - args: [--target-version=py37] - repo: https://github.com/PyCQA/isort rev: 5.12.0 @@ -27,13 +26,16 @@ repos: rev: v1.10.0 hooks: - id: python-check-blanket-noqa + - id: python-no-log-warn - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: + - id: check-case-conflict - id: check-merge-conflict - id: check-toml - id: check-yaml + - id: end-of-file-fixer - repo: https://github.com/tox-dev/pyproject-fmt rev: 0.9.2 @@ -41,24 +43,24 @@ repos: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.12.1 + rev: v0.12.2 hooks: - id: validate-pyproject - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 0.6.1 + rev: 1.0.0 hooks: - id: tox-ini-fmt - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.5 + rev: v3.0.0-alpha.6 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88] exclude: ^.github/ISSUE_TEMPLATE/bug_report.md$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.0.1" + rev: "v1.1.1" hooks: - id: mypy additional_dependencies: [types-colorama, types-setuptools] diff --git a/tox.ini b/tox.ini index 9e51cdd9..1af7a077 100644 --- a/tox.ini +++ b/tox.ini @@ -5,10 +5,10 @@ envlist = isolated_build = true [testenv] -passenv = - FORCE_COLOR extras = tests +passenv = + FORCE_COLOR commands = {envpython} -m pytest \ --cov prettytable \ @@ -17,10 +17,10 @@ commands = coverage report [testenv:lint] -passenv = - PRE_COMMIT_COLOR skip_install = true deps = pre-commit +passenv = + PRE_COMMIT_COLOR commands = pre-commit run --all-files --show-diff-on-failure