Skip to content

Commit 0544ba9

Browse files
authored
Merge pull request #42 from George-Ogden/spell-check-failure
Fix install
2 parents 1663a0e + 760d626 commit 0544ba9

File tree

6 files changed

+11
-36
lines changed

6 files changed

+11
-36
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
- name: Checkout code
2121
uses: actions/checkout@v5
2222

23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: 3.13
27+
2328
- name: Check version in README
2429
run: |
25-
cat version.txt | xargs printf " - repo: https://github.com/George-Ogden/pre-commit-hooks/\n rev: v%s\n" | xargs -i grep -Fz -- "{}" README.md
30+
python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])" | xargs printf " - repo: https://github.com/George-Ogden/pre-commit-hooks/\n rev: v%s\n" | xargs -i grep -Fz -- "{}" README.md

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
- id: spell-check-commit-msgs
3939
name: Spell check commit message
4040
description: Check for spelling errors in commit messages.
41-
entry: ./run-spell-check.sh
41+
entry: run-spell-check.sh
4242
language: python
4343
stages: [commit-msg]
4444
additional_dependencies: [codespell]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ repos:
7676
- id: trailing-whitespace
7777

7878
- repo: https://github.com/George-Ogden/pre-commit-hooks/
79-
rev: v1.3.0
79+
rev: v1.3.2
8080
hooks:
8181
- id: dbg-check
8282
exclude: ^test/

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "Pre-Commit-Hooks"
3-
version = "1.3.1"
3+
version = "1.3.2"
44
requires-python = ">=3.9,<3.14"
55

66
[build-system]
@@ -10,9 +10,7 @@ build-backend = "setuptools.build_meta"
1010
[tool.setuptools]
1111
packages = []
1212
py-modules = []
13-
14-
[tool.setuptools.data-files]
15-
"." = ["./run-spell-check.sh"]
13+
script-files = ["./run-spell-check.sh"]
1614

1715
[tool.ruff]
1816
line-length = 100

run-mypy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ if [[ ! -z "$REQUIREMENTS_FILE" ]]; then
2525
REQUIREMENTS+=("-r$REQUIREMENTS_FILE")
2626
fi
2727

28-
pip install uv && uv pip install "${REQUIREMENTS[@]}" --system && mypy "${MYPY_ARGS[@]}"
28+
pip install uv -qqq && uv pip install "${REQUIREMENTS[@]}" --system -qqq && mypy "${MYPY_ARGS[@]}"

tests/mypy/test_data/mypy_1_16_1/run-mypy.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)