Introduce flake8 checking - #58

This introduces flake8 and fixes a bunch of flake8 errors.

flake8 is run with: ./venv/bin/flake8 plinth
if you're using a python3 venv.

We can eventually further integrate this with gitlab ci.

https://salsa.debian.org/freedombox-team/plinth/issues/58

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Nikolas Nyby authored and Sunil Mohan Adapa committed 2019-07-24 14:01:54 -07:00
1 parent d2e987ef3c
commit ace339eabf
16 files changed
+26 -25

No files matched your search

+2 -2
View File
@@ -22,7 +22,6 @@ import collections
import django
import importlib
import logging
import os
import pathlib
import re
@@ -157,7 +156,8 @@ def get_modules_to_load():
# './setup.py install' has not been executed yet. Pickup files to load
# from local module directories.
directory = pathlib.Path(__file__).parent
files = list(directory.glob('modules/*/data/etc/plinth/modules-enabled/*'))
files = list(directory.glob(
'modules/*/data/etc/plinth/modules-enabled/*'))
# Omit hidden files
files = [