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/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Set up uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v10.0.1

- name: Check PR title
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ["3.11", "3.12", "3.13", "3.14"]
project-type: ["app", "package"]
typing: ["optional", "strict"]

name: "Python ${{ matrix.python-version }} ${{ matrix.project-type }} with ${{ matrix.typing }} typing"

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
path: substrate

- name: Set up uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v10.0.1
with:
enable-cache: true
cache-dependency-glob: "**/uv.lock"
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

- name: Build app Docker image
if: ${{ matrix.project-type == 'app' }}
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: ./my-project/
target: app
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name = "substrate"
version = "2.0.0"
requires-python = ">=3.13,<3.14"
dependencies = [
"commitizen>=4.3.0",
"copier>=9.4.1",
"pre-commit>=4.1.0",
"ruff>=0.9.3",
"ty>=0.0.6",
"commitizen>=4.17.1",
"copier>=9.17.1",
"pre-commit>=4.6.2",
"ruff>=0.16.3",
"ty>=0.0.73",
]

[tool.commitizen]
Expand Down
43 changes: 23 additions & 20 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ authors = [
requires-python = ">={{ python_version }},<4.0"
dependencies = [
{%- if with_fastapi_api %}
"fastapi[all] (>=0.115.6)",
"gunicorn (>=23.0.0)",
"fastapi[standard]>=0.141.1",
"gunicorn>=26.1.0",
{%- endif %}
{%- if project_type == 'app' %}
"poethepoet (>=0.32.1)",
"poethepoet>=0.48.0",
{%- endif %}
{%- if with_typer_cli %}
"typer (>=0.15.1)",
"typer>=0.27.1",
{%- endif %}
]
{%- if with_typer_cli %}
Expand All @@ -41,27 +41,30 @@ issues = "{{ project_url.rstrip('/') }}/{% if ci == 'gitlab' %}-/{% endif %}issu

[dependency-groups] # https://docs.astral.sh/uv/concepts/projects/dependencies/#development-dependencies
dev = [
"codespell (>=2.4.1)",
"codespell>=2.4.3",
{%- if with_conventional_commits %}
"commitizen (>=4.3.0)",
"commitizen>=4.17.1",
{%- endif %}
"coverage[toml] (>=7.6.10)",
"ipykernel (>=6.29.4)",
"ipython (>=8.18.0)",
"ipywidgets (>=8.1.2)",
"mkdocs-material (>=9.5.21)",
"coverage[toml]>=7.15.4",
{%- if with_fastapi_api %}
"httpx2>=2.12.0",
{%- endif %}
"ipykernel>=7.3.0",
"ipython>=9.16.1",
"ipywidgets>=8.1.9",
"mkdocs-material>=9.7.7",
{%- if project_type == 'package' %}
"mkdocstrings[python] (>=0.26.2)",
"poethepoet (>=0.32.1)",
"mkdocstrings[python]>=1.0.6",
"poethepoet>=0.48.0",
{%- endif %}
"pre-commit (>=4.0.1)",
"pytest (>=8.3.4)",
"pytest-mock (>=3.14.0)",
"pytest-xdist (>=3.6.1)",
"ruff (>=0.9.2)",
"ty (>=0.0.6)",
"pre-commit>=4.6.2",
"pytest>=9.1.1",
"pytest-mock>=3.15.1",
"pytest-xdist>=3.8.0",
"ruff>=0.16.3",
"ty>=0.0.73",
{%- if typing == 'strict' %}
"typeguard (>=4.4.1)",
"typeguard>=4.6.0",
{%- endif %}
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v7

- name: Install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v10.0.1

- name: Build docs
run: uv run mkdocs build

- name: Configure GitHub Pages
uses: actions/configure-pages@v5
uses: actions/configure-pages@v6

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v4
uses: actions/upload-pages-artifact@v5
with:
path: site

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: 23
node-version: 24

- name: Install @devcontainers/cli
run: npm install --location=global @devcontainers/cli@0.76.0
run: npm install --location=global @devcontainers/cli@0.88.0

- name: Start Dev Container
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Log in to the Docker registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: {% raw %}${{ env.DOCKER_REGISTRY }}{% endraw %}
username: {% raw %}${{ github.actor }}{% endraw %}
Expand All @@ -43,7 +43,7 @@ jobs:
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v7
with:
context: .
push: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v10.0.1

- name: Publish package
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Set up uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v10.0.1

- name: Check PR title
run: |
Expand Down
Loading
Loading