Bump mypy from 1.9.0 to 1.10.0 in /requirements #566
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: lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: install dependencies | |
run: | | |
python -m pip install \ | |
-r requirements/minimal.txt \ | |
-r requirements/lint.txt \ | |
-r requirements/test.txt \ | |
build | |
- name: black | |
run: black --check . | |
- name: flake8 | |
run: | | |
flake8 | |
# Warn about complex functions. | |
flake8 --exit-zero --max-complexity=10 | |
- name: generate version string | |
run: | | |
# Mypy wants to check the type of the version string. | |
# This comes after the black step because black doesn't like | |
# the version file generated by setuptools_scm. | |
python -m build --sdist | |
- name: mypy | |
run: mypy |