Skip to content

Commit

Permalink
chore(deps): update dependency ruff to v0.1.13 (#334)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
  • Loading branch information
renovate[bot] and xoxys authored Jan 15, 2024
1 parent dd757bf commit 535656b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions gitbatch/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def filter(self, logRecord): # noqa
class MultilineFormatter(logging.Formatter):
"""Logging Formatter to reset color after newline characters."""

def format(self, record): # noqa
def format(self, record):
record.msg = record.msg.replace("\n", f"\n{colorama.Style.RESET_ALL}... ")
return logging.Formatter.format(self, record)


class MultilineJsonFormatter(jsonlogger.JsonFormatter):
"""Logging Formatter to remove newline characters."""

def format(self, record): # noqa
def format(self, record):
record.msg = record.msg.replace("\n", " ")
return jsonlogger.JsonFormatter.format(self, record)

Expand Down
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ python-json-logger = "2.0.7"
git-batch = "gitbatch.cli:main"

[tool.poetry.group.dev.dependencies]
ruff = "0.1.11"
ruff = "0.1.13"
pytest = "7.4.4"
pytest-mock = "3.12.0"
pytest-cov = "4.1.0"
Expand Down

0 comments on commit 535656b

Please sign in to comment.