Skip to content

Commit 0a8d0da

Browse files
kiendangsuperlevure
authored andcommitted
Use ruff in pre-commit (graphql-python#1441)
* Use ruff in pre-commit * Add pyupgrade * Add isort * Add bugbear * Fix B015 Pointless comparison * Fix B026 * B018 false positive * Remove flake8 and isort config from setup.cfg * Remove black and flake8 from dev dependencies * Update black * Show list of fixes applied with autofix on * Fix typo * Add C4 flake8-comprehensions * Add ruff to dev dependencies * Fix up
1 parent 376060d commit 0a8d0da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_django/forms/converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def get_form_field_description(field):
2727
@singledispatch
2828
def convert_form_field(field):
2929
raise ImproperlyConfigured(
30-
f"Don't know how to convert the Django form field {field} ({field.__class__}) "
31-
"to Graphene type"
30+
"Don't know how to convert the Django form field %s (%s) "
31+
"to Graphene type" % (field, field.__class__)
3232
)
3333

3434

0 commit comments

Comments
 (0)