Fix mypy issues #2361
Workflow file for this run
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: | |
pull_request: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.x' | |
- run: | | |
python -m pip install --upgrade pip | |
python -m pip install -U .[lint] | |
- name: black | |
run: | | |
black --check --diff src tests | |
- name: flake8 | |
run: | | |
flake8 src tests | |
- name: mypy | |
run: | | |
mypy src | |
- name: isort | |
run: | | |
isort src tests |