Skip to content

Commit

Permalink
Clean up wallbrew config (#223)
Browse files Browse the repository at this point in the history
* Clean up wallbrew config

* Fix ns sorting
  • Loading branch information
nnichols authored Oct 13, 2024
1 parent e428fa3 commit b27f5eb
Show file tree
Hide file tree
Showing 51 changed files with 88 additions and 122 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .sealog/config.edn → .wallbrew/sealog/config.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:changelog-filename "CHANGELOG.md"
:changelog-entry-directory ".sealog/changes/"
:changelog-entry-directory ".wallbrew/sealog/changes/"
:version-scheme :semver3
:pretty-print-edn? true}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
[org.clojure/clojurescript "1.11.132" :scope "provided"]]

:plugins [[com.github.clj-kondo/lein-clj-kondo "2024.09.27"]
[com.wallbrew/lein-sealog "1.7.0"]
[com.wallbrew/bouncer "1.0.0"]
[com.wallbrew/lein-sealog "1.8.0"]
[com.wallbrew/bouncer "1.1.1"]
[lein-cljsbuild/lein-cljsbuild "1.1.8"]
[mvxcvi/cljstyle "0.16.630"]
[ns-sort/ns-sort "1.0.3"]]
[mvxcvi/cljstyle "0.16.630"]]

:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
:username :env/clojars_user
Expand Down
5 changes: 2 additions & 3 deletions src/brewtility/precision.cljc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns brewtility.precision
"Namespace for handling numeric precision, rounding, and approximation."
{:added "1.0"}
#?(:clj (:import [java.math RoundingMode])))
{:added "1.0"})


(defn approximates?
Expand All @@ -25,7 +24,7 @@
:see-also ["->1dp" "->2dp" "->3dp"]}
[^double x ^long num-decimals]
(double
#?(:clj (.setScale (bigdec x) num-decimals RoundingMode/HALF_UP)
#?(:clj (.setScale (bigdec x) num-decimals java.math.RoundingMode/HALF_UP)
:cljs (let [denominator (Math/pow 10.0 (double num-decimals))
numerator (Math/round (* x denominator))]
(/ numerator denominator)))))
Expand Down
2 changes: 1 addition & 1 deletion src/brewtility/units/pressure.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- [bar](https://en.wikipedia.org/wiki/Bar_(unit))
- [atmosphere](https://en.wikipedia.org/wiki/Atmosphere_(unit))
- [torr](https://en.wikipedia.org/wiki/Torr)
- [psi](https://en.wikipedia.org/wiki/Pound-force_per_square_inch"
- [psi](https://en.wikipedia.org/wiki/Pound-force_per_square_inch)"
{:added "2.0"}
(:require [brewtility.precision :as precision]
[brewtility.units.options :as options]))
Expand Down
2 changes: 1 addition & 1 deletion src/brewtility/units/volume.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- [milliliter](https://en.wikipedia.org/wiki/Millilitre)
- [millilitre](https://en.wikipedia.org/wiki/Millilitre)
- [tablespoon](https://en.wikipedia.org/wiki/Tablespoon)
- [teaspoon](https://en.wikipedia.org/wiki/Teaspoon))"
- [teaspoon](https://en.wikipedia.org/wiki/Teaspoon)"
{:added "2.0"}
(:require [brewtility.precision :as precision]
[brewtility.units.options :as options]))
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/equipment.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"Namespace for static and generative test data for `common-beer-format.equipment/equipment` and `common-beer-format.equipment/equipment-wrapper`"
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[common-beer-format.equipment :as equipment.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.equipment :as equipment.format]))


(def sample-equipment
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/fermentables.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"Namespace for static and generative test data for `common-beer-format.fermentables/*` specs."
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[common-beer-format.fermentables :as fermentables.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.fermentables :as fermentables.format]))


(def sample-fermentable
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/hops.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"Namespace for static and generative test data for `common-beer-format.hops/*` specs."
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[com.wallbrew.spoon.string :as spoon.str]
[common-beer-format.hops :as hops.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.hops :as hops.format]))


(defn random-hop-type
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/mash.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"Namespace for static and generative test data for `common-beer-format.mash/*` specs."
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[common-beer-format.mash :as mash.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.mash :as mash.format]))


(def sample-mash-step
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/miscs.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"Namespace for static and generative test data for `common-beer-format.miscs/*` specs."
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[common-beer-format.miscs :as miscs.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.miscs :as miscs.format]))


(def sample-misc
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/recipes.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
[brewtility.data.yeasts :as yeasts]
[clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[com.wallbrew.spoon.string :as spoon.str]
[common-beer-format.recipes :as recipes.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.recipes :as recipes.format]))


(defn random-ibu-method
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/styles.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"Namespace for static and generative test data for `common-beer-format.styles/*` specs."
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[common-beer-format.styles :as style.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.styles :as style.format]))


(def sample-style
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/waters.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"Namespace for static and generative test data for `common-beer-format.waters/*` specs."
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[common-beer-format.waters :as waters.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.waters :as waters.format]))


(defn random-ph
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/data/yeasts.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"Namespace for static and generative test data for `common-beer-format.yeasts/*` specs."
(:require [clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
[clojure.test :refer [deftest is testing]]
[com.wallbrew.spoon.spec :as spoon.spec]
[com.wallbrew.spoon.string :as spoon.str]
[common-beer-format.yeasts :as yeasts.format]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[common-beer-format.yeasts :as yeasts.format]))


(defn random-flocculation
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/equipment_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.equipment-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.equipment :as equipment]
(:require [brewtility.data.equipment :as equipment]
[brewtility.predicates.equipment :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.equipment :as cbf-equipment]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/fermentables_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.fermentables-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.fermentables :as fermentables]
(:require [brewtility.data.fermentables :as fermentables]
[brewtility.predicates.fermentables :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.fermentables :as cbf-fermentables]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/hops_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.hops-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.hops :as hops]
(:require [brewtility.data.hops :as hops]
[brewtility.predicates.hops :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.hops :as cbf-hops]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/impl_test.cljc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns brewtility.predicates.impl-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.predicates.impl :as sut]))
(:require [brewtility.predicates.impl :as sut]
[clojure.test :refer [deftest is testing]]))


(deftest fetch-or-throw!-test
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/mash_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.mash-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.mash :as mash]
(:require [brewtility.data.mash :as mash]
[brewtility.predicates.mash :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.mash :as cbf-mash]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/miscs_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.miscs-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.miscs :as miscs]
(:require [brewtility.data.miscs :as miscs]
[brewtility.predicates.miscs :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.miscs :as cbf-miscs]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/options_test.cljc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns brewtility.predicates.options-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.predicates.options :as sut]))
(:require [brewtility.predicates.options :as sut]
[clojure.test :refer [deftest is testing]]))


(deftest type-test
Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/recipes_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.recipes-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.recipes :as recipes]
(:require [brewtility.data.recipes :as recipes]
[brewtility.predicates.recipes :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.recipes :as cbf-recipes]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/styles_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.styles-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.styles :as styles]
(:require [brewtility.data.styles :as styles]
[brewtility.predicates.styles :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.styles :as cbf-styles]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/waters_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.waters-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.waters :as waters]
(:require [brewtility.data.waters :as waters]
[brewtility.predicates.waters :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.waters :as cbf-waters]))


Expand Down
5 changes: 2 additions & 3 deletions test/brewtility/predicates/yeasts_test.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(ns brewtility.predicates.yeasts-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.data.yeasts :as yeasts]
(:require [brewtility.data.yeasts :as yeasts]
[brewtility.predicates.yeasts :as sut]
[clojure.test :refer [deftest is testing]]
[common-beer-format.yeasts :as cbf-yeasts]))


Expand Down
7 changes: 3 additions & 4 deletions test/brewtility/units/alcohol_content_test.cljc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(ns brewtility.units.alcohol-content-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.precision :as precision]
(:require [brewtility.precision :as precision]
[brewtility.units.alcohol-content :as sut]
[brewtility.units.options :as options]))
[brewtility.units.options :as options]
[clojure.test :refer [deftest is testing]]))


(deftest conversion-test
Expand Down
7 changes: 3 additions & 4 deletions test/brewtility/units/bitterness_test.cljc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(ns brewtility.units.bitterness-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.precision :as precision]
(:require [brewtility.precision :as precision]
[brewtility.units.bitterness :as sut]
[brewtility.units.options :as options]))
[brewtility.units.options :as options]
[clojure.test :refer [deftest is testing]]))


(deftest conversion-test
Expand Down
7 changes: 3 additions & 4 deletions test/brewtility/units/carbonation_test.cljc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(ns brewtility.units.carbonation-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.precision :as precision]
(:require [brewtility.precision :as precision]
[brewtility.units.carbonation :as sut]
[brewtility.units.options :as options]))
[brewtility.units.options :as options]
[clojure.test :refer [deftest is testing]]))


(deftest conversion-test
Expand Down
3 changes: 1 addition & 2 deletions test/brewtility/units/color_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
(:require [brewtility.precision :as precision]
[brewtility.units.color :as sut]
[brewtility.units.options :as options]
#? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])))
[clojure.test :refer [deftest is testing]]))


(deftest srm->rgba-test
Expand Down
7 changes: 3 additions & 4 deletions test/brewtility/units/pressure_test.cljc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(ns brewtility.units.pressure-test
(:require #? (:clj [clojure.test :refer [deftest is testing]])
#? (:cljs [cljs.test :refer-macros [deftest is testing]])
[brewtility.precision :as precision]
(:require [brewtility.precision :as precision]
[brewtility.units.options :as options]
[brewtility.units.pressure :as sut]))
[brewtility.units.pressure :as sut]
[clojure.test :refer [deftest is testing]]))


(deftest conversion-test
Expand Down
Loading

0 comments on commit b27f5eb

Please sign in to comment.