Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ysawa0 committed May 12, 2024
1 parent 6258a64 commit da7d9bc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ pub struct PreCommitConfig {

#[derive(Template)]
#[template(path = "base/.pre-commit-config.yaml", escape = "none")]
pub struct PreCommitConfigBase {
pub language: String,
}
pub struct PreCommitConfigBase {}

////////////////////////////////////
// PYTHON
Expand Down Expand Up @@ -146,7 +144,7 @@ pub fn rust(name: &str, prefix: &str) {
RustFmt {}.write(prefix, "rustfmt.toml");
}

pub fn base(name: &str, create: bool, lang: &Language) -> String {
pub fn base(name: &str, create: bool, _lang: &Language) -> String {
let prefix: String = if create { format!("./{}", name) } else { "./".to_string() };

// Create needed dirs
Expand All @@ -157,10 +155,7 @@ pub fn base(name: &str, create: bool, lang: &Language) -> String {
GhCIBase {}.write(&prefix, ".github/workflows/ci.yaml");
GitIgnore {}.write(&prefix, ".gitignore");
Makefile {}.write(&prefix, "Makefile");
PreCommitConfigBase {
language: lang.language.to_string(),
}
.write(&prefix, ".pre-commit-config.yaml");
PreCommitConfigBase {}.write(&prefix, ".pre-commit-config.yaml");
Prettier {}.write(&prefix, ".ci/prettier.json");
prefix
}

0 comments on commit da7d9bc

Please sign in to comment.