Skip to content

Commit

Permalink
feat(rust): Add 'allow-panic-in-tests = true' to the Clippy config (#360
Browse files Browse the repository at this point in the history
)

* Set 'allow-panic-in-tests = true' in the Rust Clippy config

* fix(python) Set -> set
  • Loading branch information
stanislav-tkach authored Dec 12, 2024
1 parent 474e2f8 commit 7b80392
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions earthly/rust/stdcfgs/clippy.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
1 change: 1 addition & 0 deletions examples/rust/clippy.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
6 changes: 3 additions & 3 deletions utilities/earthly-cache-watcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7b80392

Please sign in to comment.