diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b9f78d3..27477a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -124,6 +124,8 @@ jobs: uses: codecov/codecov-action@v4.5.0 with: files: ./target/coverage/codecov.json + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} codespell: runs-on: ubuntu-20.04 diff --git a/deps.edn b/deps.edn index 24bd3de..dbd2be7 100644 --- a/deps.edn +++ b/deps.edn @@ -67,7 +67,7 @@ ;; ;; clojure -M:kondo --copy-configs --dependencies --lint "$(clojure -A:dev -Spath)" --skip-lint --parallel :kondo - {:replace-deps {clj-kondo/clj-kondo {:mvn/version "2023.09.07" #_"2024.08.01"}} + {:replace-deps {clj-kondo/clj-kondo {:mvn/version "2024.08.29"}} :main-opts ["-m" "clj-kondo.main"]} ;; lint everything with Kondo diff --git a/src/toucan2/util.clj b/src/toucan2/util.clj index a3be9af..1f6a0b1 100644 --- a/src/toucan2/util.clj +++ b/src/toucan2/util.clj @@ -32,7 +32,7 @@ "Locale-agnostic version of [[clojure.string/lower-case]]. `clojure.string/lower-case` uses the default locale in conversions, turning `ID` into `ıd`, in the Turkish locale. This function always uses the `Locale/US` locale." [^CharSequence s] - (.. s toString (toLowerCase (java.util.Locale/US)))) + (.. s toString (toLowerCase java.util.Locale/US))) (defn maybe-derive "Derive `child` from `parent` only if `child` is not already a descendant of `parent`." diff --git a/toucan1/test/toucan/models_test.clj b/toucan1/test/toucan/models_test.clj index 68345ae..e8e443e 100644 --- a/toucan1/test/toucan/models_test.clj +++ b/toucan1/test/toucan/models_test.clj @@ -350,7 +350,7 @@ ;; queue (deftest ^:synchronized post-insert-test (test/with-discarded-table-changes Category - (binding [category/*categories-awaiting-moderation* (atom (clojure.lang.PersistentQueue/EMPTY))] + (binding [category/*categories-awaiting-moderation* (atom clojure.lang.PersistentQueue/EMPTY)] (is (= (instance/instance Category {:id 5, :name "toucannery", :parent-category-id nil}) (t1.db/insert! Category :name "toucannery"))) (testing `category/*categories-awaiting-moderation* @@ -385,13 +385,13 @@ ;; queue (deftest ^:synchronized post-update-test (test/with-discarded-table-changes Category - (binding [category/*categories-recently-updated* (atom (clojure.lang.PersistentQueue/EMPTY))] + (binding [category/*categories-recently-updated* (atom clojure.lang.PersistentQueue/EMPTY)] (is (= true (t1.db/update! Category 2 :name "lobster"))) (is (= 2 (peek @category/*categories-recently-updated*))))) (test/with-discarded-table-changes Category - (binding [category/*categories-recently-updated* (atom (clojure.lang.PersistentQueue/EMPTY))] + (binding [category/*categories-recently-updated* (atom clojure.lang.PersistentQueue/EMPTY)] (is (= true (t1.db/update! Category 1 :name "fine-dining"))) (is (= true diff --git a/toucan1/test/toucan/test_models/category.clj b/toucan1/test/toucan/test_models/category.clj index a26039a..63c5a87 100644 --- a/toucan1/test/toucan/test_models/category.clj +++ b/toucan1/test/toucan/test_models/category.clj @@ -38,7 +38,7 @@ (def ^:dynamic *categories-awaiting-moderation* "A poor man's message queue of newly added Category IDs that are \"awating moderation\"." - (atom (clojure.lang.PersistentQueue/EMPTY))) + (atom clojure.lang.PersistentQueue/EMPTY)) (defn add-category-to-moderation-queue! [{:keys [id], :as new-category}] (swap! *categories-awaiting-moderation* conj id) @@ -46,7 +46,7 @@ (def ^:dynamic *categories-recently-updated* "A simple queue of recently updated Category IDs." - (atom (clojure.lang.PersistentQueue/EMPTY))) + (atom clojure.lang.PersistentQueue/EMPTY)) (defn add-category-to-updated-queue! [{:keys [id]}] (swap! *categories-recently-updated* conj id))