diff --git a/parkings/api/public/parking_area.py b/parkings/api/public/parking_area.py index e9a93cb5..fe9c5a8f 100644 --- a/parkings/api/public/parking_area.py +++ b/parkings/api/public/parking_area.py @@ -1,6 +1,7 @@ from rest_framework import viewsets from rest_framework_gis.pagination import GeoJsonPagination -from rest_framework_gis.serializers import GeoFeatureModelSerializer, GeometrySerializerMethodField +from rest_framework_gis.serializers import ( + GeoFeatureModelSerializer, GeometrySerializerMethodField) from parkings.models import ParkingArea diff --git a/parkings/tests/api/enforcement/test_operator.py b/parkings/tests/api/enforcement/test_operator.py index 033accf3..7fa11bf9 100644 --- a/parkings/tests/api/enforcement/test_operator.py +++ b/parkings/tests/api/enforcement/test_operator.py @@ -4,7 +4,9 @@ from parkings.models import Operator -from ..utils import ALL_METHODS, check_list_endpoint_base_fields, check_method_status_codes, get +from ..utils import ( + ALL_METHODS, check_list_endpoint_base_fields, check_method_status_codes, + get) list_url = reverse('enforcement:v1:operator-list') diff --git a/parkings/tests/api/enforcement/test_valid_parking.py b/parkings/tests/api/enforcement/test_valid_parking.py index 5cde65a2..28658792 100644 --- a/parkings/tests/api/enforcement/test_valid_parking.py +++ b/parkings/tests/api/enforcement/test_valid_parking.py @@ -3,12 +3,12 @@ import pytest from django.core.urlresolvers import reverse from django.utils.timezone import utc -from rest_framework.status import HTTP_400_BAD_REQUEST, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN +from rest_framework.status import ( + HTTP_400_BAD_REQUEST, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN) from ..utils import ( - ALL_METHODS, check_list_endpoint_base_fields, check_method_status_codes, check_response_objects, get, - get_ids_from_results -) + ALL_METHODS, check_list_endpoint_base_fields, check_method_status_codes, + check_response_objects, get, get_ids_from_results) list_url = reverse('enforcement:v1:valid_parking-list') diff --git a/parkings/tests/api/operator/test_parking.py b/parkings/tests/api/operator/test_parking.py index f130bcff..5e0fbb67 100644 --- a/parkings/tests/api/operator/test_parking.py +++ b/parkings/tests/api/operator/test_parking.py @@ -8,7 +8,9 @@ from parkings.models import Parking -from ..utils import ALL_METHODS, check_method_status_codes, check_required_fields, delete, patch, post, put +from ..utils import ( + ALL_METHODS, check_method_status_codes, check_required_fields, delete, + patch, post, put) list_url = reverse('operator:v1:parking-list') diff --git a/parkings/tests/api/public/test_parking_area_statistics.py b/parkings/tests/api/public/test_parking_area_statistics.py index f653e1bc..ecc19c78 100644 --- a/parkings/tests/api/public/test_parking_area_statistics.py +++ b/parkings/tests/api/public/test_parking_area_statistics.py @@ -5,7 +5,9 @@ from parkings.models import Parking -from ..utils import check_list_endpoint_base_fields, check_method_status_codes, get, get_ids_from_results +from ..utils import ( + check_list_endpoint_base_fields, check_method_status_codes, get, + get_ids_from_results) list_url = reverse('public:v1:parkingareastatistics-list') diff --git a/parkings/tests/conftest.py b/parkings/tests/conftest.py index 2e4b6b2a..c676bc46 100644 --- a/parkings/tests/conftest.py +++ b/parkings/tests/conftest.py @@ -2,9 +2,8 @@ from pytest_factoryboy import register from parkings.factories import ( - AdminUserFactory, HistoryParkingFactory, OperatorFactory, ParkingAreaFactory, ParkingFactory, StaffUserFactory, - UserFactory -) + AdminUserFactory, HistoryParkingFactory, OperatorFactory, + ParkingAreaFactory, ParkingFactory, StaffUserFactory, UserFactory) register(OperatorFactory) register(ParkingFactory, 'parking') diff --git a/setup.cfg b/setup.cfg index 98ac9b58..73a7c0ad 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,18 +17,12 @@ norecursedirs = bower_components node_modules .git .idea doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE [isort] -atomic=true -combine_as_imports=false -indent=4 default_section=THIRDPARTY known_first_party=parkkihubi,parkings -length_sort=false -line_length=120 -multi_line_output=5 +line_length=79 +multi_line_output=4 not_skip=__init__.py -order_by_type=false skip=migrations,.tox -wrap_length=120 [pydocstyle] ignore=D100,D104,D105,D200,D203,D400