🔧 fix sqlite not opening in subdirectories (#344) #720
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: fmt | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install poetry | |
env: | |
POETRY_VERSION: "2.0.1" | |
run: | | |
curl -sSL https://install.python-poetry.org | python - | |
poetry config virtualenvs.create false | |
- name: Cache dependencies | |
id: cache-poetry-deps | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}-fmt | |
- name: Install dependencies | |
if: steps.cache-poetry-deps.outputs.cache-hit != 'true' | |
run: poetry install --extras "psycopg2 pymssql" # install mypy extras | |
- name: mypy | |
run: | | |
poetry run mypy pydapper | |
poetry run mypy tests/type_tests.py | |
- name: isort | |
run: poetry run isort --check . | |
- name: black | |
run: poetry run black --check . |