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
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
python-version: '3.11'
python-version: '3.13'
- name: Install MDL
run: echo $'source \'https://rubygems.org\'\ngem \'mdl\', \'~> 0.12.0\'' > Gemfile
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
run: echo $'source \'https://rubygems.org\'\ngem \'mdl\', \'~> 0.13.0\'' > Gemfile
- uses: ruby/setup-ruby@161cd54b698f1fb3ea539faab2e036d409550e3c # v1.187.0
with:
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
python-version: '3.12'
python-version: '3.13'

- name: Run Security Check
run: poetry run poe security
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
python-version: '3.12'
python-version: '3.13'

- name: Run Styling Enforcement
shell: bash
Expand All @@ -32,7 +32,7 @@ jobs:
name: Run Unit Tests
strategy:
matrix:
version: ['3.9', '3.10', '3.11', '3.12']
version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
python-version: '3.12'
python-version: '3.13'

- name: Run Security Checks
shell: bash
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---

fail_fast: false
minimum_pre_commit_version: "3.7.0"
minimum_pre_commit_version: "4.0.1"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -20,7 +20,7 @@ repos:
- id: trailing-whitespace

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

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

- repo: https://github.com/psf/black
rev: b965c2a5026f8ba399283ba3e01898b012853c79 # frozen: 24.8.0
rev: 1b2427a2b785cc4aac97c19bb4b9a0de063f9547 # frozen: 24.10.0
hooks:
- id: black
language_version: python3.11
language_version: python3.13

- repo: https://github.com/pycqa/isort
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
rev: 5.13.2
hooks:
- id: isort
name: isort
Expand Down
1,637 changes: 847 additions & 790 deletions poetry.lock

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-template-x"
version = "0.3.1"
version = "0.4.0"
description = "This is a python template."
authors = ["Mark Beacom <m@beacom.dev>"]
readme = "README.md"
Expand All @@ -14,7 +14,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
# "Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
]
include = [
Expand All @@ -35,11 +35,11 @@ line_length = 120

[tool.black]
line-length = 120
target-version = ["py312"]
target-version = ["py313"]

[tool.ruff]
# Assume Python 3.12.
target-version = "py312"
# Assume Python 3.13.
target-version = "py313"
# Same as our 120 Black setting.
line-length = 120
[tool.ruff.lint]
Expand Down Expand Up @@ -162,29 +162,29 @@ update = ["poetry-update-core", "poetry-update-dev", "poetry-update-test", "poet
[tool.poetry.dependencies]
python = "^3.9"
pip = ">= 24.0"
typer = {extras = ["all"], version = "^0.12.3"}
typer = {extras = ["all"], version = "^0.12.5"}

[tool.poetry.group.test.dependencies]
pytest = "^8.3.2"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
coverage = "^7.6.1"
coverage = "^7.6.3"

[tool.poetry.group.dev.dependencies]
isort = {extras = ["toml"], version = "^5.13.2"}
black = "^24.8.0"
mypy = "^1.11.1"
debugpy = "^1.8.5"
ruff = "^0.5.7"
poethepoet = "^0.27.0"
black = "^24.10.0"
mypy = "^1.12.0"
debugpy = "^1.8.7"
ruff = "^0.7.0"
poethepoet = "^0.29.0"

[tool.poetry.group.security.dependencies]
safety = "^3.2.5"
bandit = {extras = ["toml"], version = "^1.7.9"}
safety = "^3.2.8"
bandit = {extras = ["toml"], version = "^1.7.10"}

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

[build-system]
requires = ["poetry-core"]
Expand Down
2 changes: 1 addition & 1 deletion python_template/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

from __future__ import annotations

__version__: str = "0.3.1"
__version__: str = "0.4.0"
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import typer


@pytest.fixture()
@pytest.fixture
def app() -> typer.Typer:
"""Define the Typer CLI fixture."""
return typer.Typer()