Fix test error in macOS action #718
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: Lint Code Base | |
on: | |
push: | |
branches: # ignore pushed tags | |
- "*" | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- run: | | |
python -m pip install mypy | |
python -m mypy . | |
python -m mypy __main__.py | |
- run: | | |
python -m pip install ruff | |
python -m ruff check . | |
python -m ruff format --diff . | |
- uses: crate-ci/[email protected] |