Skip to content

Commit ddecd23

Browse files
Shell calls in make are raining on my parade (#61)
1 parent 07b147f commit ddecd23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/python/Makefile.style

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@ python/autoflake: bh/venv
4646
python/isort/check:
4747
@$(DOCKER) pull -q alphachai/isort
4848
@$(MAKE) python/lint/announce/isort
49-
@$(DOCKER) run -it --rm --user $(id -u):$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/isort $(ISORT_FLAGS) --check-only $(PYTHON_LINT_TARGETS) --diff
49+
@$(DOCKER) run -it --rm --user $$(id -u):$$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/isort $(ISORT_FLAGS) --check-only $(PYTHON_LINT_TARGETS) --diff
5050

5151
.PHONY: python/isort
5252
## Fix python imports using isort
5353
python/isort:
5454
@$(DOCKER) pull -q alphachai/isort
55-
$(DOCKER) run -it --rm --user $(id -u):$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/isort $(ISORT_FLAGS) $(PYTHON_LINT_TARGETS)
55+
$(DOCKER) run -it --rm --user $$(id -u):$$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/isort $(ISORT_FLAGS) $(PYTHON_LINT_TARGETS)
5656

5757
.PHONY: python/black/check
5858
## Check python files using black
5959
python/black/check:
6060
@$(DOCKER) pull -q alphachai/black
6161
@$(MAKE) python/lint/announce/black
62-
@$(DOCKER) run -it --rm --user $(id -u):$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/black --check $(PYTHON_LINT_TARGETS)
62+
@$(DOCKER) run -it --rm --user $$(id -u):$$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/black --check $(PYTHON_LINT_TARGETS)
6363

6464
.PHONY: python/black
6565
## Reformat python files using black
6666
python/black:
6767
@$(DOCKER) pull -q alphachai/black
68-
$(DOCKER) run -it --rm --user $(id -u):$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/black $(PYTHON_LINT_TARGETS)
68+
$(DOCKER) run -it --rm --user $$(id -u):$$(id -g) --mount type=bind,src=$$(pwd),dst=/app alphachai/black $(PYTHON_LINT_TARGETS)
6969

7070
.PHONY: python/flake8
7171
## Check python style against pep8 using flake8

0 commit comments

Comments
 (0)