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

Commit 15964e9

Browse files
authored
Make black happy (#2931)
1 parent c9c25b9 commit 15964e9

File tree

6 files changed

+2
-5
lines changed

6 files changed

+2
-5
lines changed

src/dispatch/database/revisions/core/env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def run_migrations_online():
3636
and associate a connection with the context.
3737
3838
"""
39+
3940
# don't create empty revisions
4041
def process_revision_directives(context, revision, directives):
4142
script = directives[0]

src/dispatch/database/service.py

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

5252

5353
class Operator(object):
54-
5554
OPERATORS = {
5655
"is_null": lambda f: f.is_(None),
5756
"is_not_null": lambda f: f.isnot(None),

src/dispatch/incident/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def make_forecast(incidents: List[Incident]):
6262

6363
dataframe_dict = {"ds": [], "y": []}
6464

65-
for (last_day, items) in groupby(incidents_sorted, month_grouper):
65+
for last_day, items in groupby(incidents_sorted, month_grouper):
6666
dataframe_dict["ds"].append(str(last_day))
6767
dataframe_dict["y"].append(len(list(items)))
6868

src/dispatch/plugins/dispatch_slack/bolt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def app_error_handler(
4343
logger: logging.Logger,
4444
respond: Respond,
4545
) -> BoltResponse:
46-
4746
if body:
4847
logger.info(f"Request body: {body}")
4948

src/dispatch/tag/recommender.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def find_correlations(dataframe, tag):
111111

112112
# Loop through all column at the row with the tag as its index
113113
for i, corr in enumerate(dataframe.loc[tag, :]):
114-
115114
# Find the column
116115
col = dataframe.columns[i]
117116

tests/factories.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,6 @@ class Meta:
698698
model = Case
699699

700700
class Params:
701-
702701
status = "New"
703702

704703

0 commit comments

Comments
 (0)