Skip to content

Commit c9a7b5a

Browse files
committed
chore: bump to py314
1 parent 0969eb9 commit c9a7b5a

File tree

8 files changed

+80
-199
lines changed

8 files changed

+80
-199
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
python-version-file: ".python-version"
2525
- name: Set up uv
26-
uses: astral-sh/setup-uv@v6
26+
uses: astral-sh/setup-uv@v7
2727
with:
2828
enable-cache: true
2929
version-file: "pyproject.toml"

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
python-version-file: ".python-version"
2525
- name: Set up uv
26-
uses: astral-sh/setup-uv@v6
26+
uses: astral-sh/setup-uv@v7
2727
with:
2828
enable-cache: true
2929
version-file: "pyproject.toml"

.pre-commit-config.yaml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
skip: [pytest]
33

44
default_language_version:
5-
python: python3.13
5+
python: python3.14
66

77
repos:
88
# general checks (see here: https://pre-commit.com/hooks.html)
@@ -16,7 +16,7 @@ repos:
1616

1717
# ruff - linting + formatting
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.13.3
19+
rev: v0.14.4
2020
hooks:
2121
- id: ruff
2222
name: ruff
@@ -30,26 +30,6 @@ repos:
3030
- id: mypy
3131
name: mypy
3232

33-
# docformatter - formats docstrings to follow PEP 257
34-
- repo: https://github.com/pycqa/docformatter
35-
rev: v1.7.7
36-
hooks:
37-
- id: docformatter
38-
name: docformatter
39-
args:
40-
[
41-
-r,
42-
-i,
43-
--pre-summary-newline,
44-
--make-summary-multi-line,
45-
--wrap-summaries,
46-
"90",
47-
--wrap-descriptions,
48-
"90",
49-
src,
50-
tests,
51-
]
52-
5333
# bandit - find common security issues
5434
- repo: https://github.com/pycqa/bandit
5535
rev: 1.8.6

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13.7
1+
3.14.0

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13.7-slim-trixie AS python-base
1+
FROM python:3.14.0-slim-trixie AS python-base
22

33
ENV PYTHONUNBUFFERED=1 \
44
PYTHONDONTWRITEBYTECODE=1 \
@@ -9,7 +9,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
99

1010
FROM python-base AS builder-base
1111

12-
COPY --from=ghcr.io/astral-sh/uv:0.8.24 /uv /uvx /bin/
12+
COPY --from=ghcr.io/astral-sh/uv:0.9.9 /uv /uvx /bin/
1313

1414
WORKDIR $WORKDIR_PATH
1515

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232
## Prerequisites
3333

34-
- [Python](https://www.python.org/downloads/) **>=3.13.0 <3.14.0** (_tested with 3.13.7_)
34+
- [Python](https://www.python.org/downloads/) **>=3.14.0 <3.15.0** (_tested with 3.14.0_)
3535
- [pre-commit](https://pre-commit.com/#install) **>=3.2.0 <5.0.0** (_tested with 4.3.0_)
36-
- [uv](https://docs.astral.sh/uv/getting-started/installation/) **>=0.8.12** (_tested with 0.8.24_)
36+
- [uv](https://docs.astral.sh/uv/getting-started/installation/) **>=0.9.0** (_tested with 0.9.9_)
3737
- [docker](https://docs.docker.com/get-docker/) (_optional_)
3838

3939
---
@@ -120,13 +120,6 @@ Rules are defined in the [`pyproject.toml`](pyproject.toml).
120120

121121
For more configuration options and details, see the [configuration docs](https://bandit.readthedocs.io/).
122122

123-
### docformatter
124-
125-
[docformatter](https://github.com/PyCQA/docformatter) is a tool designed to format docstrings to
126-
follow [PEP 257](https://peps.python.org/pep-0257/).
127-
128-
Options are defined in the [`.pre-commit-config.yaml`](.pre-commit-config.yaml).
129-
130123
---
131124

132125
## Testing
@@ -166,7 +159,7 @@ collected 1 item
166159
167160
tests/test_python_boilerplate.py::test_hello_world PASSED
168161
169-
---------- coverage: platform linux, python 3.13.7-final-0 -----------
162+
---------- coverage: platform linux, python 3.14.0-final-0 -----------
170163
Name Stmts Miss Cover
171164
--------------------------------------------------------
172165
src/python_boilerplate/__init__.py 1 0 100%

pyproject.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "python-boilerplate"
33
version = "0.1.0"
44
description = "Python boilerplate"
5-
requires-python = ">=3.13"
5+
requires-python = ">=3.14"
66
license = { file = "LICENSE" }
77
authors = [
88
{ name = "Samuel MARLHENS", email = "samuel.marlhens@proton.me" },
@@ -14,21 +14,20 @@ homepage = "https://github.com/smarlhens/python-boilerplate#readme"
1414
repository = "https://github.com/smarlhens/python-boilerplate"
1515

1616
[build-system]
17-
requires = ["uv_build>=0.8.12,<0.9.0"]
17+
requires = ["uv_build>=0.9.0,<0.10.0"]
1818
build-backend = "uv_build"
1919

2020
[dependency-groups]
2121
dev = [
22-
"pytest>=8.4.2",
22+
"pytest>=9.0.1",
2323
"pytest-cov>=7.0.0",
2424
"mypy>=1.18.2",
2525
"bandit>=1.8.6",
26-
"docformatter>=1.7.7",
27-
"ruff>=0.13.3",
26+
"ruff>=0.14.4",
2827
]
2928

3029
[tool.uv]
31-
required-version = "0.8.24"
30+
required-version = ">=0.9.0"
3231

3332
[tool.pytest.ini_options]
3433
addopts = "-vvv"
@@ -40,7 +39,7 @@ extend-exclude = [
4039
"build",
4140
"dist",
4241
]
43-
target-version = "py313"
42+
target-version = "py314"
4443
line-length = 90
4544
src = ["src", "tests"]
4645

@@ -99,6 +98,9 @@ extend-select = [
9998
"W",
10099
]
101100

101+
[tool.ruff.lint.pydocstyle]
102+
convention = "pep257"
103+
102104
[tool.ruff.lint.per-file-ignores]
103105
"tests/*.py" = ["S101"]
104106

uv.lock

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

0 commit comments

Comments
 (0)