diff --git a/.clj-kondo/config.edn b/.clj-kondo/config.edn index b3153d2..f3fda7e 100644 --- a/.clj-kondo/config.edn +++ b/.clj-kondo/config.edn @@ -1,3 +1,2 @@ -{:hooks {:analyze-call {babashka.ffi/defcfn hooks.babashka.ffi/defcfn}} - :lint-as {babashka.sqlite3/with-db clojure.core/with-open +{:lint-as {babashka.sqlite3/with-db clojure.core/with-open babashka.sqlite3/with-transaction clojure.core/locking}} diff --git a/.clj-kondo/imports/babashka/ffi/config.edn b/.clj-kondo/imports/babashka/ffi/config.edn new file mode 100644 index 0000000..9b587d4 --- /dev/null +++ b/.clj-kondo/imports/babashka/ffi/config.edn @@ -0,0 +1 @@ +{:hooks {:analyze-call {babashka.ffi/defcfn hooks.babashka.ffi/defcfn}}} diff --git a/.clj-kondo/hooks/babashka/ffi.clj b/.clj-kondo/imports/babashka/ffi/hooks/babashka/ffi.clj similarity index 100% rename from .clj-kondo/hooks/babashka/ffi.clj rename to .clj-kondo/imports/babashka/ffi/hooks/babashka/ffi.clj diff --git a/deps.edn b/deps.edn index ccd9a31..c12f445 100644 --- a/deps.edn +++ b/deps.edn @@ -1 +1,14 @@ -{:paths ["src"]} +{:paths ["src"] + ;; On babashka the library is built in; on the JVM it comes from the + ;; babashka/ffi repository. + :deps {io.github.babashka/ffi + {:git/url "https://github.com/babashka/ffi" + :git/sha "ff81281509656d6bc085571db451aac1675302fb"}} + :aliases + {:test {:extra-paths ["test"] + :extra-deps {io.github.cognitect-labs/test-runner + {:git/tag "v0.5.1" + :git/sha "dfb30dd6605cb6c0efc275e1df1736f6e90d4d73"}} + :jvm-opts ["--enable-native-access=ALL-UNNAMED"] + :main-opts ["-m" "cognitect.test-runner"] + :exec-fn cognitect.test-runner.api/test}}}