diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8978332f..a9db3cd4a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,7 @@ repos: hooks: - id: flake8 additional_dependencies: + - flake8-no-pep420==2.4.0 - flake8-pyi==22.11.0 types: [] files: ^.*.pyi?$ diff --git a/django-stubs/contrib/postgres/forms/jsonb.py b/django-stubs/contrib/postgres/forms/jsonb.pyi similarity index 66% rename from django-stubs/contrib/postgres/forms/jsonb.py rename to django-stubs/contrib/postgres/forms/jsonb.pyi index b03cda8a7..5262da9ee 100644 --- a/django-stubs/contrib/postgres/forms/jsonb.py +++ b/django-stubs/contrib/postgres/forms/jsonb.pyi @@ -2,8 +2,6 @@ from django.forms import JSONField as BuiltinJSONField - # Deprecated, removed in 4.0 class JSONField(BuiltinJSONField): - def __init__(self, *args: Any, **kwargs: Any) -> None: - ... + def __init__(self, *args: Any, **kwargs: Any) -> None: ... diff --git a/setup.cfg b/setup.cfg index 3dacf62ef..a50af6c36 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,3 +4,6 @@ extend-ignore = E203 max_line_length = 120 per-file-ignores = *.pyi: B, E301, E302, E305, E501, E701, E741, E743, NQA102, F401, F403, F405, F822, Y021, Y024, Y041, Y043 + setup.py: INP001 + tests/*.py: INP001 + django_stubs_ext/tests/*.py: INP001