Drop Py2.7, 3.5 and Django 1.11, 2.0, 2.1, 3.0
This commit is contained in:
1 parent
6ba4010381
commit
085048d22b
7 files changed
+15
-50
No files matched your search
@@ -5,7 +5,6 @@ import inspect
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from enum import Enum, unique
|
||||
from subprocess import PIPE, Popen
|
||||
|
||||
@@ -26,8 +25,6 @@ from .utils import clean_bytes_to_str, get_migration_abspath, split_migration_pa
|
||||
|
||||
logger = logging.getLogger("django_migration_linter")
|
||||
|
||||
PY2 = sys.version_info[0] == 2
|
||||
|
||||
|
||||
@unique
|
||||
class MessageType(Enum):
|
||||
@@ -465,11 +462,7 @@ class MigrationLinter(object):
|
||||
warning.append(issue)
|
||||
|
||||
# Detect warning for argument naming convention
|
||||
args_spec = (
|
||||
inspect.getargspec(runpython.code)
|
||||
if PY2
|
||||
else inspect.getfullargspec(runpython.code)
|
||||
)
|
||||
args_spec = inspect.getfullargspec(runpython.code)
|
||||
if tuple(args_spec.args) != EXPECTED_DATA_MIGRATION_ARGS:
|
||||
issue = {
|
||||
"code": "RUNPYTHON_ARGS_NAMING_CONVENTION",
|
||||
|
||||
Reference in new issue
Block a user