Skip to content

Prevent duplicative merge attempts. #1098

Prevent duplicative merge attempts.

Prevent duplicative merge attempts. #1098

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