Skip to content

Commit ef59fca

Browse files
authored
Merge pull request #2832 from IntersectMBO/pre_commit_update2
chore: update pre-commit hooks
2 parents 53056b6 + 628b11b commit ef59fca

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: debug-statements
1515
language_version: python3
1616
- repo: https://github.com/charliermarsh/ruff-pre-commit
17-
rev: v0.7.3
17+
rev: v0.8.3
1818
hooks:
1919
- id: ruff
2020
args: [ --fix ]
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: shellcheck
2626
- repo: https://github.com/igorshubovych/markdownlint-cli
27-
rev: v0.42.0
27+
rev: v0.43.0
2828
hooks:
2929
- id: markdownlint
3030
- repo: https://github.com/rstcheck/rstcheck

cardano_node_tests/cluster_management/manager.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ def log(self, msg: str) -> None:
100100
if not configuration.SCHEDULING_LOG:
101101
return
102102

103-
with locking.FileLockIfXdist(self.log_lock), open(
104-
configuration.SCHEDULING_LOG, "a", encoding="utf-8"
105-
) as logfile:
103+
with (
104+
locking.FileLockIfXdist(self.log_lock),
105+
open(configuration.SCHEDULING_LOG, "a", encoding="utf-8") as logfile,
106+
):
106107
logfile.write(
107108
f"{datetime.datetime.now(tz=datetime.timezone.utc)} on {self.worker_id}: {msg}\n"
108109
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ line-length = 100
8585

8686
[tool.ruff.lint]
8787
select = ["ARG", "B", "C4", "C90", "D", "DTZ", "E", "EM", "F", "I001", "ISC", "N", "PIE", "PL", "PLE", "PLR", "PLW", "PT", "PTH", "Q", "RET", "RSE", "RUF", "SIM", "TRY", "UP", "W", "YTT"]
88-
ignore = ["B905", "D10", "D203", "D212", "D213", "D214", "D215", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D413", "ISC001", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PT001", "PT004", "PT007", "PT012", "PT018", "PT023", "PTH123", "RET504", "TRY002", "TRY301", "UP006", "UP007", "UP035"]
88+
ignore = ["B905", "D10", "D203", "D212", "D213", "D214", "D215", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D413", "ISC001", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PT001", "PT007", "PT012", "PT018", "PT023", "PTH123", "RET504", "TRY002", "TRY301", "UP006", "UP007", "UP035"]
8989

9090
[tool.ruff.lint.per-file-ignores]
9191
"cardano_node_tests/utils/model_ekg.py" = ["N815"]

0 commit comments

Comments
 (0)