Added line information to the "with document" generated lines.
This commit is contained in:
parent
93c824b083
commit
abbf100d17
3
Makefile
3
Makefile
|
|
@ -69,9 +69,8 @@ test_docker_local:
|
|||
# Run in the same directory to make the __pycache__ valid
|
||||
# Also change the owner of the files to the current user (we run as root like in GitHub)
|
||||
docker run --rm -v $(CWD):$(CWD) --workdir="$(CWD)" setsoft/kicad_auto_test:latest \
|
||||
/bin/bash -c "flake8 . --count --statistics ; pytest-3 --test_dir output ; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ .coverage"
|
||||
/bin/bash -c "flake8 . --count --statistics ; pytest-3 --test_dir output ; $(PY_COV) html; chown -R $(USER_ID):$(GROUP_ID) output/ tests/board_samples/ .coverage htmlcov/"
|
||||
$(PY_COV) report
|
||||
$(PY_COV) html
|
||||
x-www-browser htmlcov/index.html
|
||||
|
||||
docker_shell:
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ def document(sentences, to_source, **kw):
|
|||
else: # pragma: no cover
|
||||
target = Name(id=doc_id, ctx=Store())
|
||||
sentences[n] = Assign(targets=[target], value=Str(s=type_hint+s.value.s.rstrip()+post_hint))
|
||||
# copy_location(sentences[n], s)
|
||||
copy_location(sentences[n], s)
|
||||
# else:
|
||||
# if isinstance(s, Expr):
|
||||
# print(s.__dict__)
|
||||
|
|
|
|||
Loading…
Reference in New Issue