Skip to content

Commit a0a6e7e

Browse files
Format
1 parent 70dab40 commit a0a6e7e

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

config.py

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,13 @@ def _setup_auto_add_committee_to_threads(cls) -> None:
757757

758758
@classmethod
759759
def _setup_committee_actions_reminders(cls) -> None:
760-
raw_committee_actions_reminders: str = str(
761-
os.getenv("COMMITTEE_ACTIONS_REMINDERS", "True"),
762-
).strip().lower()
760+
raw_committee_actions_reminders: str = (
761+
str(
762+
os.getenv("COMMITTEE_ACTIONS_REMINDERS", "True"),
763+
)
764+
.strip()
765+
.lower()
766+
)
763767

764768
if raw_committee_actions_reminders not in TRUE_VALUES | FALSE_VALUES:
765769
INVALID_COMMITTEE_ACTIONS_REMINDERS_MESSAGE: Final[str] = (
@@ -773,17 +777,17 @@ def _setup_committee_actions_reminders(cls) -> None:
773777

774778
@classmethod
775779
def _setup_committee_actions_board(cls) -> None:
776-
raw_committee_actions_board: str = os.getenv("COMMITTEE_ACTIONS_BOARD", "True").strip().lower()
780+
raw_committee_actions_board: str = (
781+
os.getenv("COMMITTEE_ACTIONS_BOARD", "True").strip().lower()
782+
)
777783

778784
if raw_committee_actions_board not in TRUE_VALUES | FALSE_VALUES:
779785
INVALID_COMMITTEE_ACTIONS_BOARD_MESSAGE: Final[str] = (
780786
"COMMITTEE_ACTIONS_BOARD must be a boolean value."
781787
)
782788
raise ImproperlyConfiguredError(INVALID_COMMITTEE_ACTIONS_BOARD_MESSAGE)
783789

784-
cls._settings["COMMITTEE_ACTIONS_BOARD"] = (
785-
raw_committee_actions_board in TRUE_VALUES
786-
)
790+
cls._settings["COMMITTEE_ACTIONS_BOARD"] = raw_committee_actions_board in TRUE_VALUES
787791

788792
@classmethod
789793
def _setup_committee_actions_board_channel(cls) -> None:
@@ -799,17 +803,19 @@ def _setup_committee_actions_board_channel(cls) -> None:
799803
" of a channel in your group's Discord guild."
800804
)
801805

802-
raw_committee_actions_board_channel: str = os.getenv(
803-
"COMMITTEE_ACTIONS_BOARD_CHANNEL",
804-
"actions-board",
805-
).strip().lower()
806+
raw_committee_actions_board_channel: str = (
807+
os.getenv(
808+
"COMMITTEE_ACTIONS_BOARD_CHANNEL",
809+
"actions-board",
810+
)
811+
.strip()
812+
.lower()
813+
)
806814

807815
if not raw_committee_actions_board_channel:
808816
raise ImproperlyConfiguredError(INVALID_COMMITTEE_ACTIONS_BOARD_CHANNEL_MESSAGE)
809817

810-
cls._settings["COMMITTEE_ACTIONS_BOARD_CHANNEL"] = (
811-
raw_committee_actions_board_channel
812-
)
818+
cls._settings["COMMITTEE_ACTIONS_BOARD_CHANNEL"] = raw_committee_actions_board_channel
813819

814820
@classmethod
815821
def _setup_committee_actions_reminders_interval(cls) -> None:

0 commit comments

Comments
 (0)