This is an automated email from the ASF dual-hosted git repository. tn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push: new f3b54e3 add sync-dev target, fix sync-dev script in case .vscode dir does not exist f3b54e3 is described below commit f3b54e32123ce12a664d18494bd12d3dd5883bf9 Author: Thomas Neidhart <t...@apache.org> AuthorDate: Fri Feb 14 15:38:36 2025 +0100 add sync-dev target, fix sync-dev script in case .vscode dir does not exist --- Makefile | 3 +++ scripts/poetry/sync-dev | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 251f45c..2efe898 100644 --- a/Makefile +++ b/Makefile @@ -29,3 +29,6 @@ serve: sync: $(SCRIPTS)/sync $(PYTHON) + +sync-dev: + $(SCRIPTS)/sync-dev $(PYTHON) diff --git a/scripts/poetry/sync-dev b/scripts/poetry/sync-dev index 876f894..8fca73d 100755 --- a/scripts/poetry/sync-dev +++ b/scripts/poetry/sync-dev @@ -4,6 +4,7 @@ _python="$(which python3)" poetry env use "${1:-$_python}" poetry lock poetry sync +if [ -d ".vscode" ]; then cat <<EOF > .vscode/settings.json { "makefile.configureOnOpen": false, @@ -11,3 +12,4 @@ cat <<EOF > .vscode/settings.json "python.defaultInterpreterPath": "\${workspaceFolder}/$(poetry env info --path)/bin/python3" } EOF +fi --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tooling.apache.org For additional commands, e-mail: dev-h...@tooling.apache.org