Created
May 1, 2021 18:44
-
-
Save borkdude/d317308c66029452520e8bf4378be55e to your computer and use it in GitHub Desktop.
cljstyle with babashka
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[babashka.deps :as deps]) | |
(deps/add-deps '{:deps {borkdude/spartan.spec {:git/url "https://github.com/borkdude/spartan.spec" | |
:sha "e5c9f40ebcc64b27b3e3e83ad2a285ccc0997097"} | |
mvxcvi/cljstyle {:git/url "https://github.com/borkdude/cljstyle" | |
:sha "d264e1e7e634d9f3b3b0aacb3829d430b826766c"}}}) | |
(require '[spartan.spec]) ;; creates clojure.spec.alpha | |
(require '[cljstyle.config :refer [default-config]] | |
'[cljstyle.format.core :as fmt] | |
) | |
(spit *file* (fmt/reformat-file (slurp *file*) default-config)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment