Merge pull request #2035 from rebeccacremona/alert-frozen-textbooks #1095
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: Lints | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: flake8 | |
run: | | |
pip install `egrep -o 'flake8==\S+' web/requirements.txt` # install our version of flake8 | |
flake8 web/ --config web/setup.cfg | |
flake8 docker/pandoc-lambda/function/ --config web/setup.cfg | |
- name: black | |
run: | | |
pip install `egrep -o 'black==\S+' web/requirements.txt` # install our version of black | |
black --check --diff . # Uses pyproject.toml | |
- name: mypy | |
run: | | |
cd web | |
pip install -r requirements.txt # install a full environment for mypy | |
PYTHONPATH=. mypy |