Add python linting in CI #2
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: Python Lint with Ruff and Mypy | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Install Ruff and Mypy | |
run: pip install ruff | |
- name: Ruff check | |
run: | | |
ruff check . | |
- name: mypy check | |
run: | | |
yes | mypy src --install-types || true | |
mypy . |