mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
linting
This commit is contained in:
parent
edc7680b76
commit
3cbb515787
|
@ -1,5 +1,5 @@
|
|||
[settings]
|
||||
skip=.tox
|
||||
skip=.tox,tests/compat/compat_py35.py
|
||||
atomic=true
|
||||
multi_line_output=5
|
||||
known_standard_library=types
|
||||
|
|
|
@ -30,7 +30,9 @@ from django.utils.ipv6 import clean_ipv6_address
|
|||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
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.settings import api_settings
|
||||
from rest_framework.utils import html, humanize_datetime, representation
|
||||
|
|
|
@ -15,9 +15,7 @@ from django.utils.six.moves.urllib import parse as urlparse
|
|||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from rest_framework.compat import is_simple_callable
|
||||
from rest_framework.fields import (
|
||||
Field, empty, get_attribute, iter_options
|
||||
)
|
||||
from rest_framework.fields import Field, empty, get_attribute, iter_options
|
||||
from rest_framework.reverse import reverse
|
||||
from rest_framework.utils import html
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# for now, linting is done by python2.7, so for that file it should be disabled.
|
||||
# flake8: noqa
|
||||
|
||||
|
||||
class FunctionSimplicityCheckPy35Mixin:
|
||||
def get_good_cases(self):
|
||||
def annotated_simple() -> int:
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
import sys
|
||||
|
||||
from rest_framework.compat import is_simple_callable
|
||||
|
|
Loading…
Reference in New Issue
Block a user