Skip to content

Commit

Permalink
chore: ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Jan 11, 2024
1 parent fd644eb commit 79b63d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion explorer/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,4 @@ def test_only_registered_connections_are_in_connections(self):
from explorer.app_settings import EXPLORER_DEFAULT_CONNECTION
from explorer.connections import connections
self.assertTrue(EXPLORER_DEFAULT_CONNECTION in connections)
self.assertNotEqual(len(connections), len([c for c in djcs]))
self.assertNotEqual(len(connections), len(djcs))
8 changes: 3 additions & 5 deletions explorer/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ def handle_no_permission(request):
def get_permission_required(self):
if self.permission_required is None:
raise ImproperlyConfigured(
"{0} is missing the permission_required attribute. "
"Define {0}.permission_required, or override "
"{0}.get_permission_required().".format(
self.__class__.__name__
)
f"{self.__class__.__name__} is missing the permission_required attribute. "
f"Define {self.__class__.__name__}.permission_required, or override "
f"{self.__class__.__name__}.get_permission_required()."
)
return self.permission_required

Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from pathlib import Path

from setuptools import setup


try:
from sphinx.setup_command import BuildDoc
except ImportError:
Expand Down
3 changes: 2 additions & 1 deletion test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,6 @@
)

EXPLORER_USER_QUERY_VIEWS = {}
EXPLORER_TASKS_ENABLED = os.environ.get("ENABLE_TASKS") == "yes" # variable set in github action - assumed to be str
# variable set in github action - assumed to be string
EXPLORER_TASKS_ENABLED = os.environ.get("ENABLE_TASKS") == "yes"
EXPLORER_S3_BUCKET = "thisismybucket.therearemanylikeit.butthisoneismine"

0 comments on commit 79b63d9

Please sign in to comment.