@@ -87,7 +87,7 @@ bench-chunks-select:
8787
8888# Run all linters, fast and slow
8989[group (' lint' )]
90- lint : (lint-light " --all-files" ) lint-heavy
90+ lint : (lint-light " --show-diff-on-failure" " -- all-files" ) lint-heavy
9191
9292# Run only the fast per-file linters; these might opt to only look at the changed files. Args are passed to pre-commit
9393[group (' lint' )]
@@ -97,16 +97,16 @@ lint-light *ARGS:
9797# Run the slow linters/static analysers that need to look at everything
9898[group (' lint' )]
9999[parallel ]
100- lint-heavy : clippy-fix lint-cargo mypy
100+ lint-heavy : semver clippy-fix lint-cargo mypy
101101
102- # Serial execution on the main `CARGO_TARGET_DIR`
103- [group (' lint' )]
104- lint-cargo : clippy hakari
105-
106- # Verify the workspace-hack crate is up to date
102+ # Verify the semver bounds are respected since the last tagged build
107103[group (' lint' )]
108- hakari :
109- cargo hakari verify
104+ semver :
105+ #!/usr/bin/env bash
106+ set -euo pipefail
107+ export DATABASE_URL=" sqlite://{{justfile_directory()}}/opsqueue/opsqueue_example_database_schema.db"
108+ # We select the latest git tag, not to be confused with the latest Cargo version.
109+ cargo semver-checks --workspace --target x86_64-unknown-linux-gnu --baseline-rev " $( git tag -l --sort=-version:refname | head -1) "
110110
111111# Rust static analysis
112112[group (' lint' )]
@@ -116,6 +116,15 @@ clippy-fix:
116116 CARGO_TARGET_DIR=target/ clippy-fix cargo clippy --no-deps --all-targets --no-default-features --fix --allow-dirty --allow-staged -- -Dwarnings
117117 CARGO_TARGET_DIR=target/ clippy-fix cargo clippy --no-deps --all-targets --all-features --fix --allow-dirty --allow-staged -- -Dwarnings
118118
119+ # Serial execution on the main `CARGO_TARGET_DIR`
120+ [group (' lint' )]
121+ lint-cargo : clippy hakari
122+
123+ # Verify the workspace-hack crate is up to date
124+ [group (' lint' )]
125+ hakari :
126+ cargo hakari verify
127+
119128# Rust static analysis
120129[group (' lint' )]
121130clippy :
0 commit comments