Skip to content

Commit b757fe7

Browse files
committed
match github action python to hatch style env
1 parent c4b1418 commit b757fe7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.9'
19+
python-version: '3.10'
2020

2121
- name: Ensure latest pip
2222
run: python -m pip install --upgrade pip

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ include = [
5959
[tool.hatch.build.targets.wheel]
6060

6161
[tool.hatch.envs.style]
62+
python = "3.10" # this should always match version of "style" github action
6263
dependencies = [
6364
"pre-commit",
6465
]
66+
6567
[tool.hatch.envs.style.scripts]
6668
check = "pre-commit run --all-files --show-diff-on-failure"
6769
check-no-diff = "pre-commit run --all-files"
@@ -74,9 +76,7 @@ dependencies = [
7476
"mkautodoc",
7577
"mkdocs-click",
7678
]
77-
pre-install-commands = [
78-
"pip install '.[cli]'"
79-
]
79+
8080
[tool.hatch.envs.docs.scripts]
8181
build = "mkdocs build"
8282
serve = "mkdocs serve"

0 commit comments

Comments
 (0)