remove -semanal suffix

This commit is contained in:
Maxim Kurnikov
2019-07-17 21:17:18 +03:00
parent dc6101b569
commit b81fbdeaa9
34 changed files with 21 additions and 20 deletions

View File

@@ -16,7 +16,7 @@ from django.db.models.fields import CharField, Field
from django.db.models.fields.reverse_related import ForeignObjectRel from django.db.models.fields.reverse_related import ForeignObjectRel
from django.db.models.sql.query import Query from django.db.models.sql.query import Query
from mypy_django_plugin_newsemanal.lib import helpers from mypy_django_plugin.lib import helpers
if TYPE_CHECKING: if TYPE_CHECKING:
from django.apps.registry import Apps from django.apps.registry import Apps

View File

@@ -9,10 +9,10 @@ from mypy.options import Options
from mypy.plugin import AttributeContext, ClassDefContext, FunctionContext, MethodContext, Plugin from mypy.plugin import AttributeContext, ClassDefContext, FunctionContext, MethodContext, Plugin
from mypy.types import Type as MypyType from mypy.types import Type as MypyType
from mypy_django_plugin_newsemanal.django.context import DjangoContext from mypy_django_plugin.django.context import DjangoContext
from mypy_django_plugin_newsemanal.lib import fullnames, helpers from mypy_django_plugin.lib import fullnames, helpers
from mypy_django_plugin_newsemanal.transformers import fields, forms, init_create, querysets, settings from mypy_django_plugin.transformers import fields, forms, init_create, querysets, settings
from mypy_django_plugin_newsemanal.transformers.models import process_model_class from mypy_django_plugin.transformers.models import process_model_class
def transform_model_class(ctx: ClassDefContext, def transform_model_class(ctx: ClassDefContext,

View File

@@ -5,8 +5,8 @@ from mypy.nodes import StrExpr, TypeInfo
from mypy.plugin import FunctionContext from mypy.plugin import FunctionContext
from mypy.types import AnyType, CallableType, Instance, Type as MypyType, UnionType from mypy.types import AnyType, CallableType, Instance, Type as MypyType, UnionType
from mypy_django_plugin_newsemanal.django.context import DjangoContext from mypy_django_plugin.django.context import DjangoContext
from mypy_django_plugin_newsemanal.lib import fullnames, helpers from mypy_django_plugin.lib import fullnames, helpers
def extract_referred_to_type(ctx: FunctionContext, django_context: DjangoContext) -> Optional[Instance]: def extract_referred_to_type(ctx: FunctionContext, django_context: DjangoContext) -> Optional[Instance]:

View File

@@ -4,7 +4,7 @@ from django.db.models.base import Model
from mypy.plugin import FunctionContext, MethodContext from mypy.plugin import FunctionContext, MethodContext
from mypy.types import Instance, Type as MypyType from mypy.types import Instance, Type as MypyType
from mypy_django_plugin_newsemanal.django.context import DjangoContext from mypy_django_plugin.django.context import DjangoContext
def get_actual_types(ctx: Union[MethodContext, FunctionContext], expected_keys: List[str]) -> List[Tuple[str, MypyType]]: def get_actual_types(ctx: Union[MethodContext, FunctionContext], expected_keys: List[str]) -> List[Tuple[str, MypyType]]:

View File

@@ -9,10 +9,10 @@ from mypy.nodes import ClassDef, MDEF, SymbolTableNode, TypeInfo, Var
from mypy.plugin import ClassDefContext from mypy.plugin import ClassDefContext
from mypy.types import Instance from mypy.types import Instance
from mypy_django_plugin_newsemanal.django.context import DjangoContext from mypy_django_plugin.django.context import DjangoContext
from mypy_django_plugin_newsemanal.lib import fullnames, helpers from mypy_django_plugin.lib import fullnames, helpers
from mypy_django_plugin_newsemanal.transformers import fields from mypy_django_plugin.transformers import fields
from mypy_django_plugin_newsemanal.transformers.fields import get_field_descriptor_types from mypy_django_plugin.transformers.fields import get_field_descriptor_types
@dataclasses.dataclass @dataclasses.dataclass

View File

@@ -8,8 +8,8 @@ from mypy.nodes import NameExpr
from mypy.plugin import AnalyzeTypeContext, FunctionContext, MethodContext from mypy.plugin import AnalyzeTypeContext, FunctionContext, MethodContext
from mypy.types import AnyType, Instance, Type as MypyType, TypeOfAny from mypy.types import AnyType, Instance, Type as MypyType, TypeOfAny
from mypy_django_plugin_newsemanal.django.context import DjangoContext from mypy_django_plugin.django.context import DjangoContext
from mypy_django_plugin_newsemanal.lib import fullnames, helpers from mypy_django_plugin.lib import fullnames, helpers
def set_first_generic_param_as_default_for_second(ctx: AnalyzeTypeContext, fullname: str) -> MypyType: def set_first_generic_param_as_default_for_second(ctx: AnalyzeTypeContext, fullname: str) -> MypyType:

View File

@@ -2,8 +2,8 @@ from mypy.nodes import TypeInfo, MemberExpr
from mypy.plugin import FunctionContext, AttributeContext from mypy.plugin import FunctionContext, AttributeContext
from mypy.types import Type as MypyType, TypeType, Instance from mypy.types import Type as MypyType, TypeType, Instance
from mypy_django_plugin_newsemanal.django.context import DjangoContext from mypy_django_plugin.django.context import DjangoContext
from mypy_django_plugin_newsemanal.lib import helpers from mypy_django_plugin.lib import helpers
def get_user_model_hook(ctx: FunctionContext, django_context: DjangoContext) -> MypyType: def get_user_model_hook(ctx: FunctionContext, django_context: DjangoContext) -> MypyType:

View File

@@ -1,8 +1,8 @@
[pytest] [pytest]
testpaths = ./test-data-newsemanal testpaths = ./test-data
addopts = addopts =
--tb=native --tb=native
--mypy-ini-file=./test-data-newsemanal/plugins.ini --mypy-ini-file=./test-data/plugins.ini
-s -s
-v -v
--cache-clear --cache-clear

View File

@@ -22,7 +22,8 @@ with open('README.md', 'r') as f:
dependencies = [ dependencies = [
'mypy>=0.720,<0.730', 'mypy>=0.720,<0.730',
'typing-extensions' 'typing-extensions',
'toml'
] ]
if sys.version_info[:2] < (3, 7): if sys.version_info[:2] < (3, 7):
# dataclasses port for 3.6 # dataclasses port for 3.6

View File

@@ -2,4 +2,4 @@
incremental = True incremental = True
strict_optional = True strict_optional = True
plugins = plugins =
mypy_django_plugin_newsemanal.main mypy_django_plugin.main