|
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, develop ]
|
|
pull_request:
|
|
branches: [ master, develop ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
|
|
- name: Run Black
|
|
run: |
|
|
black --check pr tests
|
|
|
|
#- name: Run Flake8
|
|
#run: |
|
|
# flake8 pr tests --max-line-length=100 --ignore=E203,W503
|
|
|
|
- name: Run MyPy
|
|
run: |
|
|
mypy pr --ignore-missing-imports
|
|
continue-on-error: true
|