flake8
-
djblets/integrations/urls.py (Diff revision 1) Show all issues -
-
Review Request #11956 — Created Jan. 21, 2022 and submitted
Information | |
---|---|
david | |
Djblets | |
release-3.x | |
Reviewers | |
djblets | |
Django 2+ provides a new method for definings URLs,
path()
. This is
much simpler for basic cases, and makes URL patterns more readable. In
addition, the oldurl()
method has been renamed tore_path()
, and a
warning is raised when using the old name, so switch to that too.
Ran unit tests.
Summary | |
---|---|
Description | From | Last Updated |
---|---|---|
Mind tweaking the summary to be a little more clear on what this does? I went into this thinking the … |
|
|
W605 invalid escape sequence '\.' |
![]() |
|
E501 line too long (84 > 79 characters) |
![]() |
|
E501 line too long (80 > 79 characters) |
![]() |
|
Alignment is off. |
|
|
Alignment is off. |
|
|
Alignment is off. |
|
|
Alignment is off. Can we just put the { on the path( line so that we can keep the contents … |
|
|
This was already here, but the }) alignment is off. |
|
|
Alignment is off. |
|
|
Indentation of the subsequent lines are all too far. |
|
|
django.urls should be last. |
|
djblets/integrations/urls.py (Diff revision 1) |
---|
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+140 -144) |
Mind tweaking the summary to be a little more clear on what this does? I went into this thinking the change was going to be something entirely different.
djblets/extensions/tests/test_views.py (Diff revision 2) |
---|
Alignment is off.
Can we just put the
{
on thepath(
line so that we can keep the contents nicely indented 4 spaces relative topath(
? I think we may also want to make this akwargs={
?
Summary: |
|
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||
Commits: |
|
|||||||||||||||||||||
Diff: |
Revision 3 (+150 -156) |
Description: |
|
---|
djblets/extensions/tests/test_views.py (Diff revision 3) |
---|
Indentation of the subsequent lines are all too far.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+158 -164) |