Skip to content

Commit e7dfbf0

Browse files
authored
Update pre-commit version and linters (#1548)
1 parent 7e047d3 commit e7dfbf0

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed

.github/workflows/check.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ on:
1010
- '*'
1111

1212
jobs:
13+
pre-commit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: pre-commit/[email protected]
18+
with:
19+
extra_args: poetry-lock --all-files
20+
1321
packaging:
1422
runs-on: ubuntu-latest
1523
steps:

.pre-commit-config.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ci:
22
autoupdate_schedule: monthly
3+
skip: ["poetry-lock"] # work around for https://github.com/pre-commit-ci/issues/issues/241
34

45
default_language_version:
56
python: python3
@@ -12,15 +13,15 @@ repos:
1213
- id: mixed-line-ending
1314
- id: trailing-whitespace
1415
- repo: https://github.com/PyCQA/flake8
15-
rev: 7.1.1
16+
rev: 7.1.2
1617
hooks:
1718
- id: flake8
1819
- repo: https://github.com/adrienverge/yamllint
19-
rev: v1.35.1
20+
rev: v1.37.0
2021
hooks:
2122
- id: yamllint
2223
- repo: https://github.com/awslabs/cfn-python-lint
23-
rev: v1.20.1
24+
rev: v1.32.1
2425
hooks:
2526
- id: cfn-python-lint
2627
args:
@@ -39,18 +40,16 @@ repos:
3940
^.pre-commit-config.yaml
4041
)
4142
- repo: https://github.com/psf/black
42-
rev: 24.10.0
43+
rev: 25.1.0
4344
hooks:
4445
- id: black
4546
- repo: https://github.com/python-poetry/poetry
46-
rev: '1.8.0'
47+
rev: '2.1.1'
4748
hooks:
4849
- id: poetry-check
4950
- id: poetry-lock
50-
language_version: python3.10
51-
args: ['--check']
5251
- repo: https://github.com/sirosen/check-jsonschema
53-
rev: 0.30.0
52+
rev: 0.32.1
5453
hooks:
5554
- id: check-github-workflows
5655
- id: check-github-actions

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ docs = [
7575
]
7676

7777
[tool.poetry.group.dev.dependencies]
78-
pre-commit = "^2.21.0"
78+
pre-commit = "^4.2"
7979
behave = "^1.2"
8080
freezegun = ">=1.5.0,<1.5.1"
8181
pygments = "^2.2"

0 commit comments

Comments
 (0)