8000 Make all targets phony. (#249) · sudhircw/pyscript@990b0b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 990b0b2

Browse files
authored
Make all targets phony. (pyscript#249)
1 parent 20a70ed commit 990b0b2

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

pyscriptjs/Makefile

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,76 +10,62 @@ CONDA_ENV ?= ./env
1010
env := $(CONDA_ENV)
1111
conda_run := conda run -p $(env)
1212

13-
.PHONY: setup
1413
setup:
1514
@if [ -z "$${CONDA_SHLVL:+x}" ]; then echo "Conda is not installed." && exit 1; fi
1615
$(CONDA_EXE) env $(shell [ -d $(env) ] && echo update || echo create) -p $(env) --file environment.yml
1716

18-
.PHONY: clean
1917
clean:
2018
find . -name \*.py[cod] -delete
2119
rm -rf .pytest_cache .coverage coverage.xml
2220

2321
clean-all: clean
2422
rm -rf $(env) *.egg-info
2523

26-
.PHONY: shell
2724
shell:
2825
@export CONDA_ENV_PROMPT='<{name}>'
2926
@echo 'conda activate $(env)'
3027

31-
.PHONY: dev
3228
dev:
3329
npm run dev
3430

35-
.PHONY: build
3631
build:
3732
npm run build
3833

39-
.PHONY: test
4034
test:
4135
@echo "Tests are coming :( this is a placeholder and it's meant to fail!"
4236
$(conda_run) pytest -vv $(ARGS) tests/ --log-cli-level=warning
4337

44-
.PHONY: test-py
4538
test-py:
4639
@echo "Tests are coming :( this is a placeholder and it's meant to fail!"
4740
$(conda_run) pytest -vv $(ARGS) tests/ --log-cli-level=warning
4841

49-
.PHONY: test-ts
5042
test-ts:
5143
@echo "Tests are coming :( this is a placeholder and it's meant to fail!"
5244
npm run tests
5345

54-
.PHONY: fmt
5546
fmt: fmt-py fmt-ts
5647
@echo "Format completed"
5748

58-
.PHONY: fmt-check
5949
fmt-check: fmt-ts-check fmt-py-check
6050
@echo "Format check completed"
6151

62-
.PHONY: fmt-ts
6352
fmt-ts:
6453
npm run format
6554

66-
.PHONY: fmt-ts-check
6755
fmt-ts-check:
6856
npm run format:check
6957

70-
.PHONY: fmt-py
7158
fmt-py:
7259
$(conda_run) black --skip-string-normalization .
7360
$(conda_run) isort --profile black .
7461

75-
.PHONY: fmt-py-check
7662
fmt-py-check:
7763
$(conda_run) black -l 88 --check .
7864

79-
.PHONY: lint
8065
lint: lint-ts
8166
@echo "Format check completed"
8267

83-
.PHONY: lint-ts
8468
lint-ts:
8569
$(conda_run) npm run lint
70+
71+
.PHONY: $(MAKECMDGOALS)

0 commit comments

Comments
 (0)
0