Skip to content

tox flake8-isort exclude env and .venv #645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion example/serializers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime

from rest_framework import serializers as drf_serilazers, fields as drf_fields
from rest_framework import fields as drf_fields
from rest_framework import serializers as drf_serilazers

from rest_framework_json_api import relations, serializers

Expand Down
2 changes: 1 addition & 1 deletion example/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

from rest_framework_json_api.utils import format_resource_type

from . import TestBase
from .. import views
from . import TestBase
from example.factories import AuthorFactory, CommentFactory, EntryFactory
from example.models import Author, Blog, Comment, Entry
from example.serializers import AuthorBioSerializer, AuthorTypeSerializer, EntrySerializer
Expand Down
2 changes: 1 addition & 1 deletion example/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from rest_framework_json_api.filters import OrderingFilter, QueryParameterValidationFilter
from rest_framework_json_api.pagination import JsonApiPageNumberPagination
from rest_framework_json_api.utils import format_drf_errors
from rest_framework_json_api.views import ModelViewSet, RelationshipView, PreloadIncludesMixin
from rest_framework_json_api.views import ModelViewSet, PreloadIncludesMixin, RelationshipView

from example.models import Author, Blog, Comment, Company, Entry, Project, ProjectType
from example.serializers import (
Expand Down
1 change: 1 addition & 0 deletions rest_framework_json_api/django_filters/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.exceptions import ValidationError
from rest_framework.settings import api_settings

from rest_framework_json_api.utils import format_value


Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ exclude =
migrations,
.eggs
.tox,
env
.venv

[isort]
indent = 4
Expand All @@ -28,6 +30,8 @@ skip=
migrations,
.eggs
.tox,
env
.venv

[coverage:run]
source =
Expand Down