Skip to content

Commit

Permalink
Use Pydantic 1 for ci-pre-commit workflow
Browse files Browse the repository at this point in the history
This is necessary because the typing for v1 stuff breaks when using
Pydantic 2. We can stop doing this once we actually migrate off of
Pydantic 1 implementations.
  • Loading branch information
QMalcolm committed Dec 22, 2023
1 parent 458f6d3 commit 1e6245a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-python-env
# This step is necessary so long as we're allowing Pydantic 1 and Pydantic 2 via shimming
- name: Force Pydantic 1
run: hatch run dev-env:pip install "pydantic~=1.10"
- name: Run Pre-commit Hooks
run: hatch run dev-env:pre-commit run --show-diff-on-failure --color=always --all-files

0 comments on commit 1e6245a

Please sign in to comment.