This commit is contained in:
p.kamayev 2016-04-28 11:20:34 +03:00
parent edc7680b76
commit 3cbb515787
5 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,5 @@
[settings] [settings]
skip=.tox skip=.tox,tests/compat/compat_py35.py
atomic=true atomic=true
multi_line_output=5 multi_line_output=5
known_standard_library=types known_standard_library=types

View File

@ -30,7 +30,9 @@ from django.utils.ipv6 import clean_ipv6_address
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from rest_framework import ISO_8601 from rest_framework import ISO_8601
from rest_framework.compat import unicode_repr, unicode_to_repr, is_simple_callable from rest_framework.compat import (
is_simple_callable, unicode_repr, unicode_to_repr
)
from rest_framework.exceptions import ValidationError from rest_framework.exceptions import ValidationError
from rest_framework.settings import api_settings from rest_framework.settings import api_settings
from rest_framework.utils import html, humanize_datetime, representation from rest_framework.utils import html, humanize_datetime, representation

View File

@ -15,9 +15,7 @@ from django.utils.six.moves.urllib import parse as urlparse
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from rest_framework.compat import is_simple_callable from rest_framework.compat import is_simple_callable
from rest_framework.fields import ( from rest_framework.fields import Field, empty, get_attribute, iter_options
Field, empty, get_attribute, iter_options
)
from rest_framework.reverse import reverse from rest_framework.reverse import reverse
from rest_framework.utils import html from rest_framework.utils import html

View File

@ -1,3 +1,7 @@
# for now, linting is done by python2.7, so for that file it should be disabled.
# flake8: noqa
class FunctionSimplicityCheckPy35Mixin: class FunctionSimplicityCheckPy35Mixin:
def get_good_cases(self): def get_good_cases(self):
def annotated_simple() -> int: def annotated_simple() -> int:

View File

@ -1,6 +1,5 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import pytest
import sys import sys
from rest_framework.compat import is_simple_callable from rest_framework.compat import is_simple_callable