Skip to content

Commit 7050a8a

Browse files
tox.ini: Complete the transition from pyre to pyright
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
1 parent 702f21a commit 7050a8a

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

tox.ini

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# 1. python 2.7 and 3.10 coverage test for changed, but not covered lines and mypy check
55
# 2. python 3.6 test and pylint warnings from changed lines
66
# 3. pytype (needs Python 3.8 for best results)
7-
# 4. pyre and pyright checks, pytest test report as markdown for GitHub Actions summary
8-
envlist = py38-covcombine-check, py311-lint-test, py310-pytype, py311-pyre-mdreport
7+
# 4. pyright checks, pytest test report as markdown for GitHub Actions summary
8+
envlist = py38-covcombine-check, py311-lint-test, py310-pytype, py311-pyright-mdreport
99
isolated_build = true
1010
skip_missing_interpreters = true
1111
requires =
@@ -42,25 +42,23 @@ description = Run in a {basepython} virtualenv:
4242
lint: {[lint]description}
4343
mdreport: Make a test report (which is shown in the GitHub Actions Summary Page)
4444
test: {[test]description}
45-
# https://pypi.org/project/pyre-check/ pyre intro: https://youtu.be/0FSXS5kw2m4
46-
pyre: Run pyre for static analyis, only passes using: tox -e py311-pyre
45+
# See https://microsoft.github.io/pyright/#/configuration for more in pyright
46+
pyright: Run pyright for static analyis
4747
check: Run mypy for static analyis
4848
pytype: Run pytype for static analyis, intro: https://youtu.be/abvW0mOrDiY
4949
# checkers(mypy) need the pytest dependices as well:
5050
extras =
5151
{check,pytype}: {[check]extras}
52-
{cov,covcp,covcombine,fox,check,lint,test,pytype,pyre,mdreport}: {[test]extras}
53-
{cov,covcp,covcombine,fox}: {[cov]extras}
52+
{cov,covcp,covcombine,fox,check,lint,test,pytype,pyright,mdreport}: {[test]extras}
53+
{cov,covcp,covcombine,fox}: {[cov]extras}
5454
deps =
5555
mdreport: pytest-md-report
5656
{py27-test,py27-cov}: pyftpdlib
5757
{py27-test,py27-cov}: pylint
5858
{cov,covcp,covcombine,fox}: coverage[toml]
5959
{cov,covcp,covcombine,fox}: diff-cover
6060
{lint,fox}: {[lint]deps}
61-
pyre: pyre-check
62-
pyre: pyre-extensions
63-
pyre: pyright
61+
pyright: pyright
6462
pytype: {[pytype]deps}
6563
allowlist_externals =
6664
{cov,covcp,covcombine,fox,check,lint,test,mdreport}: echo
@@ -81,7 +79,6 @@ passenv =
8179
covcp: HOME
8280
check: MYPY_FORCE_COLOR
8381
check: MYPY_FORCE_TERMINAL_WIDTH
84-
pyre: PYRE_TYPESHED
8582
{fox,check,pytype}: TERM
8683
fox: DISPLAY
8784
fox: XAUTHORITY
@@ -104,7 +101,7 @@ setenv =
104101
{[cov]setenv}
105102
commands =
106103
lint: {[lint]commands}
107-
pyre: {[pyre]commands}
104+
pyright: {[pyright]commands}
108105
check: {[check]commands}
109106
pytype: {[pytype]commands}
110107
{cov,covcp,covcombine,check,fox,test,mdreport}: {[test]commands}
@@ -200,7 +197,7 @@ commands =
200197
ignore = W191,W293,W504,E101,E126,E127,E201,E202,E203,E221,E222,E226,E227,E241,E251,E261,E262,E265,E301,E302,E303,E305,E722,W391,E401,E402,E741
201198
max-line-length = 129
202199

203-
[pyre]
200+
[pyright]
204201
commands =
205202
-pyright
206203

0 commit comments

Comments
 (0)