Skip to content

Commit

Permalink
Make black happy (#2931)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss authored Feb 1, 2023
1 parent c9c25b9 commit 15964e9
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/dispatch/database/revisions/core/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def run_migrations_online():
and associate a connection with the context.
"""

# don't create empty revisions
def process_revision_directives(context, revision, directives):
script = directives[0]
Expand Down
1 change: 0 additions & 1 deletion src/dispatch/database/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@


class Operator(object):

OPERATORS = {
"is_null": lambda f: f.is_(None),
"is_not_null": lambda f: f.isnot(None),
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/incident/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def make_forecast(incidents: List[Incident]):

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

for (last_day, items) in groupby(incidents_sorted, month_grouper):
for last_day, items in groupby(incidents_sorted, month_grouper):
dataframe_dict["ds"].append(str(last_day))
dataframe_dict["y"].append(len(list(items)))

Expand Down
1 change: 0 additions & 1 deletion src/dispatch/plugins/dispatch_slack/bolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def app_error_handler(
logger: logging.Logger,
respond: Respond,
) -> BoltResponse:

if body:
logger.info(f"Request body: {body}")

Expand Down
1 change: 0 additions & 1 deletion src/dispatch/tag/recommender.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def find_correlations(dataframe, tag):

# Loop through all column at the row with the tag as its index
for i, corr in enumerate(dataframe.loc[tag, :]):

# Find the column
col = dataframe.columns[i]

Expand Down
1 change: 0 additions & 1 deletion tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ class Meta:
model = Case

class Params:

status = "New"


Expand Down

0 comments on commit 15964e9

Please sign in to comment.