Skip to content

Commit

Permalink
Merge pull request #358 from neutrinoceros/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
neutrinoceros authored Jul 1, 2024
2 parents 25aaf71 + 4996508 commit 6eb6267
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: no-commit-to-branch
- id: debug-statements
Expand All @@ -14,7 +14,7 @@ repos:
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
rev: v0.5.0
hooks:
- id: ruff-format
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion src/idefix_cli/_backports.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __new__(cls, *values):
if len(values) == 3:
# check that errors argument is a string
if not isinstance(values[2], str):
raise TypeError("errors must be a string, not %r" % (values[2]))
raise TypeError(f"errors must be a string, not {values[2]!r}")
value = str(*values)
member = str.__new__(cls, value)
member._value_ = value
Expand Down
2 changes: 1 addition & 1 deletion src/idefix_cli/_commands/digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _log_to_data(log: list[str]):


def _data_to_json(header: str, data: dict[str, list[str]]) -> str:
res: list[str] = ['"%s": {' % header]
res: list[str] = [f'"{header}": {{']
ncolumns = len(data)
for icol, (name, record) in enumerate(data.items()):
if icol < ncolumns - 1:
Expand Down

0 comments on commit 6eb6267

Please sign in to comment.