Skip to content

Conditional imports to support operating with pydantic>2 installed #74

Conditional imports to support operating with pydantic>2 installed

Conditional imports to support operating with pydantic>2 installed #74

name: Static analysis
on: [pull_request]
jobs:
pre-commit-checks:
name: Pre-commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: |
pre-commit run --show-diff-on-failure --color=always --all-files