-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbb.edn
More file actions
16 lines (16 loc) · 1.3 KB
/
Copy pathbb.edn
File metadata and controls
16 lines (16 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{:min-bb-version "0.8.156"
:paths ["."]
:tasks {:requires ([bench.task :as bench]
[clojure.string :as str])
test {:doc "Runs the test suite, extra args are passed to kaocha"
:task (apply clojure "-M:dev:kaocha" *command-line-args*)}
bench {:doc "Benchmark the worktree, or compare two git revisions: bb bench [REV1 REV2]"
:task (bench/bench *command-line-args*)}
lint.copy-configs {:doc "Import clj-kondo configs from dependencies"
:task (let [cp (-> (shell {:out :string} "clojure -Spath -M:test:dev") :out str/trim)]
(shell (str "clj-kondo --lint " cp " --dependencies --copy-configs --skip-lint")))}
lint {:doc "Run the clj-kondo linter"
:task (shell (str "clj-kondo" " --fail-level error"
(if (seq *command-line-args*)
(str " --lint " (first *command-line-args*))
" --lint src test")))}}}