Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2023
1 parent 8b78427 commit ef3d17d
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion pylint_django/tests/input/func_noerror_form_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion pylint_django/tests/input/func_noerror_forms_py33.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Meta:


class TestFormWidgetAssignment(forms.Form):

multi_field = forms.MultipleChoiceField(choices=[("1", "First"), ("2", "Second")])

class Meta:
Expand Down
1 change: 0 additions & 1 deletion pylint_django/tests/input/func_noerror_model_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


class LotsOfFieldsModel(models.Model):

bigintegerfield = models.BigIntegerField()
booleanfield = models.BooleanField(default=True)
charfield = models.CharField(max_length=40, null=True)
Expand Down
1 change: 0 additions & 1 deletion pylint_django/tests/input/migrations/0002_new_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class Migration(migrations.Migration):

dependencies = [
("input", "0001_noerror_initial"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 0 additions & 1 deletion pylint_django/transforms/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ef3d17d

Please sign in to comment.