chore(codebase) format

This commit is contained in:
Ivan
2026-04-08 03:19:38 -05:00
parent f2d97115c7
commit 96fb1a4e2f
7 changed files with 34 additions and 34 deletions

View File

@@ -1,15 +1,15 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10
versioning-strategy: increase-if-necessary
groups:
electron:
patterns:
- electron
- electron-*
- "@electron/*"
- "@electron-forge/*"
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10
versioning-strategy: increase-if-necessary
groups:
electron:
patterns:
- electron
- electron-*
- "@electron/*"
- "@electron-forge/*"

View File

@@ -171,7 +171,9 @@ class NomadnetDownloader:
timeout_after_seconds = time.time() + link_establishment_timeout
while link.status is not RNS.Link.ACTIVE and time.time() < timeout_after_seconds:
while (
link.status is not RNS.Link.ACTIVE and time.time() < timeout_after_seconds
):
if self.is_cancelled:
return
await asyncio.sleep(_POLL_INTERVAL_S)
@@ -291,7 +293,11 @@ class NomadnetFileDownloader(NomadnetDownloader):
self.on_file_download_success(file_name, file_data)
return
if isinstance(response, list) and len(response) > 1 and isinstance(response[1], dict):
if (
isinstance(response, list)
and len(response) > 1
and isinstance(response[1], dict)
):
file_data: bytes = response[0]
metadata: dict = response[1]

View File

@@ -281,7 +281,9 @@ class RNStatusHandler:
ifstat["outgoing_announce_frequency"]
)
if "held_announces" in ifstat:
formatted_if["held_announces"] = fmt_packet_count(ifstat["held_announces"])
formatted_if["held_announces"] = fmt_packet_count(
ifstat["held_announces"]
)
if "ifac_netname" in ifstat and ifstat["ifac_netname"] is not None:
formatted_if["network_name"] = ifstat["ifac_netname"]

View File

@@ -451,11 +451,7 @@ export default {
return this.popoutRouteType === "nomad";
},
navbarPageStats() {
if (
this.lastPageLoadDurationMs == null ||
this.lastPageContentBytes == null ||
!this.selectedNodePath
) {
if (this.lastPageLoadDurationMs == null || this.lastPageContentBytes == null || !this.selectedNodePath) {
return null;
}
return {

View File

@@ -31,9 +31,7 @@
/>
Refresh
</button>
<label
class="secondary-chip inline-flex cursor-pointer items-center gap-2 px-4 py-2 text-sm"
>
<label class="secondary-chip inline-flex cursor-pointer items-center gap-2 px-4 py-2 text-sm">
<input v-model="includeLinkStats" type="checkbox" class="rounded" />
<span>Include Link Stats</span>
</label>
@@ -55,9 +53,7 @@
v-if="linkCount !== null"
class="rounded-xl border border-blue-200/80 bg-blue-50/90 p-4 text-blue-800 dark:border-blue-800/50 dark:bg-blue-950/30 dark:text-blue-200"
>
<div class="text-sm font-semibold">
Active Links: {{ formatInt(linkCount) }}
</div>
<div class="text-sm font-semibold">Active Links: {{ formatInt(linkCount) }}</div>
</div>
<div
@@ -163,7 +159,9 @@
</div>
<div v-if="iface.clients !== undefined">
<div class="text-gray-500 dark:text-gray-400">Clients</div>
<div class="font-semibold text-gray-900 dark:text-white">{{ formatInt(iface.clients) }}</div>
<div class="font-semibold text-gray-900 dark:text-white">
{{ formatInt(iface.clients) }}
</div>
</div>
<div v-if="iface.peers !== undefined">
<div class="text-gray-500 dark:text-gray-400">Peers</div>

View File

@@ -95,11 +95,7 @@ try {
let spawnCmd = cmd;
let spawnArgs = args;
const rosettaX64 =
isDarwin &&
arch === "x64" &&
process.arch === "arm64" &&
!process.env.PYTHON_CMD;
const rosettaX64 = isDarwin && arch === "x64" && process.arch === "arm64" && !process.env.PYTHON_CMD;
if (rosettaX64) {
spawnCmd = "arch";
spawnArgs = ["-x86_64", cmd, ...args];

View File

@@ -119,7 +119,9 @@ async def test_download_uses_path_wait_cache_hit(downloader):
patch.object(RNS.Transport, "request_path"),
):
with patch.object(downloader, "link_established") as mock_established:
await downloader.download(path_lookup_timeout=5, link_establishment_timeout=5)
await downloader.download(
path_lookup_timeout=5, link_establishment_timeout=5
)
mock_established.assert_called_once_with(mock_link)