Skip to content

Commit 058b94c

Browse files
committed
lint: flake8
1 parent 7cf8152 commit 058b94c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.flake8

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length=88
3+
exclude=env,.tox,doc
4+
ignore=E203,W503,E501

regex_redirects/actions.py

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def export_as_csv(modeladmin, request, queryset):
2626
opts = modeladmin.model._meta
2727
field_names = set([field.name for field in opts.fields])
2828
if fields:
29-
fieldset = set(fields)
3029
field_names = fields
3130
elif exclude:
3231
excludeset = set(exclude)

regex_redirects/tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_redirect_with_append_slash_and_query_string(self):
5252

5353
def test_regular_expression(self):
5454
redirect = Redirect.objects.create(
55-
old_path="/news/index/(\d+)/(.*)/",
55+
old_path=r"/news/index/(\d+)/(.*)/",
5656
new_path="/my/news/$2/",
5757
regular_expression=True,
5858
)

0 commit comments

Comments
 (0)