mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Remove trailing commas before brackets (#10740)
Some checks failed
CI / build binary | freebsd (push) Has been cancelled
CI / Determine changes (push) Has been cancelled
CI / typos (push) Has been cancelled
CI / mkdocs (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / cargo shear (push) Has been cancelled
CI / check windows trampoline | i686 (push) Has been cancelled
CI / check windows trampoline | x86_64 (push) Has been cancelled
CI / test windows trampoline | i686 (push) Has been cancelled
CI / test windows trampoline | x86_64 (push) Has been cancelled
CI / build binary | linux (push) Has been cancelled
CI / build binary | macos aarch64 (push) Has been cancelled
CI / build binary | macos x86_64 (push) Has been cancelled
CI / build binary | windows (push) Has been cancelled
CI / cargo build (msrv) (push) Has been cancelled
CI / ecosystem test | prefecthq/prefect (push) Has been cancelled
CI / ecosystem test | pallets/flask (push) Has been cancelled
CI / integration test | conda on ubuntu (push) Has been cancelled
CI / integration test | free-threaded on linux (push) Has been cancelled
CI / integration test | github actions (push) Has been cancelled
CI / integration test | determine publish changes (push) Has been cancelled
CI / integration test | uv publish (push) Has been cancelled
CI / check cache | ubuntu (push) Has been cancelled
CI / check cache | macos aarch64 (push) Has been cancelled
CI / check system | python on debian (push) Has been cancelled
CI / check system | python on fedora (push) Has been cancelled
CI / check system | python on ubuntu (push) Has been cancelled
CI / check system | python on opensuse (push) Has been cancelled
CI / check system | python on rocky linux 8 (push) Has been cancelled
CI / check system | python on rocky linux 9 (push) Has been cancelled
CI / check system | pypy on ubuntu (push) Has been cancelled
CI / check system | pyston (push) Has been cancelled
CI / check system | alpine (push) Has been cancelled
CI / check system | python on macos aarch64 (push) Has been cancelled
CI / check system | homebrew python on macos aarch64 (push) Has been cancelled
CI / check system | python on macos x86_64 (push) Has been cancelled
CI / check system | python3.10 on windows (push) Has been cancelled
CI / check system | python3.10 on windows x86 (push) Has been cancelled
CI / check system | python3.13 on windows (push) Has been cancelled
CI / check system | python3.12 via chocolatey (push) Has been cancelled
CI / check system | python3.9 via pyenv (push) Has been cancelled
CI / check system | python3.13 (push) Has been cancelled
CI / cargo clippy | ubuntu (push) Has been cancelled
CI / cargo clippy | windows (push) Has been cancelled
CI / cargo dev generate-all (push) Has been cancelled
CI / cargo test | ubuntu (push) Has been cancelled
CI / cargo test | macos (push) Has been cancelled
CI / cargo test | windows (push) Has been cancelled
CI / check windows trampoline | aarch64 (push) Has been cancelled
CI / integration test | free-threaded on windows (push) Has been cancelled
CI / integration test | pypy on ubuntu (push) Has been cancelled
CI / integration test | pypy on windows (push) Has been cancelled
CI / integration test | graalpy on ubuntu (push) Has been cancelled
CI / integration test | graalpy on windows (push) Has been cancelled
CI / check system | conda3.11 on linux (push) Has been cancelled
CI / check system | conda3.8 on linux (push) Has been cancelled
CI / check system | conda3.11 on macos (push) Has been cancelled
CI / check system | conda3.8 on macos (push) Has been cancelled
CI / check system | conda3.11 on windows (push) Has been cancelled
CI / check system | conda3.8 on windows (push) Has been cancelled
CI / check system | amazonlinux (push) Has been cancelled
CI / check system | embedded python3.10 on windows (push) Has been cancelled
CI / benchmarks (push) Has been cancelled
Some checks failed
CI / build binary | freebsd (push) Has been cancelled
CI / Determine changes (push) Has been cancelled
CI / typos (push) Has been cancelled
CI / mkdocs (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / cargo shear (push) Has been cancelled
CI / check windows trampoline | i686 (push) Has been cancelled
CI / check windows trampoline | x86_64 (push) Has been cancelled
CI / test windows trampoline | i686 (push) Has been cancelled
CI / test windows trampoline | x86_64 (push) Has been cancelled
CI / build binary | linux (push) Has been cancelled
CI / build binary | macos aarch64 (push) Has been cancelled
CI / build binary | macos x86_64 (push) Has been cancelled
CI / build binary | windows (push) Has been cancelled
CI / cargo build (msrv) (push) Has been cancelled
CI / ecosystem test | prefecthq/prefect (push) Has been cancelled
CI / ecosystem test | pallets/flask (push) Has been cancelled
CI / integration test | conda on ubuntu (push) Has been cancelled
CI / integration test | free-threaded on linux (push) Has been cancelled
CI / integration test | github actions (push) Has been cancelled
CI / integration test | determine publish changes (push) Has been cancelled
CI / integration test | uv publish (push) Has been cancelled
CI / check cache | ubuntu (push) Has been cancelled
CI / check cache | macos aarch64 (push) Has been cancelled
CI / check system | python on debian (push) Has been cancelled
CI / check system | python on fedora (push) Has been cancelled
CI / check system | python on ubuntu (push) Has been cancelled
CI / check system | python on opensuse (push) Has been cancelled
CI / check system | python on rocky linux 8 (push) Has been cancelled
CI / check system | python on rocky linux 9 (push) Has been cancelled
CI / check system | pypy on ubuntu (push) Has been cancelled
CI / check system | pyston (push) Has been cancelled
CI / check system | alpine (push) Has been cancelled
CI / check system | python on macos aarch64 (push) Has been cancelled
CI / check system | homebrew python on macos aarch64 (push) Has been cancelled
CI / check system | python on macos x86_64 (push) Has been cancelled
CI / check system | python3.10 on windows (push) Has been cancelled
CI / check system | python3.10 on windows x86 (push) Has been cancelled
CI / check system | python3.13 on windows (push) Has been cancelled
CI / check system | python3.12 via chocolatey (push) Has been cancelled
CI / check system | python3.9 via pyenv (push) Has been cancelled
CI / check system | python3.13 (push) Has been cancelled
CI / cargo clippy | ubuntu (push) Has been cancelled
CI / cargo clippy | windows (push) Has been cancelled
CI / cargo dev generate-all (push) Has been cancelled
CI / cargo test | ubuntu (push) Has been cancelled
CI / cargo test | macos (push) Has been cancelled
CI / cargo test | windows (push) Has been cancelled
CI / check windows trampoline | aarch64 (push) Has been cancelled
CI / integration test | free-threaded on windows (push) Has been cancelled
CI / integration test | pypy on ubuntu (push) Has been cancelled
CI / integration test | pypy on windows (push) Has been cancelled
CI / integration test | graalpy on ubuntu (push) Has been cancelled
CI / integration test | graalpy on windows (push) Has been cancelled
CI / check system | conda3.11 on linux (push) Has been cancelled
CI / check system | conda3.8 on linux (push) Has been cancelled
CI / check system | conda3.11 on macos (push) Has been cancelled
CI / check system | conda3.8 on macos (push) Has been cancelled
CI / check system | conda3.11 on windows (push) Has been cancelled
CI / check system | conda3.8 on windows (push) Has been cancelled
CI / check system | amazonlinux (push) Has been cancelled
CI / check system | embedded python3.10 on windows (push) Has been cancelled
CI / benchmarks (push) Has been cancelled
This commit is contained in:
parent
ae366ccd0e
commit
c306e46e1d
11 changed files with 21 additions and 21 deletions
|
@ -111,7 +111,7 @@ mod tests {
|
|||
fn single_specifiers() {
|
||||
assert_eq!(
|
||||
CommaSeparatedRequirements::from_str("requests>=2.1,<3").unwrap(),
|
||||
CommaSeparatedRequirements(vec!["requests>=2.1,<3".to_string(),])
|
||||
CommaSeparatedRequirements(vec!["requests>=2.1,<3".to_string()])
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -695,7 +695,7 @@ mod tests {
|
|||
vec![CacheControlDirective {
|
||||
name: "max-age".to_string(),
|
||||
value: b"60".to_vec(),
|
||||
},]
|
||||
}]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -34,17 +34,17 @@ impl DependencyMetadata {
|
|||
.iter()
|
||||
.find(|v| v.version.as_ref() == Some(version))
|
||||
.inspect(|_| {
|
||||
debug!("Found dependency metadata entry for `{package}=={version}`",);
|
||||
debug!("Found dependency metadata entry for `{package}=={version}`");
|
||||
})
|
||||
.or_else(|| versions.iter().find(|v| v.version.is_none()))
|
||||
.inspect(|_| {
|
||||
debug!("Found global metadata entry for `{package}`",);
|
||||
debug!("Found global metadata entry for `{package}`");
|
||||
});
|
||||
let Some(metadata) = metadata else {
|
||||
warn!("No dependency metadata entry found for `{package}=={version}`");
|
||||
return None;
|
||||
};
|
||||
debug!("Found dependency metadata entry for `{package}=={version}`",);
|
||||
debug!("Found dependency metadata entry for `{package}=={version}`");
|
||||
Some(ResolutionMetadata {
|
||||
name: metadata.name.clone(),
|
||||
version: version.clone(),
|
||||
|
|
|
@ -14,7 +14,7 @@ use std::{
|
|||
#[derive(Eq, Ord, PartialEq, PartialOrd, Debug, Hash, Clone, Copy)]
|
||||
#[cfg_attr(
|
||||
feature = "rkyv",
|
||||
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize,)
|
||||
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize)
|
||||
)]
|
||||
#[cfg_attr(feature = "rkyv", rkyv(derive(Debug, Eq, PartialEq, PartialOrd, Ord)))]
|
||||
pub enum Operator {
|
||||
|
@ -1458,7 +1458,7 @@ impl Deref for Release<'_> {
|
|||
#[derive(PartialEq, Eq, Debug, Hash, Clone, Copy, Ord, PartialOrd)]
|
||||
#[cfg_attr(
|
||||
feature = "rkyv",
|
||||
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize,)
|
||||
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize)
|
||||
)]
|
||||
#[cfg_attr(feature = "rkyv", rkyv(derive(Debug, Eq, PartialEq, PartialOrd, Ord)))]
|
||||
pub struct Prerelease {
|
||||
|
@ -1474,7 +1474,7 @@ pub struct Prerelease {
|
|||
#[derive(PartialEq, Eq, Debug, Hash, Clone, Copy, Ord, PartialOrd)]
|
||||
#[cfg_attr(
|
||||
feature = "rkyv",
|
||||
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize,)
|
||||
derive(rkyv::Archive, rkyv::Deserialize, rkyv::Serialize)
|
||||
)]
|
||||
#[cfg_attr(feature = "rkyv", rkyv(derive(Debug, Eq, PartialEq, PartialOrd, Ord)))]
|
||||
pub enum PrereleaseKind {
|
||||
|
|
|
@ -2890,7 +2890,7 @@ mod test {
|
|||
fn test_is_false() {
|
||||
assert!(m("python_version < '3.10' and python_version >= '3.10'").is_false());
|
||||
assert!(m("(python_version < '3.10' and python_version >= '3.10') \
|
||||
or (python_version < '3.9' and python_version >= '3.9')",)
|
||||
or (python_version < '3.9' and python_version >= '3.9')")
|
||||
.is_false());
|
||||
|
||||
assert!(!m("python_version < '3.10'").is_false());
|
||||
|
@ -3150,7 +3150,7 @@ mod test {
|
|||
|
||||
assert!(m("
|
||||
(os_name == 'Linux' and extra == 'foo')
|
||||
or (os_name != 'Linux' and extra == 'bar')",)
|
||||
or (os_name != 'Linux' and extra == 'bar')")
|
||||
.without_extras()
|
||||
.is_true());
|
||||
|
||||
|
@ -3183,7 +3183,7 @@ mod test {
|
|||
);
|
||||
assert!(m("
|
||||
(os_name == 'foo' and extra == 'foo')
|
||||
or (os_name == 'bar' and extra != 'foo')",)
|
||||
or (os_name == 'bar' and extra != 'foo')")
|
||||
.only_extras()
|
||||
.is_true());
|
||||
assert_eq!(
|
||||
|
|
|
@ -397,7 +397,7 @@ pub async fn upload(
|
|||
if UvRetryableStrategy.handle(&result) == Some(Retryable::Transient) {
|
||||
let retry_decision = retry_policy.should_retry(start_time, n_past_retries);
|
||||
if let reqwest_retry::RetryDecision::Retry { execute_after } = retry_decision {
|
||||
warn_user!("Transient failure while handling response for {registry}; retrying...",);
|
||||
warn_user!("Transient failure while handling response for {registry}; retrying...");
|
||||
reporter.on_download_complete(idx);
|
||||
let duration = execute_after
|
||||
.duration_since(SystemTime::now())
|
||||
|
|
|
@ -56,7 +56,7 @@ impl std::fmt::Display for SysconfigData {
|
|||
self.0.serialize(&mut serializer).unwrap();
|
||||
String::from_utf8(buf).unwrap()
|
||||
};
|
||||
write!(f, "{output}",)
|
||||
write!(f, "{output}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ impl ReportFormatter<PubGrubPackage, Range<Version>, UnavailableReason>
|
|||
match reason {
|
||||
UnavailableReason::Package(reason) => {
|
||||
let message = reason.singular_message();
|
||||
format!("{}{}", package, Padded::new(" ", &message, ""),)
|
||||
format!("{}{}", package, Padded::new(" ", &message, ""))
|
||||
}
|
||||
UnavailableReason::Version(reason) => {
|
||||
let range = self.compatible_range(package, set);
|
||||
|
@ -1543,7 +1543,7 @@ impl std::fmt::Display for PubGrubHint {
|
|||
let option = match option {
|
||||
NoBuild::All => "for all packages (i.e., with `--no-build`)".to_string(),
|
||||
NoBuild::Packages(_) => {
|
||||
format!("for `{package}` (i.e., with `--no-build-package {package}`)",)
|
||||
format!("for `{package}` (i.e., with `--no-build-package {package}`)")
|
||||
}
|
||||
NoBuild::None => unreachable!(),
|
||||
};
|
||||
|
@ -1559,7 +1559,7 @@ impl std::fmt::Display for PubGrubHint {
|
|||
let option = match option {
|
||||
NoBinary::All => "for all packages (i.e., with `--no-binary`)".to_string(),
|
||||
NoBinary::Packages(_) => {
|
||||
format!("for `{package}` (i.e., with `--no-binary-package {package}`)",)
|
||||
format!("for `{package}` (i.e., with `--no-binary-package {package}`)")
|
||||
}
|
||||
NoBinary::None => unreachable!(),
|
||||
};
|
||||
|
|
|
@ -1348,7 +1348,7 @@ mod test {
|
|||
split_specifiers("flask[dotenv]>=1.0"),
|
||||
("flask[dotenv]", ">=1.0")
|
||||
);
|
||||
assert_eq!(split_specifiers("flask[dotenv]",), ("flask[dotenv]", ""));
|
||||
assert_eq!(split_specifiers("flask[dotenv]"), ("flask[dotenv]", ""));
|
||||
assert_eq!(split_specifiers("flask @ https://files.pythonhosted.org/packages/af/47/93213ee66ef8fae3b93b3e29206f6b251e65c97bd91d8e1c5596ef15af0a/flask-3.1.0-py3-none-any.whl"), ("flask", "@ https://files.pythonhosted.org/packages/af/47/93213ee66ef8fae3b93b3e29206f6b251e65c97bd91d8e1c5596ef15af0a/flask-3.1.0-py3-none-any.whl"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -340,7 +340,7 @@ fn format_chain(name: &PackageName, version: Option<&Version>, chain: &Derivatio
|
|||
)
|
||||
} else {
|
||||
// Ex) `flask>=1.0.0`
|
||||
format!("`{}{}`", step.name.cyan(), range.cyan(),)
|
||||
format!("`{}{}`", step.name.cyan(), range.cyan())
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -354,7 +354,7 @@ fn format_chain(name: &PackageName, version: Option<&Version>, chain: &Derivatio
|
|||
)
|
||||
} else {
|
||||
// Ex) `flask[dotenv]`
|
||||
format!("`{}`", format!("{}[{}]", step.name, extra).cyan(),)
|
||||
format!("`{}`", format!("{}[{}]", step.name, extra).cyan())
|
||||
}
|
||||
} else if let Some(group) = &step.group {
|
||||
if let Some(version) = step.version.as_ref() {
|
||||
|
@ -366,7 +366,7 @@ fn format_chain(name: &PackageName, version: Option<&Version>, chain: &Derivatio
|
|||
)
|
||||
} else {
|
||||
// Ex) `flask:dev`
|
||||
format!("`{}`", format!("{}:{}", step.name, group).cyan(),)
|
||||
format!("`{}`", format!("{}:{}", step.name, group).cyan())
|
||||
}
|
||||
} else {
|
||||
if let Some(version) = step.version.as_ref() {
|
||||
|
|
|
@ -217,7 +217,7 @@ pub(crate) async fn install(
|
|||
Either::Left(installation)
|
||||
}
|
||||
} else {
|
||||
debug!("No installation found for request `{}`", request.cyan(),);
|
||||
debug!("No installation found for request `{}`", request.cyan());
|
||||
|
||||
Either::Right(request)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue