Skip to content

fix types

fix types #148

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
os: [ubuntu-18.04, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
cp coldcore coldcore.py
echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
- name: black
run: black --check coldcore
- name: flake8
run: |
flake8 coldcore --count --show-source --statistics
# When linting the tests, ignore long line errors
flake8 test/ --count --show-source --statistics --extend-ignore E501
- name: pytest
run: |
pytest -vv test/
- name: mypy
run: |
mypy coldcore