Skip to content

Merge pull request #2038 from bensteinberg/update-20240304 #1106

Merge pull request #2038 from bensteinberg/update-20240304

Merge pull request #2038 from bensteinberg/update-20240304 #1106

Workflow file for this run

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