Skip to content

Commit e45c45e

Browse files
committed
feat(pyston,pyston3): new completion, python alias
1 parent b21c27f commit e45c45e

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

completions/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
/python3.10
180180
/pypy
181181
/pypy3
182+
/pyston
183+
/pyston3
182184
/pyvenv-3.[456789]
183185
/pyvenv-3.10
184186
/qemu-kvm

completions/Makefile.am

+5-3
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,8 @@ CLEANFILES = \
698698
pylint-3 \
699699
pypy \
700700
pypy3 \
701+
pyston \
702+
pyston3 \
701703
pytest-2 \
702704
pytest-3 \
703705
python2 \
@@ -950,9 +952,9 @@ symlinks: $(DATA)
950952
$(ss) pylint \
951953
pylint-2 pylint-3
952954
$(ss) python \
953-
micropython pypy pypy3 python2 python2.7 python3 python3.3 \
954-
python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 \
955-
python3.10
955+
micropython pypy pypy3 pyston pyston3 python2 python2.7 \
956+
python3 python3.3 python3.4 python3.5 python3.6 python3.7 \
957+
python3.8 python3.9 python3.10
956958
$(ss) pyvenv \
957959
pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8 \
958960
pyvenv-3.9 pyvenv-3.10

completions/python

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ _python()
7171
fi
7272
} &&
7373
complete -F _python python python2 python2.7 python3 python3.{3..10} \
74-
pypy pypy3 micropython
74+
pypy pypy3 pyston pyston3 micropython
7575

7676
# ex: filetype=sh

test/t/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ EXTRA_DIST = \
490490
test_pyflakes.py \
491491
test_pylint.py \
492492
test_pylint_3.py \
493+
test_pyston.py \
493494
test_pytest.py \
494495
test_python.py \
495496
test_python3.py \

test/t/test_pyston.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
4+
class TestPyston:
5+
@pytest.mark.complete("pyston ")
6+
def test_basic(self, completion):
7+
assert completion
8+
9+
@pytest.mark.complete("pyston -")
10+
def test_options(self, completion):
11+
assert completion

0 commit comments

Comments
 (0)