Skip to content
Open
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/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: write

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
update-readme:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: read

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
docs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: read

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: read

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
pre-commit:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
contents: read

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
release:
Expand All @@ -25,9 +25,8 @@ jobs:
- uses: ./.github/actions/setup-python-uv
with:
python-version: ${{ env.PYTHON_VERSION }}
# tomllib is 3.11+, and PYTHON_VERSION is 3.10 to match this template's
# floor, so the version is read with a regex instead. The pattern mirrors
# VERSION_LINE in scripts/release.py, which writes this same line.
# The version is read with a regex that mirrors VERSION_LINE in
# scripts/release.py, which writes this same line.
- name: Verify tag matches the project version
run: |
tag_version="${GITHUB_REF_NAME#v}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: read

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
audit:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template-smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: read

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
generated-project:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: read

env:
PYTHON_VERSION: '3.10'
PYTHON_VERSION: '3.11'

jobs:
unit:
Expand All @@ -29,8 +29,6 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: '3.10'
tox-env: py310
- python-version: '3.11'
tox-env: py311
- python-version: '3.12'
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "project_name"
version = "0.1.0"
description = "A simple template project."
authors = [{ name = "Mario Potato", email = "mario.potato@univr.it" }]
requires-python = ">=3.10,<4"
requires-python = ">=3.11,<4"
readme = "README.md"
license = "BSD-2-Clause"

Expand Down Expand Up @@ -37,7 +37,7 @@ requires = ["hatchling>=1.31.0,<2"]
build-backend = "hatchling.build"

[tool.pyrefly]
python-version = "3.10.0"
python-version = "3.11.0"
preset = "legacy"
check-unannotated-defs = true
infer-return-types = "never"
Expand All @@ -60,7 +60,7 @@ untyped-import = "ignore"
[tool.ruff]
# Google style uses 80 chars
line-length = 80
target-version = "py310"
target-version = "py311"

[tool.ruff.lint]
# Google Python Style Guide compliant rules
Expand Down
4 changes: 2 additions & 2 deletions scripts/bootstrap_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
PLACEHOLDER_AUTHOR_EMAIL = "mario.potato@univr.it"
PLACEHOLDER_DESCRIPTION = "A simple template project."
PLACEHOLDER_COPYRIGHT = "the Python Template contributors"
SUPPORTED_PYTHON_VERSIONS = ("3.10", "3.11", "3.12", "3.13", "3.14")
SUPPORTED_PYTHON_VERSIONS = ("3.11", "3.12", "3.13", "3.14")

WORKFLOW_FILES = (
Path(".github/workflows/coverage.yaml"),
Expand Down Expand Up @@ -157,7 +157,7 @@ def normalize_minimum_python_version(version: str) -> str:
match = re.fullmatch(r"3\.(\d{1,2})(?:\.\d+)?", version.strip())
if not match:
raise ValueError(
"minimum_python_version must use a major.minor value like 3.10."
"minimum_python_version must use a major.minor value like 3.11."
)

normalized = f"3.{int(match.group(1))}"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires =
tox>=4
tox-uv>=1.15
env_list =
py{310,311,312,313,314}
py{311,312,313,314}
formatter
type
coverage
Expand Down
1,920 changes: 952 additions & 968 deletions uv.lock

Large diffs are not rendered by default.

Loading