Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format using nightly formatter #243

Merged
merged 5 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ cukethis: # tests only the scenario named "this"

fix: tools/run-that-app@${RUN_THAT_APP_VERSION} # auto-corrects issues
tools/rta dprint fmt
cargo fmt
cargo fix
cargo +nightly fmt
cargo +nightly fix
cargo clippy --fix

help: # shows all available Make commands
Expand All @@ -30,7 +30,7 @@ install: # installs the binary in the system
lint: lint-std-fs tools/run-that-app@${RUN_THAT_APP_VERSION} # checks formatting
tools/rta dprint check
cargo clippy --all-targets --all-features -- --deny=warnings
cargo fmt -- --check
cargo +nightly fmt -- --check
# cargo udeps # requires nightly
git diff --check
tools/rta actionlint
Expand All @@ -48,7 +48,7 @@ update-json-schema: # updates the public JSON Schema for the config file
mv tikibase.schema.json doc
tools/rta dprint fmt > /dev/null

setup: setup-ci # prepares this codebase
setup: setup-ci # install development dependencies on this computer
cargo install cargo-edit cargo-upgrades --locked
echo
echo PLEASE DO THIS MANUALLY:
Expand All @@ -59,6 +59,8 @@ setup: setup-ci # prepares this codebase
echo 3. `cargo install dprint --locked`

setup-ci: # prepares the CI server
rustup toolchain add nightly
rustup component add rustfmt --toolchain nightly
# cargo install cargo-udeps --locked # requires nightly

update: tools/run-that-app@${RUN_THAT_APP_VERSION} # updates the dependencies
Expand Down
2 changes: 0 additions & 2 deletions src/input.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! The arguments that can be provided to Tikibase via CLI.

use clap;

/// Linter for Markdown-based knowledge databases
#[derive(Debug, clap::StructOpt)]
#[clap(version, about, long_about = None)]
Expand Down
Loading