Skip to content

Commit b6857f6

Browse files
committed
Add Python 3.14 to test pipeline, swap build to uv-build
1 parent acc8672 commit b6857f6

File tree

9 files changed

+411
-356
lines changed

9 files changed

+411
-356
lines changed

.flake8

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
[flake8]
2-
max-line-length=100
32
extend-ignore=
4-
# pycodestyle
5-
E226,
3+
E,F,W,
64
# flake8-annotations
75
ANN002,ANN003,ANN101,ANN102,ANN204,ANN206,
86
extend-exclude=
9-
venv, .venv,
10-
build, dist,
11-
error_codes.py,
12-
per-file-ignores =
13-
testing/test_*.py:E501,
14-
import-order-style=pycharm
15-
application-import-names=flake8_annotations,testing
7+
.venv, error_codes.py

.github/workflows/lint_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Install uv
19-
uses: astral-sh/setup-uv@v3
19+
uses: astral-sh/setup-uv@v6
2020
with:
21-
version: "0.6.x"
21+
version: "0.8.x"
2222
enable-cache: true
2323
cache-dependency-glob: "uv.lock"
2424

@@ -38,16 +38,16 @@ jobs:
3838
runs-on: ubuntu-latest
3939
strategy:
4040
matrix:
41-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
41+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]
4242
fail-fast: false
4343

4444
steps:
4545
- uses: actions/checkout@v4
4646

4747
- name: Install uv
48-
uses: astral-sh/setup-uv@v3
48+
uses: astral-sh/setup-uv@v6
4949
with:
50-
version: "0.6.x"
50+
version: "0.8.x"
5151
enable-cache: true
5252
cache-dependency-glob: "uv.lock"
5353

@@ -58,7 +58,7 @@ jobs:
5858
python-version: ${{ matrix.python-version }}
5959

6060
- name: Set up (deadsnakes) Python ${{ matrix.python-version }}
61-
uses: deadsnakes/action@v3.1.0
61+
uses: deadsnakes/action@v3.2.0
6262
if: endsWith(matrix.python-version, '-dev')
6363
with:
6464
python-version: ${{ matrix.python-version }}

.github/workflows/pypi_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- uses: actions/checkout@v4
2020

2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v3
22+
uses: astral-sh/setup-uv@v6
2323
with:
24-
version: "0.6.x"
24+
version: "0.8.x"
2525
enable-cache: true
2626
cache-dependency-glob: "uv.lock"
2727

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
- id: python-check-blanket-type-ignore
2828
exclude: "test_type_ignore.py"
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.12.2
30+
rev: v0.12.7
3131
hooks:
3232
- id: ruff-check
3333
- repo: local

.ruff.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ extend-exclude = [
1010

1111
[lint]
1212
select = [
13-
"B", # flake8-bugbear
13+
"B", # flake8-bugbear
14+
"C4", # flake8-comprehensions
15+
"D", # pydocstyle/flake8-docstrings
16+
"E", # pycodestyle
17+
"F", # Pyflakes
1418
"FIX", # flake8-fixme
15-
"D", # pydocstyle/flake8-docstrings
16-
"N", # pep8-naming
19+
"N", # pep8-naming
20+
"W", # pycodestyle
1721
]
1822

1923
ignore = [
@@ -52,4 +56,5 @@ ignore = [
5256
[lint.per-file-ignores]
5357
"testing/test_*.py" = [
5458
"D103",
59+
"E501",
5560
]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cog.out(
3131
]]] -->
3232
```bash
3333
$ flake8 --version
34-
7.3.0 (flake8-annotations: 3.1.1, mccabe: 0.7.0, pycodestyle: 2.14.0, pyflakes: 3.4.0) CPython 3.13.5 on Darwin
34+
7.3.0 (flake8-annotations: 3.1.1, mccabe: 0.7.0, pycodestyle: 2.14.0, pyflakes: 3.4.0) CPython 3.13.5 on Windows
3535
```
3636
<!-- [[[end]]] -->
3737

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.11",
2323
"Programming Language :: Python :: 3.12",
2424
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.14",
2526
"Programming Language :: Python :: 3 :: Only",
2627
"Topic :: Software Development :: Libraries :: Python Modules",
2728
"Topic :: Software Development :: Quality Assurance",
@@ -86,6 +87,10 @@ warn_return_any = true
8687
warn_unused_configs = true
8788
warn_unused_ignores = true
8889

90+
[tool.uv.build-backend]
91+
module-name = "flake8_annotations"
92+
module-root = ""
93+
8994
[build-system]
90-
requires = ["hatchling"]
91-
build-backend = "hatchling.build"
95+
requires = ["uv_build"]
96+
build-backend = "uv_build"

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ exclude_lines =
1515
if TYPE_CHECKING:
1616

1717
[tox]
18-
envlist = clean,py{39,310,311,312,313},cog
18+
envlist = clean,py{39,310,311,312,313,314},cog
1919
skip_missing_interpreters = True
20-
minversion = 3.14.0
20+
minversion = 4.0.0
2121
isolated_build = True
2222

2323
[testenv]
@@ -48,3 +48,4 @@ python =
4848
3.11: py311
4949
3.12: py312
5050
3.13: py313
51+
3.14: py314

uv.lock

Lines changed: 381 additions & 329 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)