Merge pull request #1279 from pre-commit/all-repos_autofix_py311-plus py311+
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b87a27..3f97109 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml
@@ -8,12 +8,12 @@ jobs: main-windows: - uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1 + uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1 with: - env: '["py310"]' + env: '["py311"]' os: windows-latest main-linux: - uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1 + uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1 with: - env: '["py310", "py311", "py312", "py313"]' + env: '["py311", "py312", "py313", "py314"]' os: ubuntu-latest
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index acb1a3b..6f0f310 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml
@@ -17,7 +17,7 @@ rev: v3.17.0 hooks: - id: reorder-python-imports - args: [--py310-plus, --add-import, 'from __future__ import annotations'] + args: [--py311-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/add-trailing-comma rev: v4.0.0 hooks: @@ -26,7 +26,7 @@ rev: v3.21.2 hooks: - id: pyupgrade - args: [--py310-plus] + args: [--py311-plus] - repo: https://github.com/hhatto/autopep8 rev: v2.3.2 hooks:
diff --git a/pre_commit_hooks/check_toml.py b/pre_commit_hooks/check_toml.py index 2105b07..2f978b7 100644 --- a/pre_commit_hooks/check_toml.py +++ b/pre_commit_hooks/check_toml.py
@@ -1,14 +1,9 @@ from __future__ import annotations import argparse -import sys +import tomllib from collections.abc import Sequence -if sys.version_info >= (3, 11): # pragma: >=3.11 cover - import tomllib -else: # pragma: <3.11 cover - import tomli as tomllib - def main(argv: Sequence[str] | None = None) -> int: parser = argparse.ArgumentParser()
diff --git a/setup.cfg b/setup.cfg index d91f439..0a1c124 100644 --- a/setup.cfg +++ b/setup.cfg
@@ -19,8 +19,7 @@ packages = find: install_requires = ruamel.yaml>=0.15 - tomli>=1.1.0;python_version<"3.11" -python_requires = >=3.10 +python_requires = >=3.11 [options.packages.find] exclude =