Skip to content

Commit 7b80392

Browse files
feat(rust): Add 'allow-panic-in-tests = true' to the Clippy config (#360)
* Set 'allow-panic-in-tests = true' in the Rust Clippy config * fix(python) Set -> set
1 parent 474e2f8 commit 7b80392

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

earthly/rust/stdcfgs/clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
allow-unwrap-in-tests = true
22
allow-expect-in-tests = true
3+
allow-panic-in-tests = true

examples/rust/clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
allow-unwrap-in-tests = true
22
allow-expect-in-tests = true
3+
allow-panic-in-tests = true

utilities/earthly-cache-watcher/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import threading
66
import time
77
from collections.abc import Callable
8-
from typing import Set
8+
from typing import set
99

1010
from dotenv import dotenv_values
1111
from loguru import logger
@@ -64,8 +64,8 @@ def __init__(self, interval: int):
6464
self.layer_growth_index: dict[str, int] = {}
6565
self.layer_index: dict[str, int] = {}
6666
self.file_index: dict[str, int] = {}
67-
self.triggered_layers: Set[str] = set()
68-
self.triggered_growth_layers: Set[str] = set()
67+
self.triggered_layers: set[str] = set()
68+
self.triggered_growth_layers: set[str] = set()
6969
self.interval = Interval(interval, self.handle_interval_change)
7070

7171
self.list_initial_sizes()

0 commit comments

Comments
 (0)