Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel May committed Oct 28, 2021
1 parent 006622a commit 8a4c513
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/dbt/events/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ def fire_event(e: Event) -> None:
elif e.level_tag() == 'error':
logger.GLOBAL_LOGGER.error(logger.timestamped_line(e.cli_msg()))
else:
raise AssertionError(f"Event type {type(e).__name__} has unhandled level: {e.level_tag()}")
raise AssertionError(
f"Event type {type(e).__name__} has unhandled level: {e.level_tag()}"
)
2 changes: 1 addition & 1 deletion core/dbt/events/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
import dbt


# types to represent log levels
Expand Down Expand Up @@ -101,6 +100,7 @@ def cli_msg(self) -> str:
@dataclass
class ReportPerformancePath(InfoLevel, CliEventABC):
path: str

def cli_msg(self) -> str:
return f"Performance info: {self.path}"

Expand Down
2 changes: 1 addition & 1 deletion core/dbt/task/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from dbt.parser.manifest import (
Manifest, ManifestLoader, _check_manifest
)
from dbt.logger import DbtProcessState, print_timestamped_line
from dbt.logger import DbtProcessState
from dbt.clients.system import write_file
from dbt.events.types import (
ManifestDependenciesLoaded, ManifestLoaderCreated, ManifestLoaded, ManifestChecked,
Expand Down

0 comments on commit 8a4c513

Please sign in to comment.