Skip to content

Merge pull request #577 from llewelld/iss569_disable_empty_option #282

Merge pull request #577 from llewelld/iss569_disable_empty_option

Merge pull request #577 from llewelld/iss569_disable_empty_option #282

name: Linting and Formatting
on: [push]
jobs:
ubuntu-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
python-version:
- 3.9.16
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: |
python -m ensurepip
python -m pip install --upgrade pip
- name: Install Tools
run: |
python -m pip install black flake8
- name: Linting and Formatting
run: |
python -m flake8 ./server/apps/main/views.py --count --select=E9,F63,F7,F82, --ignore=F821 --show-source --statistics
python -m black --diff ./server/apps/main/views.py