Skip to content

Commit 22e6e14

Browse files
committed
improve makefile and add python dev enviroment requirements file
1 parent 769cc28 commit 22e6e14

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

pyscriptjs/Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ test:
4444
.PHONY: test-py
4545
test-py:
4646
@echo "Tests are coming :( this is a placeholder and it's meant to fail!"
47-
$(env)/bin/pytest -vv $(ARGS) tests/ --log-cli-level=warning
47+
$(conda_run) -vv $(ARGS) tests/ --log-cli-level=warning
4848

4949
.PHONY: test-ts
5050
test-ts:
5151
@echo "Tests are coming :( this is a placeholder and it's meant to fail!"
5252
npm run tests
5353

5454
.PHONY: fmt
55-
fmt:
56-
$(env)/bin/black -l 88 .
55+
fmt: fmt-py fmt-ts
56+
@echo "Format completed"
5757

5858
.PHONY: fmt-check
59-
fmt-check:
60-
$(env)/bin/black -l 88 --check .
59+
fmt-check: fmt-ts-check fmt-py
60+
@echo "Format check completed"
6161

6262
.PHONY: fmt-ts
6363
fmt-ts:
@@ -69,16 +69,16 @@ fmt-ts-check:
6969

7070
.PHONY: fmt-py
7171
fmt-py:
72-
$(env)/bin/black -l 88 .
72+
$(conda_run) black -l 88 .
7373

7474
.PHONY: fmt-py-check
7575
fmt-py-check:
76-
$(env)/bin/black -l 88 --check .
76+
$(conda_run) black -l 88 --check .
7777

7878
.PHONY: lint
79-
lint:
80-
npm run lint
79+
lint: lint-ts
80+
@echo "Format check completed"
8181

82-
.PHONY: lint-js
83-
lint-js:
84-
npm run lint
82+
.PHONY: lint-ts
83+
lint-ts:
84+
$(conda_run) npm run lint

pyscriptjs/environment.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
channels:
2+
- defaults
3+
- conda-forge
4+
dependencies:
5+
- python=3.9
6+
- pip=20.2.2
7+
- pytest=7
8+
- nodejs=16
9+
- black
10+
- isort
11+
- codespell

0 commit comments

Comments
 (0)