Add basic flake8

This commit is contained in:
Ben V. Brown
2021-04-05 19:24:21 +10:00
parent d9100d1625
commit a472641a39
3 changed files with 7 additions and 1 deletions

3
.flake8 Normal file
View File

@@ -0,0 +1,3 @@
[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 200

View File

@@ -87,3 +87,6 @@ jobs:
- name: Check python formatting with black
run: black --check Translations
- name: Check python with flake8
run: flake8 Translations

View File

@@ -2,7 +2,7 @@
set -e
# Setup shell file to setup the environment on an ubuntu machine
sudo apt-get update && sudo apt-get install -y make bzip2 git python3 python3-pip wget
python3 -m pip install bdflib black
python3 -m pip install bdflib black flake8
sudo mkdir -p /build
cd /build