From 165def85dfe0d5b632465c8579ab159a2394dee0 Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Wed, 11 Dec 2024 19:25:43 +0100 Subject: [PATCH 1/2] Set 'allow-panic-in-tests = true' in the Rust Clippy config --- earthly/rust/stdcfgs/clippy.toml | 1 + examples/rust/clippy.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/earthly/rust/stdcfgs/clippy.toml b/earthly/rust/stdcfgs/clippy.toml index 0358cdb50..7bada5473 100644 --- a/earthly/rust/stdcfgs/clippy.toml +++ b/earthly/rust/stdcfgs/clippy.toml @@ -1,2 +1,3 @@ allow-unwrap-in-tests = true allow-expect-in-tests = true +allow-panic-in-tests = true diff --git a/examples/rust/clippy.toml b/examples/rust/clippy.toml index 0358cdb50..7bada5473 100644 --- a/examples/rust/clippy.toml +++ b/examples/rust/clippy.toml @@ -1,2 +1,3 @@ allow-unwrap-in-tests = true allow-expect-in-tests = true +allow-panic-in-tests = true From 24e9d48bea92c4339d2b367e793b0baa7910607b Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Thu, 12 Dec 2024 11:44:36 +0100 Subject: [PATCH 2/2] fix(python) Set -> set --- utilities/earthly-cache-watcher/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities/earthly-cache-watcher/main.py b/utilities/earthly-cache-watcher/main.py index 66485d612..5174b26e2 100644 --- a/utilities/earthly-cache-watcher/main.py +++ b/utilities/earthly-cache-watcher/main.py @@ -5,7 +5,7 @@ import threading import time from collections.abc import Callable -from typing import Set +from typing import set from dotenv import dotenv_values from loguru import logger @@ -64,8 +64,8 @@ def __init__(self, interval: int): self.layer_growth_index: dict[str, int] = {} self.layer_index: dict[str, int] = {} self.file_index: dict[str, int] = {} - self.triggered_layers: Set[str] = set() - self.triggered_growth_layers: Set[str] = set() + self.triggered_layers: set[str] = set() + self.triggered_growth_layers: set[str] = set() self.interval = Interval(interval, self.handle_interval_change) self.list_initial_sizes()