Skip to content

Commit 30e09ab

Browse files
committed
pyproject.toml: Add support for github workflows with tox-gh.
1 parent 5f6d4cf commit 30e09ab

File tree

3 files changed

+41
-16
lines changed

3 files changed

+41
-16
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ repos:
1818
description: >-
1919
This hook runs all static checks, including mypy, and ruff.
2020
It is recommended to run this on pre-commit and pre-push.
21+
Will also sync and update the uv.lock file before commit.
2122
always_run: true
2223
language: python
2324
entry: uv run tox -m static

pyproject.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ classifiers = [
2323
requires-python = ">=3.9"
2424
dynamic = ["version"]
2525
dependencies = [
26-
"mpremote >= 1.20.0, != 1.24.0",
26+
"mpremote >= 1.20, != 1.24.0",
2727
]
2828

2929
[project.scripts]
3030
mpfs = "mpremote_path.util.mpfs:main"
3131

3232
[dependency-groups]
33-
typing = ["mypy>=0.910", "types-pyserial>=3.5", "types-pyyaml>=6.0.0"]
33+
typing = ["mypy>=0.910", "types-pyserial>=3.5", "types-pyyaml>=6.0"]
3434
test = [
3535
{include-group = "typing"},
36-
"ruff>=0.6.7", "pytest>=8.3.2", "pytest-cov>=3.0.0",
37-
"pyyaml>=6.0.0", "tox>=4.22", "tox-uv>=1.13",
36+
"ruff>=0.6", "pytest>=8.3", "pytest-cov>=3.0",
37+
"pyyaml>=6.0", "tox>=4.22", "tox-uv>=1.13", "tox_gh>=1.5"
3838
]
3939
dev = [
4040
{include-group = "test"},
@@ -83,6 +83,14 @@ run.omit = ["_version.py"]
8383
report.skip_covered = false
8484
append = true
8585

86+
[tool.tox.gh.python] # For Github Actions workflow - see
87+
"3.13" = ["clean", "typing", "lint", "format", "3.13"]
88+
"3.12" = ["3.12"]
89+
"3.11" = ["3.11"]
90+
"3.10" = ["3.10"]
91+
"3.9" = ["3.9"]
92+
"3.8" = ["3.8"]
93+
8694
# https://tox.wiki/en/latest/config.html#pyproject-toml-native
8795
[tool.tox]
8896
env_list = [

uv.lock

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

0 commit comments

Comments
 (0)