Adding documentation for new metrics #571
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: mypy type check | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Check types with mypy | |
run: | | |
python3 -m pip install mypy types-setuptools | |
# stop the build if there are Python syntax errors or undefined names | |
python3 -m mypy piq/ --allow-redefinition |