Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix blanket noqa statements.
  • Loading branch information
tim-schilling committed Aug 24, 2021
commit 537e1cb6a1547b24400175f315216a96e9ac42db
2 changes: 1 addition & 1 deletion debug_toolbar/management/commands/debugsqlshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import django
import sqlparse
from django.core.management.commands.shell import Command # noqa
from django.core.management.commands.shell import Command # noqa: F401
from django.db import connection

if connection.vendor == "postgresql" and django.VERSION >= (3, 0, 0):
Expand Down
2 changes: 1 addition & 1 deletion debug_toolbar/panels/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def clear(self, *args, **kwargs):
def has_key(self, *args, **kwargs):
# Ignore flake8 rules for has_key since we need to support caches
# that may be using has_key.
return self.cache.has_key(*args, **kwargs) # noqa
return self.cache.has_key(*args, **kwargs) # noqa: W601

@send_signal
def incr(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion debug_toolbar/panels/history/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from debug_toolbar.panels.history.panel import HistoryPanel # noqa
from debug_toolbar.panels.history.panel import HistoryPanel # noqa: F401
2 changes: 1 addition & 1 deletion debug_toolbar/panels/sql/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from debug_toolbar.panels.sql.panel import SQLPanel # noqa
from debug_toolbar.panels.sql.panel import SQLPanel # noqa: F401
2 changes: 1 addition & 1 deletion debug_toolbar/panels/templates/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from debug_toolbar.panels.templates.panel import TemplatesPanel # noqa
from debug_toolbar.panels.templates.panel import TemplatesPanel # noqa: F401
2 changes: 1 addition & 1 deletion tests/panels/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def test_insert_locals(self):
"""
Test that the panel inserts locals() content.
"""
local_var = "<script>alert('test');</script>" # noqa
local_var = "<script>alert('test');</script>" # noqa: F841
list(User.objects.filter(username="café".encode("utf-8")))
response = self.panel.process_request(self.request)
self.panel.generate_stats(self.request, response)
Expand Down