Skip to content

Commit d34a47a

Browse files
committed
cicd: update precommit + hooks
1 parent 457673f commit d34a47a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/checks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
runs-on: ubuntu-latest
6969
strategy:
7070
matrix:
71-
hook:
71+
cmd:
7272
- "end-of-file-fixer"
7373
- "trailing-whitespace"
7474
- "mixed-line-ending"
@@ -82,7 +82,7 @@ jobs:
8282

8383
- uses: pre-commit/[email protected]
8484
with:
85-
extra_args: ${{ matrix.hook }} --all-files
85+
extra_args: ${{ matrix.cmd }} --all-files
8686

8787
docs:
8888
runs-on: ubuntu-latest

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0 # pre-commit-hooks version
3+
rev: v5.0.0 # pre-commit-hooks version
44
hooks:
55
- id: check-added-large-files
66
args: ['--maxkb=1500']
@@ -17,4 +17,4 @@ repos:
1717
hooks:
1818
- id: ruff
1919
- id: ruff-format
20-
minimum_pre_commit_version: 3.7.1
20+
minimum_pre_commit_version: 4.0.1

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ etl = [
4242
"setuptools", # pinned for 3.12 because yoyo-migrations still uses pkg_resources
4343
]
4444
tests = ["pytest>=6.0", "pytest-cov", "mock", "httpx", "deepdiff"]
45-
dev = ["pre-commit>=3.7.1", "ruff==0.8.6"]
45+
dev = ["pre-commit>=4.0.1", "ruff==0.8.6"]
4646
docs = [
4747
"sphinx==6.1.3",
4848
"sphinx-autodoc-typehints==1.22.0",

0 commit comments

Comments
 (0)