Add flake8-bugbear to pre-commit.

This commit is contained in:
Fabio Caccamo
2023-03-01 17:54:58 +01:00
parent 522e4d20bc
commit 4deefc20b7
5 changed files with 11 additions and 4 deletions
@@ -24,7 +24,10 @@ class Migration(migrations.Migration):
field=colorfield.fields.ColorField(
blank=True,
default="#E74C3C",
help_text="(red: #E74C3C, orange: #E67E22, yellow: #F1C40F, green: #2ECC71, blue: #3498DB)", # noqa: E501
help_text=(
"(red: #E74C3C, orange: #E67E22, yellow: #F1C40F, "
"green: #2ECC71, blue: #3498DB)"
),
max_length=10,
verbose_name="color",
),
+2 -1
View File
@@ -116,7 +116,8 @@ class Theme(models.Model):
blank=True,
default="#E74C3C",
help_text=_(
"(red: #E74C3C, orange: #E67E22, yellow: #F1C40F, green: #2ECC71, blue: #3498DB)" # noqa: E501
"(red: #E74C3C, orange: #E67E22, yellow: #F1C40F, "
"green: #2ECC71, blue: #3498DB)"
),
max_length=10,
verbose_name=_("color"),