diff --git a/.github/workflows/require-pr-label.yml b/.github/workflows/require-pr-label.yml index 0d910db..5f7a280 100644 --- a/.github/workflows/require-pr-label.yml +++ b/.github/workflows/require-pr-label.yml @@ -17,6 +17,11 @@ jobs: with: mode: minimum count: 1 - labels: - "changelog: Added, changelog: Changed, changelog: Deprecated, changelog: - Fixed, changelog: Removed, changelog: Security, changelog: skip" + labels: | + changelog: Added + changelog: Changed + changelog: Deprecated + changelog: Fixed + changelog: Removed + changelog: Security + changelog: skip 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/.pre-commit-config.yaml b/.pre-commit-config.yaml index c358c76..fe23ac1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,6 +56,11 @@ repos: hooks: - id: tox-ini-fmt + - repo: https://github.com/google/yamlfmt + rev: v0.16.0 + hooks: + - id: yamlfmt + - repo: https://github.com/rbubley/mirrors-prettier rev: v3.5.0 hooks: diff --git a/.yamlfmt.yaml b/.yamlfmt.yaml new file mode 100644 index 0000000..9d3236a --- /dev/null +++ b/.yamlfmt.yaml @@ -0,0 +1,2 @@ +formatter: + retain_line_breaks_single: true 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 =