Add flake8 to gitlib-ci - closes #58

And fix the rest of the flake8 errors.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Nikolas Nyby authored and Sunil Mohan Adapa committed 2019-07-25 11:07:06 -07:00
1 parent f81b1751ce
commit 5439084c84
63 files changed
+105 -82

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ from plinth import app as app_module
from plinth import cfg, menu
from plinth.utils import format_lazy
from .manifest import backup
from .manifest import backup # noqa, pylint: disable=unused-import
version = 1
+2 -2
View File
@@ -75,5 +75,5 @@ class AddShareForm(forms.Form):
groups = self.cleaned_data.get('groups')
if not is_public and not groups:
raise forms.ValidationError(
_('Shares should be either public or shared with at least one group'
))
_('Shares should be either public or shared with at '
'least one group'))