add Makefile extra/cloc, bump nt target version
authorShane Jaroch <chown_tee@proton.me>
Mon, 11 Jul 2022 16:20:26 +0000 (12:20 -0400)
committerShane Jaroch <chown_tee@proton.me>
Mon, 11 Jul 2022 16:20:26 +0000 (12:20 -0400)
Makefile
ntclient/__init__.py

index f414d91b9eee1d41f4475e35abf97209b836e17a..4fa657eae40608ce63a7f67bedba1dc401662b7c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -153,3 +153,21 @@ clean:     ## Clean up __pycache__ and leftover bits
        rm -rf nutra.egg-info/
        rm -rf .pytest_cache/ .mypy_cache/
        find ntclient/ tests/ -name __pycache__ -o -name .coverage -o -name .pytest_cache | xargs rm -rf
+
+
+# ---------------------------------------
+# Extras
+# ---------------------------------------
+
+CLOC_ARGS ?=
+.PHONY: extras/cloc
+extras/cloc:   ## Count lines of source code
+       - cloc \
+       --exclude-dir=\
+       .venv,venv,\
+       .mypy_cache,.pytest_cache,\
+       .idea,\
+       build,dist \
+       --exclude-ext=svg \
+       $(CLOC_ARGS) \
+       .
index 6a88bfe7ccc7fea453b0e0813c93e9457eb8d177..366b00a510cc73ae77194e6c9221685bde4a78aa 100755 (executable)
@@ -43,7 +43,7 @@ __copyright__ = "Copyright 2018-2022 Shane Jaroch"
 __url__ = "https://github.com/nutratech/cli"
 
 # Sqlite target versions
-__db_target_nt__ = "0.0.4"
+__db_target_nt__ = "0.0.5"
 __db_target_usda__ = "0.0.8"
 
 # Global variables