Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cwdavies authored and willbarton committed Aug 26, 2020
1 parent a77213f commit 5399432
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions wagtailflags/conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

@register("site")
def site_condition(site_str, request=None, **kwargs):
""" Does the requests's Wagtail Site match the given site?
site_str should be 'hostname:port', or 'hostname [default]'. """
"""Does the requests's Wagtail Site match the given site?
site_str should be 'hostname:port', or 'hostname [default]'."""
if request is None:
raise RequiredForCondition(
"request is required for condition " "'site'"
Expand Down
5 changes: 4 additions & 1 deletion wagtailflags/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ class Meta:

class FlagStateForm(DjangoFlagsFlagStateForm):
name = forms.CharField(
label="Flag", required=True, disabled=True, widget=forms.HiddenInput(),
label="Flag",
required=True,
disabled=True,
widget=forms.HiddenInput(),
)

class Meta:
Expand Down
5 changes: 4 additions & 1 deletion wagtailflags/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
"taggit",
)
+ WAGTAIL_APPS
+ ("flags", "wagtailflags",)
+ (
"flags",
"wagtailflags",
)
)

STATIC_ROOT = "/tmp/static/"
Expand Down
4 changes: 2 additions & 2 deletions wagtailflags/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def index(request):


def create_flag(request):
""" Create a new flag.
"""Create a new flag.
This will add a FlagState object with a custom name and a boolean: False
condition """
condition"""
if request.method == "POST":
form = NewFlagForm(
request.POST,
Expand Down

0 comments on commit 5399432

Please sign in to comment.