Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #390

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
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