Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit cf67516

Browse files
committed
Format everything with Ruff
1 parent 9f3a389 commit cf67516

File tree

13 files changed

+4
-12
lines changed

13 files changed

+4
-12
lines changed

meta/lint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
exec ./.venv/bin/ruff check "$@" .
4+
./.venv/bin/ruff check --fix
5+
./.venv/bin/ruff format

src/manage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

src/venue/application/talk_question_creation_command.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class TalkQuestionCreationCommand:
8-
98
def __init__(
109
self,
1110
*,

src/venue/application/talk_rating_creation_command.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class TalkRatingCreationCommand:
10-
1110
def __init__(
1211
self,
1312
*,

src/venue/domain/visitor_context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class VisitorContext:
5-
65
def __init__(self):
76
self.__contextvar = ContextVar[str]("visitor", default=None)
87

src/venue/domain/visitor_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class VisitorService(ABC):
7-
87
@abstractmethod
98
def get_or_create(self) -> Visitor:
109
pass

src/venue/infrastructure/django_request_context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class DjangoRequestContext:
7-
87
def __init__(self):
98
self.__contextvar = ContextVar[HttpRequest]("django_request", default=None)
109

src/venue/infrastructure/django_visitor_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class DjangoVisitorService(VisitorService):
10-
1110
def __init__(
1211
self, *, visitor_context: VisitorContext, visitor_manager: BaseManager[Visitor]
1312
):

src/venue/infrastructure/django_visitor_talk_rating_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class DjangoVisitorTalkRatingService(VisitorTalkRatingService):
6-
76
def __init__(self, *, django_request_context: DjangoRequestContext):
87
self.__django_request_context = django_request_context
98
super().__init__()

src/venue_django/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from django.core.wsgi import get_wsgi_application
66
from django.urls import get_resolver
77

8-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'venue_django.settings')
8+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "venue_django.settings")
99

1010
application = get_wsgi_application()
1111
get_resolver().url_patterns

0 commit comments

Comments
 (0)