Skip to content

Pytest Tweaks, Part III - Test Isolation #622

Pytest Tweaks, Part III - Test Isolation

Pytest Tweaks, Part III - Test Isolation #622

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install linting tools
run: poetry install --no-root --only lint
- name: Run Black
run: poetry run black . --check --verbose --diff --color
- name: Run Isort
run: poetry run isort . --check-only --diff
- name: Run MyPy
run: poetry run mypy --config-file=pyproject.toml