Skip to content

Commit 263d804

Browse files
committed
update ruff and explicitly mark some unused variables as such
1 parent 5f54c36 commit 263d804

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.12.11
5+
rev: v0.13.2
66
hooks:
77
- id: ruff-check
88
- id: ruff-format
99
- repo: https://github.com/pre-commit/mirrors-mypy
10-
rev: v1.17.1
10+
rev: v1.18.2
1111
hooks:
1212
- id: mypy
1313
additional_dependencies: [types-requests]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dev = [
7070
"pre-commit>=4.1.0",
7171
"pytest-cov>=6.0.0",
7272
"pytest-xdist>=3.6.1",
73-
"ruff>=0.12.0",
73+
"ruff>=0.13.2",
7474
"types-requests>=2.32.0.20241016",
7575
]
7676
docs = [
@@ -130,4 +130,4 @@ extend-select = [
130130
known-first-party = ["cchdo"]
131131

132132
[tool.uv]
133-
default-groups = ["dev", "docs"]
133+
default-groups = ["dev", "docs"]

src/cchdo/hydro/__main_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def p_file(file_m):
8181

8282

8383
def p_file_cf(file_m):
84-
t_dir, file, file_metadata = file_m
84+
_t_dir, file, file_metadata = file_m
8585

8686
warnings.simplefilter("ignore")
8787

src/cchdo/hydro/exchange/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _transform_whp_to_csv(params: list[str], units: list[str]) -> list[str]:
120120
for index, (param, unit) in enumerate(pairs):
121121
next_idx = index + 1
122122
try:
123-
next_param, next_unit = pairs[next_idx]
123+
next_param, _next_unit = pairs[next_idx]
124124
except IndexError:
125125
continue
126126

0 commit comments

Comments
 (0)