Turn off clippy::struct_excessive_bools rule (#14102)
Some checks are pending
CI / cargo clippy | windows (push) Blocked by required conditions
CI / cargo dev generate-all (push) Blocked by required conditions
CI / cargo shear (push) Waiting to run
CI / cargo test | ubuntu (push) Blocked by required conditions
CI / cargo test | macos (push) Blocked by required conditions
CI / cargo test | windows (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / lint (push) Waiting to run
CI / cargo clippy | ubuntu (push) Blocked by required conditions
CI / check windows trampoline | aarch64 (push) Blocked by required conditions
CI / check windows trampoline | i686 (push) Blocked by required conditions
CI / check windows trampoline | x86_64 (push) Blocked by required conditions
CI / test windows trampoline | i686 (push) Blocked by required conditions
CI / test windows trampoline | x86_64 (push) Blocked by required conditions
CI / typos (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / build binary | linux libc (push) Blocked by required conditions
CI / build binary | linux musl (push) Blocked by required conditions
CI / build binary | macos aarch64 (push) Blocked by required conditions
CI / build binary | macos x86_64 (push) Blocked by required conditions
CI / build binary | windows x86_64 (push) Blocked by required conditions
CI / build binary | windows aarch64 (push) Blocked by required conditions
CI / cargo build (msrv) (push) Blocked by required conditions
CI / build binary | freebsd (push) Blocked by required conditions
CI / ecosystem test | pydantic/pydantic-core (push) Blocked by required conditions
CI / ecosystem test | prefecthq/prefect (push) Blocked by required conditions
CI / ecosystem test | pallets/flask (push) Blocked by required conditions
CI / smoke test | linux (push) Blocked by required conditions
CI / check system | alpine (push) Blocked by required conditions
CI / smoke test | macos (push) Blocked by required conditions
CI / smoke test | windows x86_64 (push) Blocked by required conditions
CI / smoke test | windows aarch64 (push) Blocked by required conditions
CI / integration test | conda on ubuntu (push) Blocked by required conditions
CI / integration test | deadsnakes python3.9 on ubuntu (push) Blocked by required conditions
CI / integration test | free-threaded on windows (push) Blocked by required conditions
CI / integration test | pypy on ubuntu (push) Blocked by required conditions
CI / integration test | pypy on windows (push) Blocked by required conditions
CI / integration test | graalpy on ubuntu (push) Blocked by required conditions
CI / integration test | graalpy on windows (push) Blocked by required conditions
CI / integration test | pyodide on ubuntu (push) Blocked by required conditions
CI / integration test | github actions (push) Blocked by required conditions
CI / integration test | free-threaded python on github actions (push) Blocked by required conditions
CI / integration test | determine publish changes (push) Blocked by required conditions
CI / integration test | uv publish (push) Blocked by required conditions
CI / integration test | uv_build (push) Blocked by required conditions
CI / check cache | ubuntu (push) Blocked by required conditions
CI / check cache | macos aarch64 (push) Blocked by required conditions
CI / check system | python on debian (push) Blocked by required conditions
CI / check system | python on fedora (push) Blocked by required conditions
CI / check system | python on ubuntu (push) Blocked by required conditions
CI / check system | python on rocky linux 8 (push) Blocked by required conditions
CI / check system | python on rocky linux 9 (push) Blocked by required conditions
CI / check system | graalpy on ubuntu (push) Blocked by required conditions
CI / check system | pypy on ubuntu (push) Blocked by required conditions
CI / check system | pyston (push) Blocked by required conditions
CI / check system | python on macos aarch64 (push) Blocked by required conditions
CI / check system | homebrew python on macos aarch64 (push) Blocked by required conditions
CI / check system | python on macos x86-64 (push) Blocked by required conditions
CI / check system | python3.10 on windows x86-64 (push) Blocked by required conditions
CI / check system | python3.10 on windows x86 (push) Blocked by required conditions
CI / check system | python3.13 on windows x86-64 (push) Blocked by required conditions
CI / check system | x86-64 python3.13 on windows aarch64 (push) Blocked by required conditions
CI / check system | windows registry (push) Blocked by required conditions
CI / check system | python3.12 via chocolatey (push) Blocked by required conditions
CI / check system | python3.9 via pyenv (push) Blocked by required conditions
CI / check system | python3.13 (push) Blocked by required conditions
CI / check system | conda3.11 on macos aarch64 (push) Blocked by required conditions
CI / check system | conda3.8 on macos aarch64 (push) Blocked by required conditions
CI / check system | conda3.11 on linux x86-64 (push) Blocked by required conditions
CI / check system | conda3.8 on linux x86-64 (push) Blocked by required conditions
CI / check system | conda3.11 on windows x86-64 (push) Blocked by required conditions
CI / check system | conda3.8 on windows x86-64 (push) Blocked by required conditions
CI / check system | amazonlinux (push) Blocked by required conditions
CI / check system | embedded python3.10 on windows x86-64 (push) Blocked by required conditions
CI / benchmarks | walltime aarch64 linux (push) Blocked by required conditions
CI / benchmarks | instrumented (push) Blocked by required conditions

We always ignore the `clippy::struct_excessive_bools` rule and formerly
annotated this at the function level. This PR specifies the allow in
`workspace.lints.clippy` in `Cargo.toml`.
This commit is contained in:
John Mumm 2025-06-17 06:18:54 -04:00 committed by GitHub
parent cf67d9c633
commit e02cd74e64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 1 additions and 90 deletions

View file

@ -214,6 +214,7 @@ missing_panics_doc = "allow"
module_name_repetitions = "allow" module_name_repetitions = "allow"
must_use_candidate = "allow" must_use_candidate = "allow"
similar_names = "allow" similar_names = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow" too_many_arguments = "allow"
too_many_lines = "allow" too_many_lines = "allow"
used_underscore_binding = "allow" used_underscore_binding = "allow"

View file

@ -13,7 +13,6 @@ pub trait CompatArgs {
/// For example, users often pass `--allow-unsafe`, which is unnecessary with uv. But it's a /// For example, users often pass `--allow-unsafe`, which is unnecessary with uv. But it's a
/// nice user experience to warn, rather than fail, when users pass `--allow-unsafe`. /// nice user experience to warn, rather than fail, when users pass `--allow-unsafe`.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipCompileCompatArgs { pub struct PipCompileCompatArgs {
#[clap(long, hide = true)] #[clap(long, hide = true)]
allow_unsafe: bool, allow_unsafe: bool,
@ -159,7 +158,6 @@ impl CompatArgs for PipCompileCompatArgs {
/// ///
/// These represent a subset of the `pip list` interface that uv supports by default. /// These represent a subset of the `pip list` interface that uv supports by default.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipListCompatArgs { pub struct PipListCompatArgs {
#[clap(long, hide = true)] #[clap(long, hide = true)]
disable_pip_version_check: bool, disable_pip_version_check: bool,
@ -184,7 +182,6 @@ impl CompatArgs for PipListCompatArgs {
/// ///
/// These represent a subset of the `pip-sync` interface that uv supports by default. /// These represent a subset of the `pip-sync` interface that uv supports by default.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipSyncCompatArgs { pub struct PipSyncCompatArgs {
#[clap(short, long, hide = true)] #[clap(short, long, hide = true)]
ask: bool, ask: bool,
@ -268,7 +265,6 @@ enum Resolver {
/// ///
/// These represent a subset of the `virtualenv` interface that uv supports by default. /// These represent a subset of the `virtualenv` interface that uv supports by default.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct VenvCompatArgs { pub struct VenvCompatArgs {
#[clap(long, hide = true)] #[clap(long, hide = true)]
clear: bool, clear: bool,
@ -327,7 +323,6 @@ impl CompatArgs for VenvCompatArgs {
/// ///
/// These represent a subset of the `pip install` interface that uv supports by default. /// These represent a subset of the `pip install` interface that uv supports by default.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipInstallCompatArgs { pub struct PipInstallCompatArgs {
#[clap(long, hide = true)] #[clap(long, hide = true)]
disable_pip_version_check: bool, disable_pip_version_check: bool,
@ -361,7 +356,6 @@ impl CompatArgs for PipInstallCompatArgs {
/// ///
/// These represent a subset of the `pip` interface that exists on all commands. /// These represent a subset of the `pip` interface that exists on all commands.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipGlobalCompatArgs { pub struct PipGlobalCompatArgs {
#[clap(long, hide = true)] #[clap(long, hide = true)]
disable_pip_version_check: bool, disable_pip_version_check: bool,

View file

@ -85,7 +85,6 @@ const STYLES: Styles = Styles::styled()
disable_version_flag = true disable_version_flag = true
)] )]
#[command(styles=STYLES)] #[command(styles=STYLES)]
#[allow(clippy::struct_excessive_bools)]
pub struct Cli { pub struct Cli {
#[command(subcommand)] #[command(subcommand)]
pub command: Box<Commands>, pub command: Box<Commands>,
@ -133,7 +132,6 @@ pub struct TopLevelArgs {
#[derive(Parser, Debug, Clone)] #[derive(Parser, Debug, Clone)]
#[command(next_help_heading = "Global options", next_display_order = 1000)] #[command(next_help_heading = "Global options", next_display_order = 1000)]
#[allow(clippy::struct_excessive_bools)]
pub struct GlobalArgs { pub struct GlobalArgs {
#[arg( #[arg(
global = true, global = true,
@ -526,7 +524,6 @@ pub struct HelpArgs {
#[derive(Args)] #[derive(Args)]
#[command(group = clap::ArgGroup::new("operation"))] #[command(group = clap::ArgGroup::new("operation"))]
#[allow(clippy::struct_excessive_bools)]
pub struct VersionArgs { pub struct VersionArgs {
/// Set the project version to this value /// Set the project version to this value
/// ///
@ -657,7 +654,6 @@ pub struct SelfUpdateArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct CacheNamespace { pub struct CacheNamespace {
#[command(subcommand)] #[command(subcommand)]
pub command: CacheCommand, pub command: CacheCommand,
@ -687,14 +683,12 @@ pub enum CacheCommand {
} }
#[derive(Args, Debug)] #[derive(Args, Debug)]
#[allow(clippy::struct_excessive_bools)]
pub struct CleanArgs { pub struct CleanArgs {
/// The packages to remove from the cache. /// The packages to remove from the cache.
pub package: Vec<PackageName>, pub package: Vec<PackageName>,
} }
#[derive(Args, Debug)] #[derive(Args, Debug)]
#[allow(clippy::struct_excessive_bools)]
pub struct PruneArgs { pub struct PruneArgs {
/// Optimize the cache for persistence in a continuous integration environment, like GitHub /// Optimize the cache for persistence in a continuous integration environment, like GitHub
/// Actions. /// Actions.
@ -714,7 +708,6 @@ pub struct PruneArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipNamespace { pub struct PipNamespace {
#[command(subcommand)] #[command(subcommand)]
pub command: PipCommand, pub command: PipCommand,
@ -1095,7 +1088,6 @@ fn parse_maybe_string(input: &str) -> Result<Maybe<String>, String> {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))] #[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
pub struct PipCompileArgs { pub struct PipCompileArgs {
/// Include all packages listed in the given `requirements.in` files. /// Include all packages listed in the given `requirements.in` files.
@ -1443,7 +1435,6 @@ pub struct PipCompileArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipSyncArgs { pub struct PipSyncArgs {
/// Include all packages listed in the given `requirements.txt` files. /// Include all packages listed in the given `requirements.txt` files.
/// ///
@ -1700,7 +1691,6 @@ pub struct PipSyncArgs {
#[derive(Args)] #[derive(Args)]
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))] #[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
#[allow(clippy::struct_excessive_bools)]
pub struct PipInstallArgs { pub struct PipInstallArgs {
/// Install all listed packages. /// Install all listed packages.
/// ///
@ -2015,7 +2005,6 @@ pub struct PipInstallArgs {
#[derive(Args)] #[derive(Args)]
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))] #[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
#[allow(clippy::struct_excessive_bools)]
pub struct PipUninstallArgs { pub struct PipUninstallArgs {
/// Uninstall all listed packages. /// Uninstall all listed packages.
#[arg(group = "sources")] #[arg(group = "sources")]
@ -2104,7 +2093,6 @@ pub struct PipUninstallArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipFreezeArgs { pub struct PipFreezeArgs {
/// Exclude any editable packages from output. /// Exclude any editable packages from output.
#[arg(long)] #[arg(long)]
@ -2159,7 +2147,6 @@ pub struct PipFreezeArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipListArgs { pub struct PipListArgs {
/// Only include editable projects. /// Only include editable projects.
#[arg(short, long)] #[arg(short, long)]
@ -2235,7 +2222,6 @@ pub struct PipListArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipCheckArgs { pub struct PipCheckArgs {
/// The Python interpreter for which packages should be checked. /// The Python interpreter for which packages should be checked.
/// ///
@ -2271,7 +2257,6 @@ pub struct PipCheckArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipShowArgs { pub struct PipShowArgs {
/// The package(s) to display. /// The package(s) to display.
pub package: Vec<PackageName>, pub package: Vec<PackageName>,
@ -2325,7 +2310,6 @@ pub struct PipShowArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PipTreeArgs { pub struct PipTreeArgs {
/// Show the version constraint(s) imposed on each package. /// Show the version constraint(s) imposed on each package.
#[arg(long)] #[arg(long)]
@ -2382,7 +2366,6 @@ pub struct PipTreeArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct BuildArgs { pub struct BuildArgs {
/// The directory from which distributions should be built, or a source /// The directory from which distributions should be built, or a source
/// distribution archive to build into a wheel. /// distribution archive to build into a wheel.
@ -2529,7 +2512,6 @@ pub struct BuildArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct VenvArgs { pub struct VenvArgs {
/// The Python interpreter to use for the virtual environment. /// The Python interpreter to use for the virtual environment.
/// ///
@ -2725,7 +2707,6 @@ pub enum AuthorFrom {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct InitArgs { pub struct InitArgs {
/// The path to use for the project/script. /// The path to use for the project/script.
/// ///
@ -2883,7 +2864,6 @@ pub struct InitArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct RunArgs { pub struct RunArgs {
/// Include optional dependencies from the specified extra name. /// Include optional dependencies from the specified extra name.
/// ///
@ -3170,7 +3150,6 @@ pub struct RunArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct SyncArgs { pub struct SyncArgs {
/// Include optional dependencies from the specified extra name. /// Include optional dependencies from the specified extra name.
/// ///
@ -3427,7 +3406,6 @@ pub struct SyncArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct LockArgs { pub struct LockArgs {
/// Check if the lockfile is up-to-date. /// Check if the lockfile is up-to-date.
/// ///
@ -3489,7 +3467,6 @@ pub struct LockArgs {
#[derive(Args)] #[derive(Args)]
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))] #[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
#[allow(clippy::struct_excessive_bools)]
pub struct AddArgs { pub struct AddArgs {
/// The packages to add, as PEP 508 requirements (e.g., `ruff==0.5.0`). /// The packages to add, as PEP 508 requirements (e.g., `ruff==0.5.0`).
#[arg(group = "sources")] #[arg(group = "sources")]
@ -3674,7 +3651,6 @@ pub struct AddArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct RemoveArgs { pub struct RemoveArgs {
/// The names of the dependencies to remove (e.g., `ruff`). /// The names of the dependencies to remove (e.g., `ruff`).
#[arg(required = true)] #[arg(required = true)]
@ -3769,7 +3745,6 @@ pub struct RemoveArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct TreeArgs { pub struct TreeArgs {
/// Show a platform-independent dependency tree. /// Show a platform-independent dependency tree.
/// ///
@ -3909,7 +3884,6 @@ pub struct TreeArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ExportArgs { pub struct ExportArgs {
/// The format to which `uv.lock` should be exported. /// The format to which `uv.lock` should be exported.
/// ///
@ -4124,7 +4098,6 @@ pub struct ExportArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolNamespace { pub struct ToolNamespace {
#[command(subcommand)] #[command(subcommand)]
pub command: ToolCommand, pub command: ToolCommand,
@ -4217,7 +4190,6 @@ pub enum ToolCommand {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolRunArgs { pub struct ToolRunArgs {
/// The command to run. /// The command to run.
/// ///
@ -4336,7 +4308,6 @@ pub struct UvxArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolInstallArgs { pub struct ToolInstallArgs {
/// The package to install commands from. /// The package to install commands from.
pub package: String, pub package: String,
@ -4425,7 +4396,6 @@ pub struct ToolInstallArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolListArgs { pub struct ToolListArgs {
/// Whether to display the path to each tool environment and installed executable. /// Whether to display the path to each tool environment and installed executable.
#[arg(long)] #[arg(long)]
@ -4452,7 +4422,6 @@ pub struct ToolListArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolDirArgs { pub struct ToolDirArgs {
/// Show the directory into which `uv tool` will install executables. /// Show the directory into which `uv tool` will install executables.
/// ///
@ -4471,7 +4440,6 @@ pub struct ToolDirArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolUninstallArgs { pub struct ToolUninstallArgs {
/// The name of the tool to uninstall. /// The name of the tool to uninstall.
#[arg(required = true)] #[arg(required = true)]
@ -4483,7 +4451,6 @@ pub struct ToolUninstallArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolUpgradeArgs { pub struct ToolUpgradeArgs {
/// The name of the tool to upgrade, along with an optional version specifier. /// The name of the tool to upgrade, along with an optional version specifier.
#[arg(required = true)] #[arg(required = true)]
@ -4713,7 +4680,6 @@ pub struct ToolUpgradeArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PythonNamespace { pub struct PythonNamespace {
#[command(subcommand)] #[command(subcommand)]
pub command: PythonCommand, pub command: PythonCommand,
@ -4793,7 +4759,6 @@ pub enum PythonCommand {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PythonListArgs { pub struct PythonListArgs {
/// A Python request to filter by. /// A Python request to filter by.
/// ///
@ -4848,7 +4813,6 @@ pub struct PythonListArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PythonDirArgs { pub struct PythonDirArgs {
/// Show the directory into which `uv python` will install Python executables. /// Show the directory into which `uv python` will install Python executables.
/// ///
@ -4866,7 +4830,6 @@ pub struct PythonDirArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PythonInstallArgs { pub struct PythonInstallArgs {
/// The directory to store the Python installation in. /// The directory to store the Python installation in.
/// ///
@ -4945,7 +4908,6 @@ pub struct PythonInstallArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PythonUninstallArgs { pub struct PythonUninstallArgs {
/// The directory where the Python was installed. /// The directory where the Python was installed.
#[arg(long, short, env = EnvVars::UV_PYTHON_INSTALL_DIR)] #[arg(long, short, env = EnvVars::UV_PYTHON_INSTALL_DIR)]
@ -4963,7 +4925,6 @@ pub struct PythonUninstallArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PythonFindArgs { pub struct PythonFindArgs {
/// The Python request. /// The Python request.
/// ///
@ -5012,7 +4973,6 @@ pub struct PythonFindArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct PythonPinArgs { pub struct PythonPinArgs {
/// The Python version request. /// The Python version request.
/// ///
@ -5061,7 +5021,6 @@ pub struct PythonPinArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct GenerateShellCompletionArgs { pub struct GenerateShellCompletionArgs {
/// The shell to generate the completion script for /// The shell to generate the completion script for
pub shell: clap_complete_command::Shell, pub shell: clap_complete_command::Shell,
@ -5100,7 +5059,6 @@ pub struct GenerateShellCompletionArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct IndexArgs { pub struct IndexArgs {
/// The URLs to use when resolving dependencies, in addition to the default index. /// The URLs to use when resolving dependencies, in addition to the default index.
/// ///
@ -5175,7 +5133,6 @@ pub struct IndexArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct RefreshArgs { pub struct RefreshArgs {
/// Refresh all cached data. /// Refresh all cached data.
#[arg( #[arg(
@ -5201,7 +5158,6 @@ pub struct RefreshArgs {
} }
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct BuildOptionsArgs { pub struct BuildOptionsArgs {
/// Don't build source distributions. /// Don't build source distributions.
/// ///
@ -5257,7 +5213,6 @@ pub struct BuildOptionsArgs {
/// Arguments that are used by commands that need to install (but not resolve) packages. /// Arguments that are used by commands that need to install (but not resolve) packages.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct InstallerArgs { pub struct InstallerArgs {
#[command(flatten)] #[command(flatten)]
pub index_args: IndexArgs, pub index_args: IndexArgs,
@ -5399,7 +5354,6 @@ pub struct InstallerArgs {
/// Arguments that are used by commands that need to resolve (but not install) packages. /// Arguments that are used by commands that need to resolve (but not install) packages.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ResolverArgs { pub struct ResolverArgs {
#[command(flatten)] #[command(flatten)]
pub index_args: IndexArgs, pub index_args: IndexArgs,
@ -5566,7 +5520,6 @@ pub struct ResolverArgs {
/// Arguments that are used by commands that need to resolve and install packages. /// Arguments that are used by commands that need to resolve and install packages.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ResolverInstallerArgs { pub struct ResolverInstallerArgs {
#[command(flatten)] #[command(flatten)]
pub index_args: IndexArgs, pub index_args: IndexArgs,
@ -5783,7 +5736,6 @@ pub struct ResolverInstallerArgs {
/// Arguments that are used by commands that need to fetch from the Simple API. /// Arguments that are used by commands that need to fetch from the Simple API.
#[derive(Args)] #[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct FetchArgs { pub struct FetchArgs {
#[command(flatten)] #[command(flatten)]
pub index_args: IndexArgs, pub index_args: IndexArgs,

View file

@ -21,7 +21,6 @@ use crate::rkyvutil::OwnedArchive;
rkyv::Serialize, rkyv::Serialize,
)] )]
#[rkyv(derive(Debug))] #[rkyv(derive(Debug))]
#[allow(clippy::struct_excessive_bools)]
pub struct CacheControl { pub struct CacheControl {
// directives for requests and responses // directives for requests and responses
/// * <https://www.rfc-editor.org/rfc/rfc9111.html#name-max-age> /// * <https://www.rfc-editor.org/rfc/rfc9111.html#name-max-age>

View file

@ -32,7 +32,6 @@ pub struct VirtualEnvironment {
/// A parsed `pyvenv.cfg` /// A parsed `pyvenv.cfg`
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
#[allow(clippy::struct_excessive_bools)]
pub struct PyVenvConfiguration { pub struct PyVenvConfiguration {
/// Was the virtual environment created with the `virtualenv` package? /// Was the virtual environment created with the `virtualenv` package?
pub(crate) virtualenv: bool, pub(crate) virtualenv: bool,

View file

@ -14,7 +14,6 @@ use crate::{ResolverEnvironment, ResolverOutput};
/// A [`std::fmt::Display`] implementation for the resolution graph. /// A [`std::fmt::Display`] implementation for the resolution graph.
#[derive(Debug)] #[derive(Debug)]
#[allow(clippy::struct_excessive_bools)]
pub struct DisplayResolutionGraph<'a> { pub struct DisplayResolutionGraph<'a> {
/// The underlying graph. /// The underlying graph.
resolution: &'a ResolverOutput, resolution: &'a ResolverOutput,

View file

@ -345,7 +345,6 @@ struct VersionMapEager {
/// avoiding another conversion step into a fully filled out `VersionMap` can /// avoiding another conversion step into a fully filled out `VersionMap` can
/// provide substantial savings in some cases. /// provide substantial savings in some cases.
#[derive(Debug)] #[derive(Debug)]
#[allow(clippy::struct_excessive_bools)]
struct VersionMapLazy { struct VersionMapLazy {
/// A map from version to possibly-initialized distribution. /// A map from version to possibly-initialized distribution.
map: BTreeMap<Version, LazyPrioritizedDist>, map: BTreeMap<Version, LazyPrioritizedDist>,

View file

@ -54,7 +54,6 @@ use crate::commands::{InitKind, InitProjectKind, pip::operations::Modifications}
const PYPI_PUBLISH_URL: &str = "https://upload.pypi.org/legacy/"; const PYPI_PUBLISH_URL: &str = "https://upload.pypi.org/legacy/";
/// The resolved global settings to use for any invocation of the CLI. /// The resolved global settings to use for any invocation of the CLI.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct GlobalSettings { pub(crate) struct GlobalSettings {
pub(crate) required_version: Option<RequiredVersion>, pub(crate) required_version: Option<RequiredVersion>,
@ -199,7 +198,6 @@ impl NetworkSettings {
} }
/// The resolved cache settings to use for any invocation of the CLI. /// The resolved cache settings to use for any invocation of the CLI.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct CacheSettings { pub(crate) struct CacheSettings {
pub(crate) no_cache: bool, pub(crate) no_cache: bool,
@ -222,7 +220,6 @@ impl CacheSettings {
} }
/// The resolved settings to use for a `init` invocation. /// The resolved settings to use for a `init` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct InitSettings { pub(crate) struct InitSettings {
pub(crate) path: Option<PathBuf>, pub(crate) path: Option<PathBuf>,
@ -307,7 +304,6 @@ impl InitSettings {
} }
/// The resolved settings to use for a `run` invocation. /// The resolved settings to use for a `run` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct RunSettings { pub(crate) struct RunSettings {
pub(crate) locked: bool, pub(crate) locked: bool,
@ -454,7 +450,6 @@ impl RunSettings {
} }
/// The resolved settings to use for a `tool run` invocation. /// The resolved settings to use for a `tool run` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct ToolRunSettings { pub(crate) struct ToolRunSettings {
pub(crate) command: Option<ExternalCommand>, pub(crate) command: Option<ExternalCommand>,
@ -586,7 +581,6 @@ impl ToolRunSettings {
} }
/// The resolved settings to use for a `tool install` invocation. /// The resolved settings to use for a `tool install` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct ToolInstallSettings { pub(crate) struct ToolInstallSettings {
pub(crate) package: String, pub(crate) package: String,
@ -681,7 +675,6 @@ impl ToolInstallSettings {
} }
/// The resolved settings to use for a `tool upgrade` invocation. /// The resolved settings to use for a `tool upgrade` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct ToolUpgradeSettings { pub(crate) struct ToolUpgradeSettings {
pub(crate) names: Vec<String>, pub(crate) names: Vec<String>,
@ -776,7 +769,6 @@ impl ToolUpgradeSettings {
} }
/// The resolved settings to use for a `tool list` invocation. /// The resolved settings to use for a `tool list` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct ToolListSettings { pub(crate) struct ToolListSettings {
pub(crate) show_paths: bool, pub(crate) show_paths: bool,
@ -808,7 +800,6 @@ impl ToolListSettings {
} }
/// The resolved settings to use for a `tool uninstall` invocation. /// The resolved settings to use for a `tool uninstall` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct ToolUninstallSettings { pub(crate) struct ToolUninstallSettings {
pub(crate) name: Vec<PackageName>, pub(crate) name: Vec<PackageName>,
@ -827,7 +818,6 @@ impl ToolUninstallSettings {
} }
/// The resolved settings to use for a `tool dir` invocation. /// The resolved settings to use for a `tool dir` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct ToolDirSettings { pub(crate) struct ToolDirSettings {
pub(crate) bin: bool, pub(crate) bin: bool,
@ -854,7 +844,6 @@ pub(crate) enum PythonListKinds {
} }
/// The resolved settings to use for a `tool run` invocation. /// The resolved settings to use for a `tool run` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PythonListSettings { pub(crate) struct PythonListSettings {
pub(crate) request: Option<String>, pub(crate) request: Option<String>,
@ -914,7 +903,6 @@ impl PythonListSettings {
} }
/// The resolved settings to use for a `python dir` invocation. /// The resolved settings to use for a `python dir` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PythonDirSettings { pub(crate) struct PythonDirSettings {
pub(crate) bin: bool, pub(crate) bin: bool,
@ -931,7 +919,6 @@ impl PythonDirSettings {
} }
/// The resolved settings to use for a `python install` invocation. /// The resolved settings to use for a `python install` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PythonInstallSettings { pub(crate) struct PythonInstallSettings {
pub(crate) install_dir: Option<PathBuf>, pub(crate) install_dir: Option<PathBuf>,
@ -987,7 +974,6 @@ impl PythonInstallSettings {
} }
/// The resolved settings to use for a `python uninstall` invocation. /// The resolved settings to use for a `python uninstall` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PythonUninstallSettings { pub(crate) struct PythonUninstallSettings {
pub(crate) install_dir: Option<PathBuf>, pub(crate) install_dir: Option<PathBuf>,
@ -1017,7 +1003,6 @@ impl PythonUninstallSettings {
} }
/// The resolved settings to use for a `python find` invocation. /// The resolved settings to use for a `python find` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PythonFindSettings { pub(crate) struct PythonFindSettings {
pub(crate) request: Option<String>, pub(crate) request: Option<String>,
@ -1049,7 +1034,6 @@ impl PythonFindSettings {
} }
/// The resolved settings to use for a `python pin` invocation. /// The resolved settings to use for a `python pin` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PythonPinSettings { pub(crate) struct PythonPinSettings {
pub(crate) request: Option<String>, pub(crate) request: Option<String>,
@ -1575,7 +1559,6 @@ impl VersionSettings {
} }
/// The resolved settings to use for a `tree` invocation. /// The resolved settings to use for a `tree` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct TreeSettings { pub(crate) struct TreeSettings {
pub(crate) groups: DependencyGroups, pub(crate) groups: DependencyGroups,
@ -1771,7 +1754,6 @@ impl ExportSettings {
} }
/// The resolved settings to use for a `pip compile` invocation. /// The resolved settings to use for a `pip compile` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipCompileSettings { pub(crate) struct PipCompileSettings {
pub(crate) format: Option<ExportFormat>, pub(crate) format: Option<ExportFormat>,
@ -1949,7 +1931,6 @@ impl PipCompileSettings {
} }
/// The resolved settings to use for a `pip sync` invocation. /// The resolved settings to use for a `pip sync` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipSyncSettings { pub(crate) struct PipSyncSettings {
pub(crate) src_file: Vec<PathBuf>, pub(crate) src_file: Vec<PathBuf>,
@ -2036,7 +2017,6 @@ impl PipSyncSettings {
} }
/// The resolved settings to use for a `pip install` invocation. /// The resolved settings to use for a `pip install` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipInstallSettings { pub(crate) struct PipInstallSettings {
pub(crate) package: Vec<String>, pub(crate) package: Vec<String>,
@ -2195,7 +2175,6 @@ impl PipInstallSettings {
} }
/// The resolved settings to use for a `pip uninstall` invocation. /// The resolved settings to use for a `pip uninstall` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipUninstallSettings { pub(crate) struct PipUninstallSettings {
pub(crate) package: Vec<String>, pub(crate) package: Vec<String>,
@ -2243,7 +2222,6 @@ impl PipUninstallSettings {
} }
/// The resolved settings to use for a `pip freeze` invocation. /// The resolved settings to use for a `pip freeze` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipFreezeSettings { pub(crate) struct PipFreezeSettings {
pub(crate) exclude_editable: bool, pub(crate) exclude_editable: bool,
@ -2282,7 +2260,6 @@ impl PipFreezeSettings {
} }
/// The resolved settings to use for a `pip list` invocation. /// The resolved settings to use for a `pip list` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipListSettings { pub(crate) struct PipListSettings {
pub(crate) editable: Option<bool>, pub(crate) editable: Option<bool>,
@ -2330,7 +2307,6 @@ impl PipListSettings {
} }
/// The resolved settings to use for a `pip show` invocation. /// The resolved settings to use for a `pip show` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipShowSettings { pub(crate) struct PipShowSettings {
pub(crate) package: Vec<PackageName>, pub(crate) package: Vec<PackageName>,
@ -2369,7 +2345,6 @@ impl PipShowSettings {
} }
/// The resolved settings to use for a `pip tree` invocation. /// The resolved settings to use for a `pip tree` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipTreeSettings { pub(crate) struct PipTreeSettings {
pub(crate) show_version_specifiers: bool, pub(crate) show_version_specifiers: bool,
@ -2419,7 +2394,6 @@ impl PipTreeSettings {
} }
/// The resolved settings to use for a `pip check` invocation. /// The resolved settings to use for a `pip check` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipCheckSettings { pub(crate) struct PipCheckSettings {
pub(crate) settings: PipSettings, pub(crate) settings: PipSettings,
@ -2448,7 +2422,6 @@ impl PipCheckSettings {
} }
/// The resolved settings to use for a `build` invocation. /// The resolved settings to use for a `build` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct BuildSettings { pub(crate) struct BuildSettings {
pub(crate) src: Option<PathBuf>, pub(crate) src: Option<PathBuf>,
@ -2525,7 +2498,6 @@ impl BuildSettings {
} }
/// The resolved settings to use for a `venv` invocation. /// The resolved settings to use for a `venv` invocation.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct VenvSettings { pub(crate) struct VenvSettings {
pub(crate) seed: bool, pub(crate) seed: bool,
@ -2612,7 +2584,6 @@ pub(crate) struct InstallerSettingsRef<'a> {
/// ///
/// Combines the `[tool.uv]` persistent configuration with the command-line arguments /// Combines the `[tool.uv]` persistent configuration with the command-line arguments
/// ([`ResolverArgs`], represented as [`ResolverOptions`]). /// ([`ResolverArgs`], represented as [`ResolverOptions`]).
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone, Default)] #[derive(Debug, Clone, Default)]
pub(crate) struct ResolverSettings { pub(crate) struct ResolverSettings {
pub(crate) build_options: BuildOptions, pub(crate) build_options: BuildOptions,
@ -2702,7 +2673,6 @@ impl From<ResolverOptions> for ResolverSettings {
/// ///
/// Represents the shared settings that are used across all uv commands outside the `pip` API. /// Represents the shared settings that are used across all uv commands outside the `pip` API.
/// Analogous to the settings contained in the `[tool.uv]` table, combined with [`ResolverInstallerArgs`]. /// Analogous to the settings contained in the `[tool.uv]` table, combined with [`ResolverInstallerArgs`].
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone, Default)] #[derive(Debug, Clone, Default)]
pub(crate) struct ResolverInstallerSettings { pub(crate) struct ResolverInstallerSettings {
pub(crate) resolver: ResolverSettings, pub(crate) resolver: ResolverSettings,
@ -2792,7 +2762,6 @@ impl From<ResolverInstallerOptions> for ResolverInstallerSettings {
/// ///
/// Represents the shared settings that are used across all `pip` commands. Analogous to the /// Represents the shared settings that are used across all `pip` commands. Analogous to the
/// settings contained in the `[tool.uv.pip]` table. /// settings contained in the `[tool.uv.pip]` table.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PipSettings { pub(crate) struct PipSettings {
pub(crate) index_locations: IndexLocations, pub(crate) index_locations: IndexLocations,
@ -3169,7 +3138,6 @@ impl<'a> From<&'a ResolverInstallerSettings> for InstallerSettingsRef<'a> {
} }
/// The resolved settings to use for an invocation of the `uv publish` CLI. /// The resolved settings to use for an invocation of the `uv publish` CLI.
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub(crate) struct PublishSettings { pub(crate) struct PublishSettings {
// CLI only, see [`PublishArgs`] for docs. // CLI only, see [`PublishArgs`] for docs.