tidy #280
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: Linting | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ${{ matrix.image }} | |
strategy: | |
matrix: | |
os: | |
- Ubuntu | |
python-version: | |
- "3.10" | |
- "3.11" | |
include: | |
- os: Ubuntu | |
image: Ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Install unixodbc-dev | |
run: sudo apt-get install --yes --no-install-recommends unixodbc-dev | |
- name: Set up python {{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
- name: Install project | |
run: poetry install --extras azure | |
- name: ruff | |
run: poetry run ruff . | |
- name: black | |
run: poetry run black --check . | |
- name: mypy | |
run: poetry run mypy . |