diff options
author | Stephen Finucane <stephen@that.guru> | 2017-05-19 15:52:26 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-12-03 20:54:27 +0000 |
commit | ddd54ebb3fb022e97d93b4a3d94d0c830b3ad0fb (patch) | |
tree | eace9d49a5af4f234e2902a2da8d4323670bd913 /patchwork/urls.py | |
parent | 29dba190c6f6f68e8cd5c0bd1924da5ff5e6e9b2 (diff) | |
download | patchwork-ddd54ebb3fb022e97d93b4a3d94d0c830b3ad0fb.tar patchwork-ddd54ebb3fb022e97d93b4a3d94d0c830b3ad0fb.tar.gz |
trivial: noqa imports dotted through urls
There are two imports not located in the top of the file due to how we
use them. 'noqa' these to prevent issues with static code analysers.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Tested-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r-- | patchwork/urls.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/patchwork/urls.py b/patchwork/urls.py index 4fab12f..7193472 100644 --- a/patchwork/urls.py +++ b/patchwork/urls.py @@ -188,7 +188,7 @@ urlpatterns += [ ] if 'debug_toolbar' in settings.INSTALLED_APPS: - import debug_toolbar + import debug_toolbar # noqa urlpatterns += [ url(r'^__debug__/', include(debug_toolbar.urls)), @@ -211,16 +211,16 @@ if settings.ENABLE_REST_API: raise RuntimeError( 'djangorestframework must be installed to enable the REST API.') - from patchwork.api import bundle as api_bundle_views - from patchwork.api import check as api_check_views - from patchwork.api import cover as api_cover_views - from patchwork.api import event as api_event_views - from patchwork.api import index as api_index_views - from patchwork.api import patch as api_patch_views - from patchwork.api import person as api_person_views - from patchwork.api import project as api_project_views - from patchwork.api import series as api_series_views - from patchwork.api import user as api_user_views + from patchwork.api import bundle as api_bundle_views # noqa + from patchwork.api import check as api_check_views # noqa + from patchwork.api import cover as api_cover_views # noqa + from patchwork.api import event as api_event_views # noqa + from patchwork.api import index as api_index_views # noqa + from patchwork.api import patch as api_patch_views # noqa + from patchwork.api import person as api_person_views # noqa + from patchwork.api import project as api_project_views # noqa + from patchwork.api import series as api_series_views # noqa + from patchwork.api import user as api_user_views # noqa api_patterns = [ url(r'^$', |