Skip to content

Commit 7c5b7e9

Browse files
committed
Add pydantic deps to pre-commit
1 parent 69564cf commit 7c5b7e9

1 file changed

Lines changed: 31 additions & 29 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,34 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v4
12-
13-
- name: Set up Python
14-
uses: actions/setup-python@v5
15-
with:
16-
python-version: '3.10.14'
17-
18-
- name: Install pre-commit
19-
run: pip install pre-commit
20-
21-
- name: Install Poetry
22-
uses: snok/install-poetry@v1
23-
with:
24-
virtualenvs-create: true
25-
virtualenvs-in-project: true
26-
installer-parallel: true
27-
version: 2.0.1
28-
29-
- name: Clear Poetry Cache
30-
run: |
31-
poetry cache clear pypi --all
32-
33-
- name: Run pre-commit
34-
uses: pre-commit/action@v3.0.1
35-
with:
36-
extra_args: --all-files
37-
hooks: |
38-
poetry-lock
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.10.14"
17+
18+
- name: Install pre-commit
19+
run: |
20+
pip install pre-commit
21+
pip install pydantic
22+
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
25+
with:
26+
virtualenvs-create: true
27+
virtualenvs-in-project: true
28+
installer-parallel: true
29+
version: 2.0.1
30+
31+
- name: Clear Poetry Cache
32+
run: |
33+
poetry cache clear pypi --all
34+
35+
- name: Run pre-commit
36+
uses: pre-commit/action@v3.0.1
37+
with:
38+
extra_args: --all-files
39+
hooks: |
40+
poetry-lock

0 commit comments

Comments
 (0)