Skip to content
Merged

py311+ #1279

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:

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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
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:
Expand All @@ -26,7 +26,7 @@ repos:
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]
args: [--py311-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.2
hooks:
Expand Down
7 changes: 1 addition & 6 deletions pre_commit_hooks/check_toml.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ classifiers =
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 =
Expand Down
Loading