From c7188d3ccf2b1f56269b69a383090592eef97e4f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 13 Feb 2025 00:23:16 +0200 Subject: [PATCH] Add support for Python 3.14 and test PyPy3.11 --- .github/workflows/test.yml | 2 +- pyproject.toml | 10 +++++++--- tox.ini | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aaf45ac..24aba7f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["pypy3.11", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] os: [windows-latest, macos-latest, ubuntu-latest] steps: diff --git a/pyproject.toml b/pyproject.toml index b1de3fa..3a471bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Text Processing", @@ -64,9 +65,9 @@ fix = true lint.select = [ "C4", # flake8-comprehensions "D", # pydocstyle - "E", # pycodestyle errors + "E", # pycodestyle "EM", # flake8-errmsg - "F", # pyflakes errors + "F", # pyflakes "I", # isort "ICN", # flake8-import-conventions "ISC", # flake8-implicit-str-concat @@ -76,7 +77,7 @@ lint.select = [ "RUF022", # unsorted-dunder-all "RUF100", # unused noqa (yesqa) "UP", # pyupgrade - "W", # pycodestyle warnings + "W", # pycodestyle "YTT", # flake8-2020 ] lint.ignore = [ @@ -95,6 +96,9 @@ lint.isort.known-first-party = [ "humanize" ] lint.isort.required-imports = [ "from __future__ import annotations" ] lint.pydocstyle.convention = "google" +[tool.pyproject-fmt] +max_supported_python = "3.14" + [tool.pytest.ini_options] addopts = "--color=yes" filterwarnings = [ diff --git a/tox.ini b/tox.ini index 508f747..114955a 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ env_list = docs lint mypy - py{py3, 313, 312, 311, 310, 39} + py{py3, 314, 313, 312, 311, 310, 39} [testenv] extras =