Skip to content

Commit

Permalink
vscode config
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Apr 28, 2023
1 parent 8959ca9 commit b8a8480
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ push-version: tag-version
setuptools
@$@/bin/pip3 list --verbose

devenv: .venv ## create a python virtual environment with dev tools (e.g. linters, etc)
devenv: .venv .vscode/settings.json .vscode/launch.json ## create a development environment (configs, virtual-env, hooks, ...)
$</bin/pip3 --quiet install -r requirements/devenv.txt
# Installing pre-commit hooks in current .git repo
@$</bin/pre-commit install
Expand Down Expand Up @@ -465,10 +465,16 @@ nodenv: node_modules ## builds node_modules local environ (TODO)
@echo "WARNING ##### $@ does not exist, cloning $< as $@ ############"; cp $< $@)


.vscode/settings.json: .vscode-template/settings.json
$(info WARNING: ##### $< is newer than $@ ####)
@diff -uN $@ $<
@false
.vscode/settings.json: .vscode/settings.template.json
$(if $(wildcard $@), \
@echo "WARNING ##### $< is newer than $@ ####"; diff -uN $@ $<; false;,\
@echo "WARNING ##### $@ does not exist, cloning $< as $@ ############"; cp $< $@)


.vscode/launch.json: .vscode/launch.template.json
$(if $(wildcard $@), \
@echo "WARNING ##### $< is newer than $@ ####"; diff -uN $@ $<; false;,\
@echo "WARNING ##### $@ does not exist, cloning $< as $@ ############"; cp $< $@)



Expand Down

0 comments on commit b8a8480

Please sign in to comment.