Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
python-version-file: ".python-version"
- name: Set up uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version-file: "pyproject.toml"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
python-version-file: ".python-version"
- name: Set up uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version-file: "pyproject.toml"
Expand Down
24 changes: 2 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
skip: [pytest]

default_language_version:
python: python3.13
python: python3.14

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

# ruff - linting + formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.3
rev: v0.14.4
hooks:
- id: ruff
name: ruff
Expand All @@ -30,26 +30,6 @@ repos:
- id: mypy
name: mypy

# docformatter - formats docstrings to follow PEP 257
- repo: https://github.com/pycqa/docformatter
rev: v1.7.7
hooks:
- id: docformatter
name: docformatter
args:
[
-r,
-i,
--pre-summary-newline,
--make-summary-multi-line,
--wrap-summaries,
"90",
--wrap-descriptions,
"90",
src,
tests,
]

# bandit - find common security issues
- repo: https://github.com/pycqa/bandit
rev: 1.8.6
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.13.7
3.14.0
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.13.7-slim-trixie AS python-base
FROM python:3.14.0-slim-trixie AS python-base

ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
Expand All @@ -9,7 +9,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"

FROM python-base AS builder-base

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

WORKDIR $WORKDIR_PATH

Expand Down
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

## Prerequisites

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

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

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

### docformatter

[docformatter](https://github.com/PyCQA/docformatter) is a tool designed to format docstrings to
follow [PEP 257](https://peps.python.org/pep-0257/).

Options are defined in the [`.pre-commit-config.yaml`](.pre-commit-config.yaml).

---

## Testing
Expand Down Expand Up @@ -166,7 +159,7 @@ collected 1 item

tests/test_python_boilerplate.py::test_hello_world PASSED

---------- coverage: platform linux, python 3.13.7-final-0 -----------
---------- coverage: platform linux, python 3.14.0-final-0 -----------
Name Stmts Miss Cover
--------------------------------------------------------
src/python_boilerplate/__init__.py 1 0 100%
Expand Down
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "python-boilerplate"
version = "0.1.0"
description = "Python boilerplate"
requires-python = ">=3.13"
requires-python = ">=3.14"
license = { file = "LICENSE" }
authors = [
{ name = "Samuel MARLHENS", email = "samuel.marlhens@proton.me" },
Expand All @@ -14,21 +14,20 @@ homepage = "https://github.com/smarlhens/python-boilerplate#readme"
repository = "https://github.com/smarlhens/python-boilerplate"

[build-system]
requires = ["uv_build>=0.8.12,<0.9.0"]
requires = ["uv_build>=0.9.0,<0.10.0"]
build-backend = "uv_build"

[dependency-groups]
dev = [
"pytest>=8.4.2",
"pytest>=9.0.1",
"pytest-cov>=7.0.0",
"mypy>=1.18.2",
"bandit>=1.8.6",
"docformatter>=1.7.7",
"ruff>=0.13.3",
"ruff>=0.14.4",
]

[tool.uv]
required-version = "0.8.24"
required-version = ">=0.9.0"

[tool.pytest.ini_options]
addopts = "-vvv"
Expand All @@ -40,7 +39,7 @@ extend-exclude = [
"build",
"dist",
]
target-version = "py313"
target-version = "py314"
line-length = 90
src = ["src", "tests"]

Expand Down Expand Up @@ -99,6 +98,9 @@ extend-select = [
"W",
]

[tool.ruff.lint.pydocstyle]
convention = "pep257"

[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["S101"]

Expand Down
216 changes: 61 additions & 155 deletions uv.lock

Large diffs are not rendered by default.