Skip to content

Commit ce9196d

Browse files
authored
Merge pull request #1279 from pre-commit/all-repos_autofix_py311-plus
py311+
2 parents ccfd994 + 57afbae commit ce9196d

4 files changed

Lines changed: 8 additions & 14 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88

99
jobs:
1010
main-windows:
11-
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
11+
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
1212
with:
13-
env: '["py310"]'
13+
env: '["py311"]'
1414
os: windows-latest
1515
main-linux:
16-
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
16+
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
1717
with:
18-
env: '["py310", "py311", "py312", "py313"]'
18+
env: '["py311", "py312", "py313", "py314"]'
1919
os: ubuntu-latest

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
rev: v3.17.0
1818
hooks:
1919
- id: reorder-python-imports
20-
args: [--py310-plus, --add-import, 'from __future__ import annotations']
20+
args: [--py311-plus, --add-import, 'from __future__ import annotations']
2121
- repo: https://github.com/asottile/add-trailing-comma
2222
rev: v4.0.0
2323
hooks:
@@ -26,7 +26,7 @@ repos:
2626
rev: v3.21.2
2727
hooks:
2828
- id: pyupgrade
29-
args: [--py310-plus]
29+
args: [--py311-plus]
3030
- repo: https://github.com/hhatto/autopep8
3131
rev: v2.3.2
3232
hooks:

‎pre_commit_hooks/check_toml.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
from __future__ import annotations
22

33
import argparse
4-
import sys
4+
import tomllib
55
from collections.abc import Sequence
66

7-
if sys.version_info >= (3, 11): # pragma: >=3.11 cover
8-
import tomllib
9-
else: # pragma: <3.11 cover
10-
import tomli as tomllib
11-
127

138
def main(argv: Sequence[str] | None = None) -> int:
149
parser = argparse.ArgumentParser()

‎setup.cfg‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ classifiers =
1919
packages = find:
2020
install_requires =
2121
ruamel.yaml>=0.15
22-
tomli>=1.1.0;python_version<"3.11"
23-
python_requires = >=3.10
22+
python_requires = >=3.11
2423

2524
[options.packages.find]
2625
exclude =

0 commit comments

Comments
 (0)