Skip to content

Code formatting

Code formatting #1

Workflow file for this run

name: Format and Lint Checks
on:
push:
branches:
- master
paths:
- '*.py'
- '*.ipynb'
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
check:
name: Format and Lint Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/dev.txt
- run: python -m flake8 maploc
- run: python -m isort maploc *.ipynb --check-only --diff
- run: python -m black maploc *.ipynb --check --diff