mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
Adding PEP8/flake8 GitHub Action
This commit is contained in:
parent
32fff3260b
commit
2d11032ada
2 changed files with 31 additions and 0 deletions
3
.flake8
Normal file
3
.flake8
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[flake8]
|
||||||
|
exclude = .git,__pycache__,migrations
|
||||||
|
max-line-length = 120
|
||||||
28
.github/workflows/pep8.yml
vendored
Normal file
28
.github/workflows/pep8.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: PEP8 Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
flake8:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install flake8
|
||||||
|
|
||||||
|
- name: Run flake8
|
||||||
|
run: flake8
|
||||||
Loading…
Add table
Add a link
Reference in a new issue