mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
d2e987ef3c
commit
ace339eabf
16 files changed
+26
-25
No files matched your search
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user