From d847968fab7dc55b30f8a137dbce2bae07112c82 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 17 Jun 2025 09:09:55 +0200 Subject: chore(treewide): Assure that `nix fmt` and `reuse lint` are happy --- crates/yt/src/update/updater.rs | 3 ++- crates/yt_dlp/src/info_json.rs | 10 ++++++++++ crates/yt_dlp/src/options.rs | 10 ++++++++++ crates/yt_dlp/src/post_processors/mod.rs | 3 ++- crates/yt_dlp/src/python_error.rs | 10 ++++++++++ 5 files changed, 34 insertions(+), 2 deletions(-) diff --git a/crates/yt/src/update/updater.rs b/crates/yt/src/update/updater.rs index 27fda4e..75d12dc 100644 --- a/crates/yt/src/update/updater.rs +++ b/crates/yt/src/update/updater.rs @@ -20,7 +20,8 @@ use log::{Level, debug, error, log_enabled}; use serde_json::json; use tokio_util::task::LocalPoolHandle; use yt_dlp::{ - info_json::InfoJson, json_cast, json_get, options::YoutubeDLOptions, process_ie_result, python_error::PythonError, + info_json::InfoJson, json_cast, json_get, options::YoutubeDLOptions, process_ie_result, + python_error::PythonError, }; use crate::{ diff --git a/crates/yt_dlp/src/info_json.rs b/crates/yt_dlp/src/info_json.rs index db4616d..31f4a69 100644 --- a/crates/yt_dlp/src/info_json.rs +++ b/crates/yt_dlp/src/info_json.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use rustpython::vm::{ PyRef, VirtualMachine, builtins::{PyDict, PyStr}, diff --git a/crates/yt_dlp/src/options.rs b/crates/yt_dlp/src/options.rs index 34612ac..182b8a1 100644 --- a/crates/yt_dlp/src/options.rs +++ b/crates/yt_dlp/src/options.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::env; use indexmap::IndexMap; diff --git a/crates/yt_dlp/src/post_processors/mod.rs b/crates/yt_dlp/src/post_processors/mod.rs index 575dc45..00b0ad5 100644 --- a/crates/yt_dlp/src/post_processors/mod.rs +++ b/crates/yt_dlp/src/post_processors/mod.rs @@ -109,7 +109,8 @@ class {}(yt_dlp.postprocessor.PostProcessor): inst = {}() ", $name, $name - ).as_str(), + ) + .as_str(), "".to_owned(), )?; diff --git a/crates/yt_dlp/src/python_error.rs b/crates/yt_dlp/src/python_error.rs index d1d5b2e..9513956 100644 --- a/crates/yt_dlp/src/python_error.rs +++ b/crates/yt_dlp/src/python_error.rs @@ -1,3 +1,13 @@ +// yt - A fully featured command line YouTube client +// +// Copyright (C) 2025 Benedikt Peetz +// SPDX-License-Identifier: GPL-3.0-or-later +// +// This file is part of Yt. +// +// You should have received a copy of the License along with this program. +// If not, see . + use std::fmt::Display; use log::{Level, debug, log_enabled}; -- cgit 1.4.1