flake8 linting
This commit is contained in:
20
mypy
20
mypy
@ -13,12 +13,30 @@ if [ ! -d "venv" -o ! -x "venv/bin/python" ]; then
|
||||
fi
|
||||
|
||||
if [ ! -x ./venv/bin/mypy ]; then
|
||||
./venv/bin/pip install mypy
|
||||
./venv/bin/pip install mypy trio-typing[mypy] types-PyYAML types-aiofiles types-colorama types-cryptography types-protobuf types-toml
|
||||
fi
|
||||
|
||||
site_pkgs=$(./venv/bin/python -c 'import site; print(site.getsitepackages()[0])')
|
||||
if [ ! -d "${site_pkgs}/trio_typing" ]; then
|
||||
./venv/bin/pip install trio-typing[mypy]
|
||||
fi
|
||||
if [ ! -d "${site_pkgs}/yaml-stubs" ]; then
|
||||
./venv/bin/pip install types-PyYAML
|
||||
fi
|
||||
if [ ! -d "${site_pkgs}/aiofiles-stubs" ]; then
|
||||
./venv/bin/pip install types-aiofiles
|
||||
fi
|
||||
if [ ! -d "${site_pkgs}/colorama-stubs" ]; then
|
||||
./venv/bin/pip install types-colorama
|
||||
fi
|
||||
if [ ! -d "${site_pkgs}/cryptography-stubs" ]; then
|
||||
./venv/bin/pip install types-cryptography
|
||||
fi
|
||||
if [ ! -d "${site_pkgs}/google-stubs" ]; then
|
||||
./venv/bin/pip install types-protobuf
|
||||
fi
|
||||
if [ ! -d "${site_pkgs}/toml-stubs" ]; then
|
||||
./venv/bin/pip install types-toml
|
||||
fi
|
||||
|
||||
./venv/bin/mypy --install-types src
|
||||
|
Reference in New Issue
Block a user