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
5 changes: 3 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ jobs:
- name: Install the latest version of uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: "3.15"
enable-cache: false
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install tox
run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv
run: uv tool install --python-preference only-managed --python 3.15 tox --with tox-uv
- name: Install Python
if: startsWith(matrix.env, '3.') && matrix.env != '3.14'
if: startsWith(matrix.env, '3.') && matrix.env != '3.15'
run: uv python install --python-preference only-managed ${{ matrix.env }}
- name: Setup test suite
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
- name: Install the latest version of uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: "3.15"
enable-cache: false
cache-dependency-glob: "pyproject.toml"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build package
run: uv build --python 3.14 --python-preference only-managed --sdist --wheel . --out-dir dist
run: uv build --python 3.15 --python-preference only-managed --sdist --wheel . --out-dir dist
- name: Store the distribution packages
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
default_language_version:
python: python3.15
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
Expand All @@ -13,7 +15,6 @@ repos:
rev: v2.4.3
hooks:
- id: codespell
additional_dependencies: ["tomli>=2.4.1"]
- repo: https://github.com/tox-dev/tox-toml-fmt
rev: "v1.11.0"
hooks:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ build.targets.sdist.include = [
line-length = 120

[tool.ruff]
target-version = "py310"
target-version = "py311"
line-length = 120
format.preview = true
format.docstring-code-line-length = 100
Expand Down Expand Up @@ -132,7 +132,7 @@ count = true
max_supported_python = "3.15"

[tool.ty]
environment.python-version = "3.14"
environment.python-version = "3.15"

[tool.coverage]
run.parallel = true
Expand Down
95 changes: 0 additions & 95 deletions tests/complex_pre_310.txt

This file was deleted.

4 changes: 1 addition & 3 deletions tests/test_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import os
import re
import sys
from pathlib import Path
from typing import TYPE_CHECKING

Expand Down Expand Up @@ -55,8 +54,7 @@ def test_basic_as_html(build_outcome: str) -> None:

@pytest.mark.sphinx(buildername="text", testroot="complex")
def test_complex_as_text(build_outcome: str) -> None:
name = "complex.txt" if sys.version_info >= (3, 10) else "complex_pre_310.txt"
expected = (Path(__file__).parent / name).read_text()
expected = (Path(__file__).parent / "complex.txt").read_text()
assert build_outcome == expected


Expand Down
4 changes: 4 additions & 0 deletions tox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ skip_missing_interpreters = true

[env_run_base]
description = "run the unit tests with pytest under {env_name}"
default_base_python = [ "3.15" ]
package = "wheel"
wheel_build_env = ".pkg"
dependency_groups = [ "test" ]
Expand Down Expand Up @@ -35,6 +36,9 @@ commands = [
],
]

[env_pkg_base]
default_base_python = [ "3.15" ]

[env.fix]
description = "format the code base to adhere to our styles, and complain about what we cannot do automatically"
skip_install = true
Expand Down
Loading