@@ -93,8 +93,11 @@ function version() {
9393
9494function versions() {
9595 info " versions"
96- # info "$(python --version)" <- not necessarily the uv python
97- info " $( uv --version) "
96+ if ! command -v docker > /dev/null 2>&1 ; then
97+ warn " uv not found, skipping uv version"
98+ else
99+ info " uv version: $( uv --version) "
100+ fi
98101 if ! command -v docker > /dev/null 2>&1 ; then
99102 warn " docker not found, skipping docker version"
100103 else
@@ -116,13 +119,7 @@ function install() {
116119 curl -LsSf https://astral.sh/uv/install.sh | sh
117120 fi
118121 info " install package"
119- uv sync --editable --all-extras
120- info " install markdown linter"
121- if command -v npm > /dev/null 2>&1 ; then
122- npm install --no-save markdownlint-cli2
123- else
124- warn " npm not found, skipping markdownlint-cli2 installation"
125- fi
122+ uv sync --all-extras
126123}
127124
128125function clean() {
@@ -253,14 +250,14 @@ function lint-doc() {
253250 info " lint documentation"
254251 # use markdownlint from David Anson (based on nodejs)
255252 # https://github.com/DavidAnson/markdownlint
256- npm exec " markdownlint-cli2@0.22.0" " ${DOC_ROOT} /**/*.md" " ${PROJECT_ROOT} /README.md"
253+ npm exec " markdownlint-cli2@0.22.0" -- " ${DOC_ROOT} /**/*.md" " ${PROJECT_ROOT} /README.md"
257254}
258255
259256function lint-scripts() {
260257 info " lint bash scripts"
261- info " shellcheck $( shellcheck --version | head -n 2 | tail -n 1) "
262- shellcheck --external-sources --shell bash --source-path " ${PROJECT_ROOT} " " ${PROJECT_ROOT} /dev"
263- shellcheck --external-sources --shell bash --source-path " ${SCRIPTS_ROOT} " " ${SCRIPTS_ROOT} /" * .sh
258+ info " shellcheck $( uv run shellcheck --version | head -n 2 | tail -n 1) "
259+ uv run shellcheck --external-sources --shell bash --source-path " ${PROJECT_ROOT} " " ${PROJECT_ROOT} /dev"
260+ uv run shellcheck --external-sources --shell bash --source-path " ${SCRIPTS_ROOT} " " ${SCRIPTS_ROOT} /" * .sh
264261}
265262
266263function mypy() {
@@ -328,10 +325,6 @@ function safety-check() {
328325 info " check dependencies for known security vulnerabilities"
329326 # main only no dev dependencies etc.
330327 uv run tox --recreate -e safety
331- # alternative
332- # uv pip install -U safety
333- # safety check
334- # #uv pip uninstall safety
335328}
336329
337330
0 commit comments