mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +08:00
Adding yapf to env check
This commit is contained in:
parent
06a181fcf5
commit
1f236d53d4
@ -649,8 +649,6 @@ def checkenv() -> None:
|
|||||||
print('Checking environment...', flush=True)
|
print('Checking environment...', flush=True)
|
||||||
|
|
||||||
python_bin = 'python3.7'
|
python_bin = 'python3.7'
|
||||||
pylint_min_ver = [2, 4, 3]
|
|
||||||
mypy_min_ver = [0, 740]
|
|
||||||
|
|
||||||
# Make sure they've got our target python version.
|
# Make sure they've got our target python version.
|
||||||
if subprocess.run(['which', python_bin], check=False,
|
if subprocess.run(['which', python_bin], check=False,
|
||||||
@ -666,8 +664,9 @@ def checkenv() -> None:
|
|||||||
|
|
||||||
# Check for some required python modules.
|
# Check for some required python modules.
|
||||||
for modname, minver in [
|
for modname, minver in [
|
||||||
('pylint', pylint_min_ver),
|
('pylint', [2, 4, 3]),
|
||||||
('mypy', mypy_min_ver),
|
('mypy', [0, 740]),
|
||||||
|
('yapf', [0, 28, 0]),
|
||||||
('typing_extensions', None),
|
('typing_extensions', None),
|
||||||
('pytz', None),
|
('pytz', None),
|
||||||
]:
|
]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user