diff --git a/cot/src/auth.rs b/cot/src/auth.rs index 77ece882e..b7bb94435 100644 --- a/cot/src/auth.rs +++ b/cot/src/auth.rs @@ -105,7 +105,7 @@ pub trait User { /// [`AnonymousUser`] always returns `None`. // mockall requires lifetimes to be specified here // (see related issue: https://github.com/asomers/mockall/issues/571) - #[expect(clippy::needless_lifetimes)] + #[expect(clippy::elidable_lifetime_names)] fn username<'a>(&'a self) -> Option> { None } diff --git a/justfile b/justfile index 71555753d..6bc5eb7a3 100644 --- a/justfile +++ b/justfile @@ -2,9 +2,6 @@ default: @just --choose {{ justfile() }} alias u := update-lockfiles -alias c := clippy -alias cov := coverage -alias d := docs update-lockfiles: update-workspace-lockfile update-template-lockfile @@ -29,15 +26,50 @@ update-template-lockfile: cp $cargo_lock_path cot-cli/src/project_template/Cargo.lock.template rm -rf $tmpdir +alias c := clippy + clippy: cargo +stable clippy --no-deps --all-targets +alias cf := clippy-fix + +clippy-fix: + cargo +stable clippy --no-deps --all-targets --fix + +alias cov := coverage + coverage: # generate coverage report as HTML # requires cargo-llvm-cov installed and nightly toolchain cargo llvm-cov --all-features --workspace --branch --doctests --html --open +alias d := docs + docs: # generate docs for the `cot` crate with similar settings to docs.rs # requires nightly toolchain RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --no-deps --all-features --lib + +alias do := docs-open + +docs-open: + # generate docs for the `cot` crate with similar settings to docs.rs + # requires nightly toolchain + RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --no-deps --all-features --lib --open + +alias t := test + +test-all: test test-ignored + +alias ta := test-all + +test: + cargo nextest run --all-features + cargo test --all-features --doc + +alias ti := test-ignored + +test-ignored: + docker compose up -d --wait + cargo nextest run --all-features --run-ignored only + docker compose down