mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
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
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:
parent
cf67d9c633
commit
e02cd74e64
8 changed files with 1 additions and 90 deletions
|
@ -214,6 +214,7 @@ missing_panics_doc = "allow"
|
|||
module_name_repetitions = "allow"
|
||||
must_use_candidate = "allow"
|
||||
similar_names = "allow"
|
||||
struct_excessive_bools = "allow"
|
||||
too_many_arguments = "allow"
|
||||
too_many_lines = "allow"
|
||||
used_underscore_binding = "allow"
|
||||
|
|
|
@ -13,7 +13,6 @@ pub trait CompatArgs {
|
|||
/// 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`.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipCompileCompatArgs {
|
||||
#[clap(long, hide = true)]
|
||||
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.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipListCompatArgs {
|
||||
#[clap(long, hide = true)]
|
||||
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.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipSyncCompatArgs {
|
||||
#[clap(short, long, hide = true)]
|
||||
ask: bool,
|
||||
|
@ -268,7 +265,6 @@ enum Resolver {
|
|||
///
|
||||
/// These represent a subset of the `virtualenv` interface that uv supports by default.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct VenvCompatArgs {
|
||||
#[clap(long, hide = true)]
|
||||
clear: bool,
|
||||
|
@ -327,7 +323,6 @@ impl CompatArgs for VenvCompatArgs {
|
|||
///
|
||||
/// These represent a subset of the `pip install` interface that uv supports by default.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipInstallCompatArgs {
|
||||
#[clap(long, hide = true)]
|
||||
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.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipGlobalCompatArgs {
|
||||
#[clap(long, hide = true)]
|
||||
disable_pip_version_check: bool,
|
||||
|
|
|
@ -85,7 +85,6 @@ const STYLES: Styles = Styles::styled()
|
|||
disable_version_flag = true
|
||||
)]
|
||||
#[command(styles=STYLES)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct Cli {
|
||||
#[command(subcommand)]
|
||||
pub command: Box<Commands>,
|
||||
|
@ -133,7 +132,6 @@ pub struct TopLevelArgs {
|
|||
|
||||
#[derive(Parser, Debug, Clone)]
|
||||
#[command(next_help_heading = "Global options", next_display_order = 1000)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct GlobalArgs {
|
||||
#[arg(
|
||||
global = true,
|
||||
|
@ -526,7 +524,6 @@ pub struct HelpArgs {
|
|||
|
||||
#[derive(Args)]
|
||||
#[command(group = clap::ArgGroup::new("operation"))]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct VersionArgs {
|
||||
/// Set the project version to this value
|
||||
///
|
||||
|
@ -657,7 +654,6 @@ pub struct SelfUpdateArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct CacheNamespace {
|
||||
#[command(subcommand)]
|
||||
pub command: CacheCommand,
|
||||
|
@ -687,14 +683,12 @@ pub enum CacheCommand {
|
|||
}
|
||||
|
||||
#[derive(Args, Debug)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct CleanArgs {
|
||||
/// The packages to remove from the cache.
|
||||
pub package: Vec<PackageName>,
|
||||
}
|
||||
|
||||
#[derive(Args, Debug)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PruneArgs {
|
||||
/// Optimize the cache for persistence in a continuous integration environment, like GitHub
|
||||
/// Actions.
|
||||
|
@ -714,7 +708,6 @@ pub struct PruneArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipNamespace {
|
||||
#[command(subcommand)]
|
||||
pub command: PipCommand,
|
||||
|
@ -1095,7 +1088,6 @@ fn parse_maybe_string(input: &str) -> Result<Maybe<String>, String> {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
|
||||
pub struct PipCompileArgs {
|
||||
/// Include all packages listed in the given `requirements.in` files.
|
||||
|
@ -1443,7 +1435,6 @@ pub struct PipCompileArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipSyncArgs {
|
||||
/// Include all packages listed in the given `requirements.txt` files.
|
||||
///
|
||||
|
@ -1700,7 +1691,6 @@ pub struct PipSyncArgs {
|
|||
|
||||
#[derive(Args)]
|
||||
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipInstallArgs {
|
||||
/// Install all listed packages.
|
||||
///
|
||||
|
@ -2015,7 +2005,6 @@ pub struct PipInstallArgs {
|
|||
|
||||
#[derive(Args)]
|
||||
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipUninstallArgs {
|
||||
/// Uninstall all listed packages.
|
||||
#[arg(group = "sources")]
|
||||
|
@ -2104,7 +2093,6 @@ pub struct PipUninstallArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipFreezeArgs {
|
||||
/// Exclude any editable packages from output.
|
||||
#[arg(long)]
|
||||
|
@ -2159,7 +2147,6 @@ pub struct PipFreezeArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipListArgs {
|
||||
/// Only include editable projects.
|
||||
#[arg(short, long)]
|
||||
|
@ -2235,7 +2222,6 @@ pub struct PipListArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipCheckArgs {
|
||||
/// The Python interpreter for which packages should be checked.
|
||||
///
|
||||
|
@ -2271,7 +2257,6 @@ pub struct PipCheckArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipShowArgs {
|
||||
/// The package(s) to display.
|
||||
pub package: Vec<PackageName>,
|
||||
|
@ -2325,7 +2310,6 @@ pub struct PipShowArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PipTreeArgs {
|
||||
/// Show the version constraint(s) imposed on each package.
|
||||
#[arg(long)]
|
||||
|
@ -2382,7 +2366,6 @@ pub struct PipTreeArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct BuildArgs {
|
||||
/// The directory from which distributions should be built, or a source
|
||||
/// distribution archive to build into a wheel.
|
||||
|
@ -2529,7 +2512,6 @@ pub struct BuildArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct VenvArgs {
|
||||
/// The Python interpreter to use for the virtual environment.
|
||||
///
|
||||
|
@ -2725,7 +2707,6 @@ pub enum AuthorFrom {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct InitArgs {
|
||||
/// The path to use for the project/script.
|
||||
///
|
||||
|
@ -2883,7 +2864,6 @@ pub struct InitArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct RunArgs {
|
||||
/// Include optional dependencies from the specified extra name.
|
||||
///
|
||||
|
@ -3170,7 +3150,6 @@ pub struct RunArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct SyncArgs {
|
||||
/// Include optional dependencies from the specified extra name.
|
||||
///
|
||||
|
@ -3427,7 +3406,6 @@ pub struct SyncArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct LockArgs {
|
||||
/// Check if the lockfile is up-to-date.
|
||||
///
|
||||
|
@ -3489,7 +3467,6 @@ pub struct LockArgs {
|
|||
|
||||
#[derive(Args)]
|
||||
#[command(group = clap::ArgGroup::new("sources").required(true).multiple(true))]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct AddArgs {
|
||||
/// The packages to add, as PEP 508 requirements (e.g., `ruff==0.5.0`).
|
||||
#[arg(group = "sources")]
|
||||
|
@ -3674,7 +3651,6 @@ pub struct AddArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct RemoveArgs {
|
||||
/// The names of the dependencies to remove (e.g., `ruff`).
|
||||
#[arg(required = true)]
|
||||
|
@ -3769,7 +3745,6 @@ pub struct RemoveArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct TreeArgs {
|
||||
/// Show a platform-independent dependency tree.
|
||||
///
|
||||
|
@ -3909,7 +3884,6 @@ pub struct TreeArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ExportArgs {
|
||||
/// The format to which `uv.lock` should be exported.
|
||||
///
|
||||
|
@ -4124,7 +4098,6 @@ pub struct ExportArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ToolNamespace {
|
||||
#[command(subcommand)]
|
||||
pub command: ToolCommand,
|
||||
|
@ -4217,7 +4190,6 @@ pub enum ToolCommand {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ToolRunArgs {
|
||||
/// The command to run.
|
||||
///
|
||||
|
@ -4336,7 +4308,6 @@ pub struct UvxArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ToolInstallArgs {
|
||||
/// The package to install commands from.
|
||||
pub package: String,
|
||||
|
@ -4425,7 +4396,6 @@ pub struct ToolInstallArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ToolListArgs {
|
||||
/// Whether to display the path to each tool environment and installed executable.
|
||||
#[arg(long)]
|
||||
|
@ -4452,7 +4422,6 @@ pub struct ToolListArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ToolDirArgs {
|
||||
/// Show the directory into which `uv tool` will install executables.
|
||||
///
|
||||
|
@ -4471,7 +4440,6 @@ pub struct ToolDirArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ToolUninstallArgs {
|
||||
/// The name of the tool to uninstall.
|
||||
#[arg(required = true)]
|
||||
|
@ -4483,7 +4451,6 @@ pub struct ToolUninstallArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ToolUpgradeArgs {
|
||||
/// The name of the tool to upgrade, along with an optional version specifier.
|
||||
#[arg(required = true)]
|
||||
|
@ -4713,7 +4680,6 @@ pub struct ToolUpgradeArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PythonNamespace {
|
||||
#[command(subcommand)]
|
||||
pub command: PythonCommand,
|
||||
|
@ -4793,7 +4759,6 @@ pub enum PythonCommand {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PythonListArgs {
|
||||
/// A Python request to filter by.
|
||||
///
|
||||
|
@ -4848,7 +4813,6 @@ pub struct PythonListArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PythonDirArgs {
|
||||
/// Show the directory into which `uv python` will install Python executables.
|
||||
///
|
||||
|
@ -4866,7 +4830,6 @@ pub struct PythonDirArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PythonInstallArgs {
|
||||
/// The directory to store the Python installation in.
|
||||
///
|
||||
|
@ -4945,7 +4908,6 @@ pub struct PythonInstallArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PythonUninstallArgs {
|
||||
/// The directory where the Python was installed.
|
||||
#[arg(long, short, env = EnvVars::UV_PYTHON_INSTALL_DIR)]
|
||||
|
@ -4963,7 +4925,6 @@ pub struct PythonUninstallArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PythonFindArgs {
|
||||
/// The Python request.
|
||||
///
|
||||
|
@ -5012,7 +4973,6 @@ pub struct PythonFindArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PythonPinArgs {
|
||||
/// The Python version request.
|
||||
///
|
||||
|
@ -5061,7 +5021,6 @@ pub struct PythonPinArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct GenerateShellCompletionArgs {
|
||||
/// The shell to generate the completion script for
|
||||
pub shell: clap_complete_command::Shell,
|
||||
|
@ -5100,7 +5059,6 @@ pub struct GenerateShellCompletionArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct IndexArgs {
|
||||
/// The URLs to use when resolving dependencies, in addition to the default index.
|
||||
///
|
||||
|
@ -5175,7 +5133,6 @@ pub struct IndexArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct RefreshArgs {
|
||||
/// Refresh all cached data.
|
||||
#[arg(
|
||||
|
@ -5201,7 +5158,6 @@ pub struct RefreshArgs {
|
|||
}
|
||||
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct BuildOptionsArgs {
|
||||
/// 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.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct InstallerArgs {
|
||||
#[command(flatten)]
|
||||
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.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ResolverArgs {
|
||||
#[command(flatten)]
|
||||
pub index_args: IndexArgs,
|
||||
|
@ -5566,7 +5520,6 @@ pub struct ResolverArgs {
|
|||
|
||||
/// Arguments that are used by commands that need to resolve and install packages.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct ResolverInstallerArgs {
|
||||
#[command(flatten)]
|
||||
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.
|
||||
#[derive(Args)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct FetchArgs {
|
||||
#[command(flatten)]
|
||||
pub index_args: IndexArgs,
|
||||
|
|
|
@ -21,7 +21,6 @@ use crate::rkyvutil::OwnedArchive;
|
|||
rkyv::Serialize,
|
||||
)]
|
||||
#[rkyv(derive(Debug))]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct CacheControl {
|
||||
// directives for requests and responses
|
||||
/// * <https://www.rfc-editor.org/rfc/rfc9111.html#name-max-age>
|
||||
|
|
|
@ -32,7 +32,6 @@ pub struct VirtualEnvironment {
|
|||
|
||||
/// A parsed `pyvenv.cfg`
|
||||
#[derive(Debug, Clone)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct PyVenvConfiguration {
|
||||
/// Was the virtual environment created with the `virtualenv` package?
|
||||
pub(crate) virtualenv: bool,
|
||||
|
|
|
@ -14,7 +14,6 @@ use crate::{ResolverEnvironment, ResolverOutput};
|
|||
|
||||
/// A [`std::fmt::Display`] implementation for the resolution graph.
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
pub struct DisplayResolutionGraph<'a> {
|
||||
/// The underlying graph.
|
||||
resolution: &'a ResolverOutput,
|
||||
|
|
|
@ -345,7 +345,6 @@ struct VersionMapEager {
|
|||
/// avoiding another conversion step into a fully filled out `VersionMap` can
|
||||
/// provide substantial savings in some cases.
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
struct VersionMapLazy {
|
||||
/// A map from version to possibly-initialized distribution.
|
||||
map: BTreeMap<Version, LazyPrioritizedDist>,
|
||||
|
|
|
@ -54,7 +54,6 @@ use crate::commands::{InitKind, InitProjectKind, pip::operations::Modifications}
|
|||
const PYPI_PUBLISH_URL: &str = "https://upload.pypi.org/legacy/";
|
||||
|
||||
/// The resolved global settings to use for any invocation of the CLI.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct GlobalSettings {
|
||||
pub(crate) required_version: Option<RequiredVersion>,
|
||||
|
@ -199,7 +198,6 @@ impl NetworkSettings {
|
|||
}
|
||||
|
||||
/// The resolved cache settings to use for any invocation of the CLI.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct CacheSettings {
|
||||
pub(crate) no_cache: bool,
|
||||
|
@ -222,7 +220,6 @@ impl CacheSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `init` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct InitSettings {
|
||||
pub(crate) path: Option<PathBuf>,
|
||||
|
@ -307,7 +304,6 @@ impl InitSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `run` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct RunSettings {
|
||||
pub(crate) locked: bool,
|
||||
|
@ -454,7 +450,6 @@ impl RunSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tool run` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct ToolRunSettings {
|
||||
pub(crate) command: Option<ExternalCommand>,
|
||||
|
@ -586,7 +581,6 @@ impl ToolRunSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tool install` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct ToolInstallSettings {
|
||||
pub(crate) package: String,
|
||||
|
@ -681,7 +675,6 @@ impl ToolInstallSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tool upgrade` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct ToolUpgradeSettings {
|
||||
pub(crate) names: Vec<String>,
|
||||
|
@ -776,7 +769,6 @@ impl ToolUpgradeSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tool list` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct ToolListSettings {
|
||||
pub(crate) show_paths: bool,
|
||||
|
@ -808,7 +800,6 @@ impl ToolListSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tool uninstall` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct ToolUninstallSettings {
|
||||
pub(crate) name: Vec<PackageName>,
|
||||
|
@ -827,7 +818,6 @@ impl ToolUninstallSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tool dir` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct ToolDirSettings {
|
||||
pub(crate) bin: bool,
|
||||
|
@ -854,7 +844,6 @@ pub(crate) enum PythonListKinds {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tool run` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PythonListSettings {
|
||||
pub(crate) request: Option<String>,
|
||||
|
@ -914,7 +903,6 @@ impl PythonListSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `python dir` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PythonDirSettings {
|
||||
pub(crate) bin: bool,
|
||||
|
@ -931,7 +919,6 @@ impl PythonDirSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `python install` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PythonInstallSettings {
|
||||
pub(crate) install_dir: Option<PathBuf>,
|
||||
|
@ -987,7 +974,6 @@ impl PythonInstallSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `python uninstall` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PythonUninstallSettings {
|
||||
pub(crate) install_dir: Option<PathBuf>,
|
||||
|
@ -1017,7 +1003,6 @@ impl PythonUninstallSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `python find` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PythonFindSettings {
|
||||
pub(crate) request: Option<String>,
|
||||
|
@ -1049,7 +1034,6 @@ impl PythonFindSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `python pin` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PythonPinSettings {
|
||||
pub(crate) request: Option<String>,
|
||||
|
@ -1575,7 +1559,6 @@ impl VersionSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `tree` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct TreeSettings {
|
||||
pub(crate) groups: DependencyGroups,
|
||||
|
@ -1771,7 +1754,6 @@ impl ExportSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip compile` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipCompileSettings {
|
||||
pub(crate) format: Option<ExportFormat>,
|
||||
|
@ -1949,7 +1931,6 @@ impl PipCompileSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip sync` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipSyncSettings {
|
||||
pub(crate) src_file: Vec<PathBuf>,
|
||||
|
@ -2036,7 +2017,6 @@ impl PipSyncSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip install` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipInstallSettings {
|
||||
pub(crate) package: Vec<String>,
|
||||
|
@ -2195,7 +2175,6 @@ impl PipInstallSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip uninstall` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipUninstallSettings {
|
||||
pub(crate) package: Vec<String>,
|
||||
|
@ -2243,7 +2222,6 @@ impl PipUninstallSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip freeze` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipFreezeSettings {
|
||||
pub(crate) exclude_editable: bool,
|
||||
|
@ -2282,7 +2260,6 @@ impl PipFreezeSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip list` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipListSettings {
|
||||
pub(crate) editable: Option<bool>,
|
||||
|
@ -2330,7 +2307,6 @@ impl PipListSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip show` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipShowSettings {
|
||||
pub(crate) package: Vec<PackageName>,
|
||||
|
@ -2369,7 +2345,6 @@ impl PipShowSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip tree` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipTreeSettings {
|
||||
pub(crate) show_version_specifiers: bool,
|
||||
|
@ -2419,7 +2394,6 @@ impl PipTreeSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `pip check` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipCheckSettings {
|
||||
pub(crate) settings: PipSettings,
|
||||
|
@ -2448,7 +2422,6 @@ impl PipCheckSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `build` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct BuildSettings {
|
||||
pub(crate) src: Option<PathBuf>,
|
||||
|
@ -2525,7 +2498,6 @@ impl BuildSettings {
|
|||
}
|
||||
|
||||
/// The resolved settings to use for a `venv` invocation.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct VenvSettings {
|
||||
pub(crate) seed: bool,
|
||||
|
@ -2612,7 +2584,6 @@ pub(crate) struct InstallerSettingsRef<'a> {
|
|||
///
|
||||
/// Combines the `[tool.uv]` persistent configuration with the command-line arguments
|
||||
/// ([`ResolverArgs`], represented as [`ResolverOptions`]).
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub(crate) struct ResolverSettings {
|
||||
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.
|
||||
/// Analogous to the settings contained in the `[tool.uv]` table, combined with [`ResolverInstallerArgs`].
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub(crate) struct ResolverInstallerSettings {
|
||||
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
|
||||
/// settings contained in the `[tool.uv.pip]` table.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PipSettings {
|
||||
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.
|
||||
#[allow(clippy::struct_excessive_bools)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct PublishSettings {
|
||||
// CLI only, see [`PublishArgs`] for docs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue