Skip to content

Commit

Permalink
[DATALAD RUNCMD] Do interactive fixing of some ambigous typos
Browse files Browse the repository at this point in the history
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Sep 7, 2023
1 parent 82e4a05 commit 7525ea2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cli/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub async fn execute(args: Args) -> miette::Result<()> {
let gitignore_path = dir.join(".gitignore");
let gitattributes_path = dir.join(".gitattributes");

// Check if the project file doesnt already exist. We don't want to overwrite it.
// Check if the project file doesn't already exist. We don't want to overwrite it.
if fs::metadata(&manifest_path).map_or(false, |x| x.is_file()) {
miette::bail!("{} already exists", consts::PROJECT_MANIFEST);
}
Expand Down
4 changes: 2 additions & 2 deletions src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use std::{
time::Duration,
};

/// Returns the prefix associated with the given environment. If the prefix doesnt exist or is not
/// Returns the prefix associated with the given environment. If the prefix doesn't exist or is not
/// up to date it is updated.
pub async fn get_up_to_date_prefix(project: &Project) -> miette::Result<Prefix> {
// Make sure the project supports the current platform
Expand Down Expand Up @@ -587,7 +587,7 @@ async fn install_package_to_environment(
link: None,
};

// Create the conda-meta directory if it doesnt exist yet.
// Create the conda-meta directory if it doesn't exist yet.
let target_prefix = target_prefix.to_path_buf();
match tokio::task::spawn_blocking(move || {
let conda_meta_path = target_prefix.join("conda-meta");
Expand Down
2 changes: 1 addition & 1 deletion src/prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct Prefix {
}

impl Prefix {
/// Constructs a new instance. Returns an error if the directory doesnt exist.
/// Constructs a new instance. Returns an error if the directory doesn't exist.
pub fn new(path: impl Into<PathBuf>) -> miette::Result<Self> {
let root = path.into();
Ok(Self { root })
Expand Down
2 changes: 1 addition & 1 deletion src/project/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ pub struct Activation {
pub scripts: Option<Vec<String>>,
}

// Create an error report for usign a platform that is not supported by the project.
// Create an error report for using a platform that is not supported by the project.
fn create_unsupported_platform_report(
source: NamedSource,
span: Range<usize>,
Expand Down
2 changes: 1 addition & 1 deletion src/project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ impl Project {
deps_table: &mut Item,
spec: &MatchSpec,
) -> miette::Result<(String, NamelessMatchSpec)> {
// If it doesnt exist create a proper table
// If it doesn't exist create a proper table
if deps_table.is_none() {
*deps_table = Item::Table(Table::new());
}
Expand Down

0 comments on commit 7525ea2

Please sign in to comment.