Skip to content

Commit

Permalink
lint: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Mar 8, 2024
1 parent 7cf8152 commit 058b94c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length=88
exclude=env,.tox,doc
ignore=E203,W503,E501
1 change: 0 additions & 1 deletion regex_redirects/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def export_as_csv(modeladmin, request, queryset):
opts = modeladmin.model._meta
field_names = set([field.name for field in opts.fields])
if fields:
fieldset = set(fields)
field_names = fields
elif exclude:
excludeset = set(exclude)
Expand Down
2 changes: 1 addition & 1 deletion regex_redirects/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_redirect_with_append_slash_and_query_string(self):

def test_regular_expression(self):
redirect = Redirect.objects.create(
old_path="/news/index/(\d+)/(.*)/",
old_path=r"/news/index/(\d+)/(.*)/",
new_path="/my/news/$2/",
regular_expression=True,
)
Expand Down

0 comments on commit 058b94c

Please sign in to comment.