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
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,19 @@ jobs:
- name: Checkout source
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- name: Set up uv
uses: astral-sh/setup-uv@8f1d388b4b83ba56ec25d3787080bc053a2512e8 # v7
with:
python-version: "3.14"
cache: pip
cache-dependency-path: pyproject.toml
activate-environment: true
python-version: 3.14

- name: Install dependencies
shell: bash
run: python -m pip install build
run: uv sync --only-dev

- name: Build distributions
shell: bash
run: python -m build

run: uv run python -m build
- name: Upload distribution
# yamllint disable-line rule:line-length
uses: hynek/build-and-inspect-python-package@efb823f52190ad02594531168b7a2d5790e66516 # v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
project-directory: ./src/example_package
pyproject-toml: ./pyproject.toml
python-version: "3.13"
python-version: "3.14"
template-directory: ./documentation
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
include:
- os: macos-latest
python-version: "3.13"
python-version: "3.14"
- os: windows-latest
python-version: "3.13"
python-version: "3.14"
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/python/tox@7193f2d6fda65de74a0d750fd19f53314f899200 # v0
- uses: paddyroddy/.github/actions/python/uv@2900a170a05fafa6d18c036e488235ae8c02fa59 # v0
with:
cache-path: .tox
pyproject-toml: ./pyproject.toml
python-version: ${{ matrix.python-version }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/paddyroddy/.github
rev: v0.302.0
rev: v0.344.0
hooks:
- id: general-hooks
- id: python-hooks
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To install the latest development version of `Example`, clone this repository
and run

```sh
pip install -e .
uv sync
```

### Supported Platforms
Expand Down
36 changes: 2 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ requires = [
[dependency-groups]
dev = [
"build",
"mypy",
"pre-commit",
"pytest",
"ruff",
"tox",
"tuna",
"twine",
"pytest-cov",
]
docs = [
"pdoc3",
Expand All @@ -31,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
dependencies = []
Expand Down Expand Up @@ -62,10 +59,6 @@ report = {skip_covered = true, sort = "cover"}
run = {branch = true, parallel = true, source = [
"example-package",
]}
paths.source = [
"src",
".tox*/*/lib/python*/site-packages",
]

[tool.mypy]
enable_error_code = [
Expand Down Expand Up @@ -135,29 +128,4 @@ write_to = "src/example_package/_version.py"

[tool.tomlsort]
overrides."project.classifiers".inline_arrays = false
overrides."tool.coverage.paths.source".inline_arrays = false
overrides."tool.ruff.lint.isort.section-order".inline_arrays = false
overrides."tool.tox.env_run_base.commands".inline_arrays = false

[tool.tox]
env_list = [
"py311",
"py312",
"py313",
]
env_run_base = {commands = [
[
"pytest",
"--cov",
"--cov-report=lcov",
],
], deps = [
"pytest-cov",
]}
gh.python = {"3.11" = [
"py311",
], "3.12" = [
"py312",
], "3.13" = [
"py313",
]}
Loading