mirror of
https://github.com/benbusby/whoogle-search
synced 2024-11-10 13:10:30 +00:00
375f4ee9fd
Enforces PEP-8 formatting for all python code Adds a github action build for checking pep8 formatting using pycodestyle
23 lines
480 B
YAML
23 lines
480 B
YAML
name: pep8
|
|
|
|
on:
|
|
push
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pycodestyle
|
|
- name: Run pycodestyle
|
|
run: |
|
|
pycodestyle --show-source --show-pep8 app/*
|
|
pycodestyle --show-source --show-pep8 test/*
|