File tree 1 file changed +2
-16
lines changed 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -10,76 +10,62 @@ CONDA_ENV ?= ./env
10
10
env := $(CONDA_ENV )
11
11
conda_run := conda run -p $(env )
12
12
13
- .PHONY : setup
14
13
setup :
15
14
@if [ -z " $$ {CONDA_SHLVL:+x}" ]; then echo " Conda is not installed." && exit 1; fi
16
15
$(CONDA_EXE ) env $(shell [ -d $(env ) ] && echo update || echo create) -p $(env ) --file environment.yml
17
16
18
- .PHONY : clean
19
17
clean :
20
18
find . -name \* .py[cod] -delete
21
19
rm -rf .pytest_cache .coverage coverage.xml
22
20
23
21
clean-all : clean
24
22
rm -rf $(env ) * .egg-info
25
23
26
- .PHONY : shell
27
24
shell :
28
25
@export CONDA_ENV_PROMPT=' <{name}>'
29
26
@echo ' conda activate $(env)'
30
27
31
- .PHONY : dev
32
28
dev :
33
29
npm run dev
34
30
35
- .PHONY : build
36
31
build :
37
32
npm run build
38
33
39
- .PHONY : test
40
34
test :
41
35
@echo " Tests are coming :( this is a placeholder and it's meant to fail!"
42
36
$(conda_run ) pytest -vv $(ARGS ) tests/ --log-cli-level=warning
43
37
44
- .PHONY : test-py
45
38
test-py :
46
39
@echo " Tests are coming :( this is a placeholder and it's meant to fail!"
47
40
$(conda_run ) pytest -vv $(ARGS ) tests/ --log-cli-level=warning
48
41
49
- .PHONY : test-ts
50
42
test-ts :
51
43
@echo " Tests are coming :( this is a placeholder and it's meant to fail!"
52
44
npm run tests
53
45
54
- .PHONY : fmt
55
46
fmt : fmt-py fmt-ts
56
47
@echo " Format completed"
57
48
58
- .PHONY : fmt-check
59
49
fmt-check : fmt-ts-check fmt-py-check
60
50
@echo " Format check completed"
61
51
62
- .PHONY : fmt-ts
63
52
fmt-ts :
64
53
npm run format
65
54
66
- .PHONY : fmt-ts-check
67
55
fmt-ts-check :
68
56
npm run format:check
69
57
70
- .PHONY : fmt-py
71
58
fmt-py :
72
59
$(conda_run ) black --skip-string-normalization .
73
60
$(conda_run ) isort --profile black .
74
61
75
- .PHONY : fmt-py-check
76
62
fmt-py-check :
77
63
$(conda_run ) black -l 88 --check .
78
64
79
- .PHONY : lint
80
65
lint : lint-ts
81
66
@echo " Format check completed"
82
67
83
- .PHONY : lint-ts
84
68
lint-ts :
85
69
$(conda_run ) npm run lint
70
+
71
+ .PHONY : $(MAKECMDGOALS )
You can’t perform that action at this time.
0 commit comments