File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11SELDON_CORE_DIR =..
22VERSION := $(shell cat ../version.txt)
3+ REPO_ROOT := $(shell git rev-parse --show-toplevel 2>/dev/null || pwd)
34
45.PHONY : get_apis
56get_apis :
106107 nbqa isort \
107108 ../ --profile black --nbqa-exclude " (proto|seldon_core/proto/|.eggs|.tox|_README\.ipynb)"
108109
110+ .ONESHELL :
109111lint :
110112 # black \
111113# --check ./ ../testing/scripts \
@@ -121,7 +123,7 @@ lint:
121123# --no-pager diff \
122124# --exit-code \
123125# -- python/licenses/license_info.no_versions.csv
124- git -C .. --no-pager diff --exit-code -- python/licenses/license_info.no_versions.csv
126+ git -C "$(REPO_ROOT)" --no-pager diff --exit-code -- python/licenses/license_info.no_versions.csv
125127
126128.PHONY : clean
127129clean :
You can’t perform that action at this time.
0 commit comments