Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created May 1, 2021 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borkdude/d317308c66029452520e8bf4378be55e to your computer and use it in GitHub Desktop.
Save borkdude/d317308c66029452520e8bf4378be55e to your computer and use it in GitHub Desktop.
cljstyle with babashka
(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