From c276bce7802bf17f73c8c3e4d71de7ec18d0c6be Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Mon, 26 Nov 2012 10:11:36 +0100 Subject: [PATCH] Let travis test pep8 --- .travis.yml | 6 ++++-- openslides/participant/models.py | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b65d5b1dd..c2ab9f6c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ python: - "2.7" install: - pip install -r requirements.txt --use-mirrors - - pip install coverage django-discover-runner + - pip install coverage django-discover-runner pep8 - python extras/scripts/create_local_settings.py -script: coverage run ./manage.py test tests && coverage report -m +script: + - coverage run ./manage.py test tests && coverage report -m + - pep8 --max-line-length=150 openslides | grep -v utils/pdf.py | grep -v urls.py | grep -v motion/ diff --git a/openslides/participant/models.py b/openslides/participant/models.py index 0adb6219d..bd771945d 100644 --- a/openslides/participant/models.py +++ b/openslides/participant/models.py @@ -138,7 +138,9 @@ class Group(DjangoGroup, PersonMixin, Person, SlideMixin): person_prefix = 'group' django_group = models.OneToOneField(DjangoGroup, editable=False, parent_link=True) - group_as_person = models.BooleanField(default=False, verbose_name=_("Use this group as participant"), help_text=_('For example as submitter of a motion.')) + group_as_person = models.BooleanField( + default=False, verbose_name=_("Use this group as participant"), + help_text=_('For example as submitter of a motion.')) description = models.TextField(blank=True, verbose_name=_("Description")) @models.permalink