Skip to content

Merge pull request #2 from OpenDataServices/2023-09-01 #49

Merge pull request #2 from OpenDataServices/2023-09-01

Merge pull request #2 from OpenDataServices/2023-09-01 #49

Workflow file for this run

name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install -e .[dev]
- run: black --check setup.py ocdsmetricsanalysis/* tests/*
- run: isort --check-only setup.py ocdsmetricsanalysis/* tests/*
- run: flake8 setup.py ocdsmetricsanalysis/* tests/*
- run: mypy --install-types --non-interactive -p ocdsmetricsanalysis