-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from metabase/potemkin
Use Potemkin to define model record types in defmodel macro
- Loading branch information
Showing
6 changed files
with
99 additions
and
56 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ profiles.clj | |
/build.xml | ||
/*.iml | ||
.envrc | ||
/.eastwood |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,79 @@ | ||
(defproject toucan "1.13.0" | ||
(defproject toucan "1.14.0-SNAPSHOT" | ||
:description "Functionality for defining your application's models and querying the database." | ||
:url "https://github.com/metabase/toucan" | ||
:license {:name "Eclipse Public License" | ||
:url "https://raw.githubusercontent.com/metabase/toucan/master/LICENSE.txt"} | ||
:url "https://raw.githubusercontent.com/metabase/toucan/master/LICENSE.txt"} | ||
:min-lein-version "2.5.0" | ||
:dependencies [[org.clojure/java.classpath "0.3.0"] | ||
[org.clojure/java.jdbc "0.7.9"] | ||
[org.clojure/tools.logging "0.4.1"] | ||
[org.clojure/tools.namespace "0.2.10"] | ||
[honeysql "0.9.4"]] | ||
:aliases {"bikeshed" ["bikeshed" "--max-line-length" "118" "--var-redefs" "false"] | ||
"lint" ["do" ["eastwood"] ["bikeshed"] ["docstring-checker"] ["check-namespace-decls"]] | ||
"test" ["expectations"] | ||
"start-db" ["shell" "./start-db"] ; `lein start-db` and stop-db are conveniences for running a test database via Docker | ||
"stop-db" ["shell" "docker" "stop" "toucan_test"]} | ||
:profiles {:dev {:dependencies [[org.clojure/clojure "1.10.0"] | ||
[expectations "2.1.10"] | ||
[postgresql "9.3-1102.jdbc41"]] | ||
:plugins [[docstring-checker "1.0.3"] | ||
[jonase/eastwood "0.3.4" | ||
:exclusions [org.clojure/clojure]] | ||
[lein-bikeshed "0.5.1"] | ||
[lein-check-namespace-decls "1.0.1"] | ||
[lein-expectations "0.0.8"] | ||
[lein-shell "0.5.0"]] | ||
:jvm-opts ["-Xverify:none"] | ||
:eastwood {:add-linters [:unused-locals | ||
:unused-private-vars] | ||
:exclude-namespaces [:test-paths]}}} | ||
:docstring-checker {:include [#"^toucan"] | ||
:exclude [#"test"]} | ||
:deploy-repositories [["clojars" {:url "https://clojars.org/repo" | ||
:username :env/clojars_username | ||
:password :env/clojars_password | ||
:sign-releases false}]]) | ||
|
||
:aliases | ||
{"test" ["with-profile" "+expectations" "expectations"] | ||
"bikeshed" ["with-profile" "+bikeshed" "bikeshed" "--max-line-length" "120"] | ||
"check-namespace-decls" ["with-profile" "+check-namespace-decls" "check-namespace-decls"] | ||
"eastwood" ["with-profile" "+eastwood" "eastwood"] | ||
"docstring-checker" ["with-profile" "+docstring-checker" "docstring-checker"] | ||
;; `lein lint` will run all linters | ||
"lint" ["do" ["eastwood"] ["bikeshed"] ["check-namespace-decls"] ["docstring-checker"]] | ||
;; `lein start-db` and stop-db are conveniences for running a test database via Docker | ||
"start-db" ["shell" "./start-db"] | ||
"stop-db" ["shell" "docker" "stop" "toucan_test"]} | ||
|
||
:dependencies | ||
[[org.clojure/java.classpath "0.3.0"] | ||
[org.clojure/java.jdbc "0.7.9"] | ||
[org.clojure/tools.logging "0.5.0"] | ||
[org.clojure/tools.namespace "0.3.1"] | ||
[honeysql "0.9.5"]] | ||
|
||
:profiles | ||
{:dev | ||
{:dependencies | ||
[[org.clojure/clojure "1.10.1"] | ||
[expectations "2.2.0-beta2"] | ||
[org.postgresql/postgresql "42.2.5"]] | ||
|
||
:plugins | ||
[[lein-check-namespace-decls "1.0.1"] | ||
[lein-expectations "0.0.8"] | ||
[lein-shell "0.5.0"]] | ||
|
||
:injections | ||
[(require 'expectations) | ||
(#'expectations/disable-run-on-shutdown)] | ||
|
||
:jvm-opts | ||
["-Xverify:none"]} | ||
|
||
:expectations | ||
{:plugins [[lein-expectations "0.0.8" :exclusions [expectations]]]} | ||
|
||
:eastwood | ||
{:plugins | ||
[[jonase/eastwood "0.3.6" :exclusions [org.clojure/clojure]]] | ||
|
||
:add-linters | ||
[:unused-private-vars | ||
:unused-namespaces | ||
:unused-fn-args | ||
:unused-locals]} | ||
|
||
:docstring-checker | ||
{:plugins | ||
[[docstring-checker "1.0.3"]] | ||
|
||
:docstring-checker | ||
{:exclude [#"test"]}} | ||
|
||
:bikeshed | ||
{:plugins | ||
[[lein-bikeshed "0.5.2"]]} | ||
|
||
:check-namespace-decls | ||
{:plugins [[lein-check-namespace-decls "1.0.2"]] | ||
:check-namespace-decls {:prefix-rewriting true}}} | ||
|
||
:deploy-repositories | ||
[["clojars" | ||
{:url "https://clojars.org/repo" | ||
:username :env/clojars_username | ||
:password :env/clojars_password | ||
:sign-releases false}]]) |
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
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
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
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