diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4bff09f8..f6f532ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.4.0 + rev: v3.10.1 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black @@ -17,7 +17,7 @@ repos: args: [--add-import=from __future__ import annotations] - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 additional_dependencies: [flake8-2020, flake8-implicit-str-concat] @@ -37,36 +37,39 @@ repos: - id: check-toml - id: check-yaml - id: end-of-file-fixer + - id: trailing-whitespace + exclude: .github/ISSUE_TEMPLATE/bug_report.md|tests/test_prettytable.py + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.5.1 + hooks: + - id: mypy + additional_dependencies: [types-colorama, types-setuptools] + args: [--pretty, --show-error-codes] + exclude: ^tests/ - repo: https://github.com/tox-dev/pyproject-fmt - rev: 0.10.0 + rev: 1.1.0 hooks: - id: pyproject-fmt + additional_dependencies: [tox] - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.13 + rev: v0.14 hooks: - id: validate-pyproject - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.3.0 + rev: 1.3.1 hooks: - id: tox-ini-fmt - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v3.0.3 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.3.0" - hooks: - - id: mypy - additional_dependencies: [types-colorama, types-setuptools] - args: [--pretty, --show-error-codes] - exclude: ^tests/ - ci: autoupdate_schedule: quarterly diff --git a/pyproject.toml b/pyproject.toml index 7f2b0a05..56cdbfdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,6 @@ requires-python = ">=3.8" classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", - "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9",