Skip to content

Commit 9a1bfe3

Browse files
authored
Release 0.4.0 - Py3.13 (#225)
* fix: Rollback ruby markdown job version * feat: Python 3.13 - version 0.4.0 * feat: Python 3.13 - version 0.4.0 * feat: Python 3.13 - version 0.4.0 * feat: Python 3.13 - version 0.4.0
1 parent 7131ffd commit 9a1bfe3

File tree

8 files changed

+881
-824
lines changed

8 files changed

+881
-824
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
- name: Setup Dependencies
1919
uses: './.github/actions/deps'
2020
with:
21-
python-version: '3.11'
21+
python-version: '3.13'
2222
- name: Install MDL
23-
run: echo $'source \'https://rubygems.org\'\ngem \'mdl\', \'~> 0.12.0\'' > Gemfile
24-
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
23+
run: echo $'source \'https://rubygems.org\'\ngem \'mdl\', \'~> 0.13.0\'' > Gemfile
24+
- uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0
2525
with:
2626
ruby-version: '3.2' # Not needed with a .ruby-version file
2727
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Dependencies
2323
uses: './.github/actions/deps'
2424
with:
25-
python-version: '3.12'
25+
python-version: '3.13'
2626

2727
- name: Run Security Check
2828
run: poetry run poe security

.github/workflows/validate.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Dependencies
1919
uses: './.github/actions/deps'
2020
with:
21-
python-version: '3.12'
21+
python-version: '3.13'
2222

2323
- name: Run Styling Enforcement
2424
shell: bash
@@ -32,7 +32,7 @@ jobs:
3232
name: Run Unit Tests
3333
strategy:
3434
matrix:
35-
version: ['3.9', '3.10', '3.11', '3.12']
35+
version: ['3.9', '3.10', '3.11', '3.12', '3.13']
3636
os: [ubuntu-latest]
3737
runs-on: ${{ matrix.os }}
3838
steps:
@@ -61,7 +61,7 @@ jobs:
6161
- name: Setup Dependencies
6262
uses: './.github/actions/deps'
6363
with:
64-
python-version: '3.12'
64+
python-version: '3.13'
6565

6666
- name: Run Security Checks
6767
shell: bash

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22

33
fail_fast: false
4-
minimum_pre_commit_version: "3.7.0"
4+
minimum_pre_commit_version: "4.0.1"
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
8+
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
99
hooks:
1010
- id: check-added-large-files
1111
- id: check-case-conflict
@@ -20,7 +20,7 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/PyCQA/bandit
23-
rev: 691f465b4bac758ea1d6dfa9b57d3881a12954fd # frozen: 1.7.9
23+
rev: 36fd65054fc8864b4037d0918904f9331512feb5 # frozen: 1.7.10
2424
hooks:
2525
- id: bandit
2626
description: 'Bandit is a tool for finding common security issues in Python code'
@@ -29,19 +29,19 @@ repos:
2929

3030
- repo: https://github.com/astral-sh/ruff-pre-commit
3131
# Ruff version.
32-
rev: ac97362543353002a47d6cae8918b25444d102df # frozen: v0.5.7
32+
rev: 8983acb92ee4b01924893632cf90af926fa608f0 # frozen: v0.7.0
3333
hooks:
3434
- id: ruff
3535
args: [ --fix, --exit-non-zero-on-fix ]
3636

3737
- repo: https://github.com/psf/black
38-
rev: b965c2a5026f8ba399283ba3e01898b012853c79 # frozen: 24.8.0
38+
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
3939
hooks:
4040
- id: black
41-
language_version: python3.11
41+
language_version: python3.13
4242

4343
- repo: https://github.com/pycqa/isort
44-
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
44+
rev: 5.13.2
4545
hooks:
4646
- id: isort
4747
name: isort

poetry.lock

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

pyproject.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-template-x"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
description = "This is a python template."
55
authors = ["Mark Beacom <m@beacom.dev>"]
66
readme = "README.md"
@@ -14,7 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.10",
1515
"Programming Language :: Python :: 3.11",
1616
"Programming Language :: Python :: 3.12",
17-
# "Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.13",
1818
"License :: OSI Approved :: MIT License",
1919
]
2020
include = [
@@ -35,11 +35,11 @@ line_length = 120
3535

3636
[tool.black]
3737
line-length = 120
38-
target-version = ["py312"]
38+
target-version = ["py313"]
3939

4040
[tool.ruff]
41-
# Assume Python 3.12.
42-
target-version = "py312"
41+
# Assume Python 3.13.
42+
target-version = "py313"
4343
# Same as our 120 Black setting.
4444
line-length = 120
4545
[tool.ruff.lint]
@@ -162,29 +162,29 @@ update = ["poetry-update-core", "poetry-update-dev", "poetry-update-test", "poet
162162
[tool.poetry.dependencies]
163163
python = "^3.9"
164164
pip = ">= 24.0"
165-
typer = {extras = ["all"], version = "^0.12.3"}
165+
typer = {extras = ["all"], version = "^0.12.5"}
166166

167167
[tool.poetry.group.test.dependencies]
168-
pytest = "^8.3.2"
168+
pytest = "^8.3.3"
169169
pytest-cov = "^5.0.0"
170-
coverage = "^7.6.1"
170+
coverage = "^7.6.3"
171171

172172
[tool.poetry.group.dev.dependencies]
173173
isort = {extras = ["toml"], version = "^5.13.2"}
174-
black = "^24.8.0"
175-
mypy = "^1.11.1"
176-
debugpy = "^1.8.5"
177-
ruff = "^0.5.7"
178-
poethepoet = "^0.27.0"
174+
black = "^24.10.0"
175+
mypy = "^1.12.0"
176+
debugpy = "^1.8.7"
177+
ruff = "^0.7.0"
178+
poethepoet = "^0.29.0"
179179

180180
[tool.poetry.group.security.dependencies]
181-
safety = "^3.2.5"
182-
bandit = {extras = ["toml"], version = "^1.7.9"}
181+
safety = "^3.2.8"
182+
bandit = {extras = ["toml"], version = "^1.7.10"}
183183

184184
[tool.poetry.group.docs.dependencies]
185-
mkdocs = "^1.6.0"
186-
mkdocs-material = "^9.5.31"
187-
mkdocstrings = {extras = ["python"], version = "^0.25.2"}
185+
mkdocs = "^1.6.1"
186+
mkdocs-material = "^9.5.41"
187+
mkdocstrings = {extras = ["python"], version = "^0.26.2"}
188188

189189
[build-system]
190190
requires = ["poetry-core"]

python_template/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
from __future__ import annotations
1111

12-
__version__: str = "0.3.1"
12+
__version__: str = "0.4.0"

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import typer
77

88

9-
@pytest.fixture()
9+
@pytest.fixture
1010
def app() -> typer.Typer:
1111
"""Define the Typer CLI fixture."""
1212
return typer.Typer()

0 commit comments

Comments
 (0)