Skip to content

Merge pull request #2051 from teovin/court-listener-api #1178

Merge pull request #2051 from teovin/court-listener-api

Merge pull request #2051 from teovin/court-listener-api #1178

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.11'
- 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