From 27f7b68965050f84afbd9675451794f038734f11 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 09:39:17 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 22.12.0 → 23.3.0](https://github.com/psf/black/compare/22.12.0...23.3.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9456da11..6327d372 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: flake8 args: [ --max-line-length=120 ] - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.3.0 hooks: - id: black args: [--safe, --line-length=120] From b2d026c7de68d27aa0eb0940f386a4e067fb8d17 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 09:39:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pylint_django/tests/input/func_noerror_form_fields.py | 1 - pylint_django/tests/input/func_noerror_forms_py33.py | 1 - pylint_django/tests/input/func_noerror_model_fields.py | 1 - pylint_django/tests/input/migrations/0002_new_column.py | 1 - pylint_django/tests/input/migrations/0003_without_backwards.py | 1 - .../tests/input/migrations/0004_noerror_with_backwards.py | 1 - pylint_django/transforms/fields.py | 1 - 7 files changed, 7 deletions(-) diff --git a/pylint_django/tests/input/func_noerror_form_fields.py b/pylint_django/tests/input/func_noerror_form_fields.py index d6ffbfef..dada077b 100644 --- a/pylint_django/tests/input/func_noerror_form_fields.py +++ b/pylint_django/tests/input/func_noerror_form_fields.py @@ -12,7 +12,6 @@ class ManyFieldsForm(forms.Form): - booleanfield = forms.BooleanField() charfield = forms.CharField(max_length=40, null=True) datetimefield = forms.DateTimeField(auto_now_add=True) diff --git a/pylint_django/tests/input/func_noerror_forms_py33.py b/pylint_django/tests/input/func_noerror_forms_py33.py index 7a8c2aee..831f161d 100644 --- a/pylint_django/tests/input/func_noerror_forms_py33.py +++ b/pylint_django/tests/input/func_noerror_forms_py33.py @@ -34,7 +34,6 @@ class Meta: class TestFormWidgetAssignment(forms.Form): - multi_field = forms.MultipleChoiceField(choices=[("1", "First"), ("2", "Second")]) class Meta: diff --git a/pylint_django/tests/input/func_noerror_model_fields.py b/pylint_django/tests/input/func_noerror_model_fields.py index 3e5ffeb9..c0389ff7 100644 --- a/pylint_django/tests/input/func_noerror_model_fields.py +++ b/pylint_django/tests/input/func_noerror_model_fields.py @@ -12,7 +12,6 @@ class LotsOfFieldsModel(models.Model): - bigintegerfield = models.BigIntegerField() booleanfield = models.BooleanField(default=True) charfield = models.CharField(max_length=40, null=True) diff --git a/pylint_django/tests/input/migrations/0002_new_column.py b/pylint_django/tests/input/migrations/0002_new_column.py index 0aee5447..07ebc2d6 100644 --- a/pylint_django/tests/input/migrations/0002_new_column.py +++ b/pylint_django/tests/input/migrations/0002_new_column.py @@ -19,7 +19,6 @@ class Migration(migrations.Migration): - dependencies = [ ("input", "0001_noerror_initial"), ] diff --git a/pylint_django/tests/input/migrations/0003_without_backwards.py b/pylint_django/tests/input/migrations/0003_without_backwards.py index a61e5511..5ec670e3 100644 --- a/pylint_django/tests/input/migrations/0003_without_backwards.py +++ b/pylint_django/tests/input/migrations/0003_without_backwards.py @@ -7,7 +7,6 @@ def forwards_test(apps, schema_editor): class Migration(migrations.Migration): - operations = [ migrations.RunPython(), # [missing-backwards-migration-callable] migrations.RunPython(forwards_test), # [missing-backwards-migration-callable] diff --git a/pylint_django/tests/input/migrations/0004_noerror_with_backwards.py b/pylint_django/tests/input/migrations/0004_noerror_with_backwards.py index e385e02e..9460ac55 100644 --- a/pylint_django/tests/input/migrations/0004_noerror_with_backwards.py +++ b/pylint_django/tests/input/migrations/0004_noerror_with_backwards.py @@ -11,7 +11,6 @@ def backwards_test(apps, schema_editor): class Migration(migrations.Migration): - operations = [ migrations.RunPython(forwards_test, backwards_test), migrations.RunPython(forwards_test, reverse_code=backwards_test), diff --git a/pylint_django/transforms/fields.py b/pylint_django/transforms/fields.py index 17fac843..b9746c5f 100644 --- a/pylint_django/transforms/fields.py +++ b/pylint_django/transforms/fields.py @@ -47,7 +47,6 @@ def is_model_or_form_field(cls): def apply_type_shim(cls, _context=None): # noqa - if cls.name in _STR_FIELDS: base_nodes = scoped_nodes.builtin_lookup("str") elif cls.name in _INT_FIELDS: