Type cleanup based on errors reported by mypy #75
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: style|docs|types | |
on: | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: 'pip' | |
cache-dependency-path: '**/setup.cfg' | |
- name: Install package with dependencies | |
run: pip install -e ".[dev]" | |
if: steps.python-cache.outputs.cache-hit != 'true' | |
- name: Run black | |
run: black src --check --diff | |
- name: Check that documentation can be built | |
run: tox -e docs | |
- name: Check python types with mypy | |
run: | | |
pip install mypy | |
mypy --install-types | |
mypy src/ |