Skip to content

Commit 119c4b9

Browse files
authored
Merge pull request #735 from evhub/develop
2 parents 8e65270 + dcf89c0 commit 119c4b9

37 files changed

+3105
-1325
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
args:
3131
- --ignore=W503,E501,E265,E402,F405,E305,E126
3232
- repo: https://github.com/pre-commit/mirrors-autopep8
33-
rev: v2.0.1
33+
rev: v2.0.2
3434
hooks:
3535
- id: autopep8
3636
args:

DOCS.md

+322-88
Large diffs are not rendered by default.

HELP.md

-1
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,6 @@ Another useful Coconut feature is implicit partials. Coconut supports a number o
11321132
```coconut
11331133
.attr
11341134
.method(args)
1135-
obj.
11361135
func$
11371136
seq[]
11381137
iter$[]

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ global-include *.md
88
global-include *.json
99
global-include *.toml
1010
global-include *.coco
11+
global-include *.ini
1112
global-include py.typed
1213
prune coconut/tests/dest
1314
prune docs

Makefile

+25-12
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dev-py3: clean setup-py3
2222
.PHONY: setup
2323
setup:
2424
python -m ensurepip
25-
python -m pip install --upgrade "setuptools<58" wheel pip pytest_remotedata
25+
python -m pip install --upgrade setuptools wheel pip pytest_remotedata
2626

2727
.PHONY: setup-py2
2828
setup-py2:
@@ -32,7 +32,7 @@ setup-py2:
3232
.PHONY: setup-py3
3333
setup-py3:
3434
python3 -m ensurepip
35-
python3 -m pip install --upgrade "setuptools<58" wheel pip pytest_remotedata
35+
python3 -m pip install --upgrade setuptools wheel pip pytest_remotedata
3636

3737
.PHONY: setup-pypy
3838
setup-pypy:
@@ -42,7 +42,7 @@ setup-pypy:
4242
.PHONY: setup-pypy3
4343
setup-pypy3:
4444
pypy3 -m ensurepip
45-
pypy3 -m pip install --upgrade "setuptools<58" wheel pip pytest_remotedata
45+
pypy3 -m pip install --upgrade setuptools wheel pip pytest_remotedata
4646

4747
.PHONY: install
4848
install: setup
@@ -57,11 +57,11 @@ install-py3: setup-py3
5757
python3 -m pip install -e .[tests]
5858

5959
.PHONY: install-pypy
60-
install-pypy:
60+
install-pypy: setup-pypy
6161
pypy -m pip install -e .[tests]
6262

6363
.PHONY: install-pypy3
64-
install-pypy3:
64+
install-pypy3: setup-pypy3
6565
pypy3 -m pip install -e .[tests]
6666

6767
.PHONY: format
@@ -155,11 +155,19 @@ test-verbose: clean
155155
python ./coconut/tests/dest/runner.py
156156
python ./coconut/tests/dest/extras.py
157157

158-
# same as test-mypy but uses --verbose and --check-untyped-defs
158+
# same as test-mypy but uses --verbose
159+
.PHONY: test-mypy-verbose
160+
test-mypy-verbose: export COCONUT_USE_COLOR=TRUE
161+
test-mypy-verbose: clean
162+
python ./coconut/tests --strict --force --target sys --verbose --jobs 0 --keep-lines --mypy --follow-imports silent --ignore-missing-imports --allow-redefinition
163+
python ./coconut/tests/dest/runner.py
164+
python ./coconut/tests/dest/extras.py
165+
166+
# same as test-mypy but uses --check-untyped-defs
159167
.PHONY: test-mypy-all
160168
test-mypy-all: export COCONUT_USE_COLOR=TRUE
161169
test-mypy-all: clean
162-
python ./coconut/tests --strict --force --target sys --verbose --keep-lines --mypy --follow-imports silent --ignore-missing-imports --allow-redefinition --check-untyped-defs
170+
python ./coconut/tests --strict --force --target sys --keep-lines --mypy --follow-imports silent --ignore-missing-imports --allow-redefinition --check-untyped-defs
163171
python ./coconut/tests/dest/runner.py
164172
python ./coconut/tests/dest/extras.py
165173

@@ -198,6 +206,12 @@ test-watch: clean
198206
test-mini:
199207
coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force --jobs 0
200208

209+
.PHONY: debug-comp-crash
210+
debug-comp-crash: export COCONUT_USE_COLOR=TRUE
211+
debug-comp-crash: export COCONUT_PURE_PYTHON=TRUE
212+
debug-comp-crash:
213+
python -X dev -m coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --strict --line-numbers --keep-lines --force --jobs 0
214+
201215
.PHONY: debug-test-crash
202216
debug-test-crash:
203217
python -X dev ./coconut/tests/dest/runner.py
@@ -221,7 +235,7 @@ clean:
221235

222236
.PHONY: wipe
223237
wipe: clean
224-
rm -rf vprof.json profile.log *.egg-info
238+
rm -rf vprof.json profile.log *.egg-info
225239
-find . -name "__pycache__" -delete
226240
-C:/GnuWin32/bin/find.exe . -name "__pycache__" -delete
227241
-find . -name "*.pyc" -delete
@@ -253,19 +267,18 @@ check-reqs:
253267
python ./coconut/requirements.py
254268

255269
.PHONY: profile-parser
270+
profile-parser: export COCONUT_USE_COLOR=TRUE
256271
profile-parser: export COCONUT_PURE_PYTHON=TRUE
257272
profile-parser:
258273
coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force --profile --verbose --recursion-limit 4096 2>&1 | tee ./profile.log
259274

260275
.PHONY: profile-time
261-
profile-time: export COCONUT_PURE_PYTHON=TRUE
262276
profile-time:
263-
vprof -c h "coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
277+
vprof -c h "./coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
264278

265279
.PHONY: profile-memory
266-
profile-memory: export COCONUT_PURE_PYTHON=TRUE
267280
profile-memory:
268-
vprof -c m "coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
281+
vprof -c m "./coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
269282

270283
.PHONY: view-profile
271284
view-profile:

0 commit comments

Comments
 (0)