Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ysawa0 committed Nov 5, 2023
1 parent 84e1b5c commit 0893fbc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,13 @@ repos:
- javascript
- yaml
- markdown

#############################################################################
# Rust
#############################################################################
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt # Formats Rust code using rustfmt
- id: cargo-check # Checks Rust code for compilation errors and warnings
- id: clippy # Lints Rust code with clippy for common mistakes and style issues
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ fn main() {
Cli::Update(args) => {
println!("Updating project with preset: {:?}", args.preset);
setup_preset(args.preset, "".to_string(), false);
// eprintln!("Update not yet implemented");
}
}
}
2 changes: 0 additions & 2 deletions src/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ pub fn setup_preset(mut preset: String, name: String, create: bool) {
if preset == "python" {
preset = "python3.10".to_string();
}
// write to ./pyproject.toml OR ./myproj/pyproject.toml
// write to ./.cpa/flake8 OR ./myproj/.cpa/flake8
let mut prefix: String = "./".to_string();
if !create {
prefix = format!("./{}", name)
Expand Down

0 comments on commit 0893fbc

Please sign in to comment.