Skip to content

Commit

Permalink
[ci skip] Fix flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-thomas committed Oct 6, 2015
1 parent 75752c8 commit 8723c13
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
4 changes: 3 additions & 1 deletion model_logging/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class LogEntrySerializer(HyperlinkedModelSerializer):

class Meta:
model = models.LogEntry
fields = ('url', 'date_created', 'creator', 'operation', 'operation_label', 'data')
fields = (
'url', 'date_created', 'creator', 'operation', 'operation_label', 'data',
)
read_only_fields = fields
view_name = 'medication-history-detail'
2 changes: 1 addition & 1 deletion model_logging/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from django.test import TestCase

from . import factories
from model_logging import models
from . import factories


class TestLogEntry(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion model_logging/tests/test_serializers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from incuna_test_utils.testcases.api_request import BaseAPIRequestTestCase

from model_logging.serializers import LogEntrySerializer
from . import factories
from .utils import get_log_entry_data
from model_logging.serializers import LogEntrySerializer


class TestLogEntrySerializer(BaseAPIRequestTestCase):
Expand Down
2 changes: 1 addition & 1 deletion model_logging/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import simplejson
from incuna_test_utils.testcases.api_request import BaseAPIRequestTestCase

from .factories import UserFactory
from model_logging import models, views
from .factories import UserFactory

FAKE_DATA = {'item': 42}

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ django==1.8.5
django-pgcrypto-fields==1.0.0
djangorestframework==3.2.4
factory_boy==2.5.2
flake8==2.2.3
flake8-docstrings==0.2.1
flake8-import-order==0.5.1
incuna-test-utils==6.3.1
psycopg2==2.6.1
Expand Down
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
[flake8]
max-line-length = 90
max-complexity = 10
exclude = *migrations*
statistics = true
application-import-names = model_logging
import-order-style = google

[wheel]
universal = 1

0 comments on commit 8723c13

Please sign in to comment.