Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
a-bentofreire committed Oct 16, 2024
1 parent 7957433 commit 28c2893
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pytracetoix/pytracetoix.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
_enabled = True


def init__(stream: Any = None, multithreading: bool = False, format: Format = DEFAULT_FORMAT, enabled = True):
def init__(stream: Any = None,
multithreading: bool = False,
format: Format = DEFAULT_FORMAT,
enabled=True):
"""
Initializes global settings of the tracing tool.
Expand All @@ -50,7 +53,7 @@ def init__(stream: Any = None, multithreading: bool = False, format: Format = DE
format (Format, optional):
Format dictionary.
Defaults to DEFAULT_FORMAT.
enabled (bool)
enabled (bool)
If `False`, it disables `t__`, `c__` and `d__`.
Defaults to `true`.
"""
Expand Down Expand Up @@ -259,7 +262,8 @@ def replace_macro(format, key, value):
data['meta__'] += ['output__']
data['output__'] = output
if before is None or before(data):
_stream.write(data['output__'] + ('\n' if format.get('new_line') or True else ''))
_stream.write(data['output__']
+ ('\n' if format.get('new_line') or True else ''))
_stream.flush()
else:
data['allow__'] = False
Expand Down

0 comments on commit 28c2893

Please sign in to comment.