Skip to content

Commit 55bbcd5

Browse files
committed
Fix pre-commit
1 parent 1ff0e22 commit 55bbcd5

File tree

6 files changed

+7
-14
lines changed

6 files changed

+7
-14
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
files: "envs/requirements*.txt"
2525
- id: trailing-whitespace
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.11.8
27+
rev: v0.11.10
2828
hooks:
2929
# run the linter
3030
- id: ruff

.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ disable=arguments-renamed,
5858
logging-fstring-interpolation,
5959
no-member,
6060
not-callable,
61+
redefined-outer-name,
6162
too-few-public-methods,
6263
too-many-arguments,
6364
too-many-branches,
@@ -181,7 +182,7 @@ generated-members=
181182
[FORMAT]
182183

183184
# Maximum number of characters on a single line.
184-
max-line-length=120
185+
max-line-length=150
185186

186187
# Regexp for a line that is allowed to be longer than the limit.
187188
ignore-long-lines=(?x)(

cinema/examples/inference/landmark_heatmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ def run(view: str, seed: int, device: torch.device, dtype: torch.dtype) -> None:
114114
dtype = torch.bfloat16
115115

116116
for view in ["lax_2c", "lax_4c"]:
117-
for seed in range(3):
118-
run(view, seed, device, dtype)
117+
for seed_idx in range(3):
118+
run(view, seed_idx, device, dtype)

cinema/examples/inference/mae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run(device: torch.device, dtype: torch.dtype) -> None:
6262
_, pred_dict, enc_mask_dict, _ = model(batch, enc_mask_ratio=0.75)
6363

6464
# visualize
65-
f, axs = plt.subplots(6, 4, figsize=(12, 18))
65+
_, axs = plt.subplots(6, 4, figsize=(12, 18))
6666
for i, view in enumerate(["lax_2c", "lax_3c", "lax_4c", "sax"]):
6767
patches = patchify(image=batch[view], patch_size=model.dec_patch_size_dict[view])
6868
patches[enc_mask_dict[view]] = pred_dict[view]

cinema/examples/inference/segmentation_lax_4c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def plot_segmentations(images: np.ndarray, labels: np.ndarray, n_cols: int = 5)
5454
"""
5555
n_frames = labels.shape[-1]
5656
n_rows = n_frames // n_cols
57-
fig, axs = plt.subplots(n_rows, n_cols, figsize=(n_cols, n_rows))
57+
fig, axs = plt.subplots(n_rows, n_cols, figsize=(n_cols, n_rows), dpi=300)
5858
for i in range(n_rows):
5959
for j in range(n_cols):
6060
t = i * n_cols + j

examples/test_scripts.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)