Fix bugs that are not compatible with pydantic2.x : Fix missing import + refactoring #288
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
- name: Run Black Code Formatter | |
uses: psf/black@stable | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r tests/dev.requirements.txt | |
- name: Check Typing with mypy | |
run: | | |
mypy fastapi_crudrouter | |
- name: Lint with flake8 | |
run: | | |
flake8 fastapi_crudrouter |