skyline-apiserver/tools/mypywrap.sh
zhu.boxiang 1a050ec2c4 chore: Remove poetry
1. remove poetry dependency
2. add requirements.tx, test-requirements.txt, setup.py and setup.cfg
3. add more env into tox.ini
4. remove some command from Makefile
5. cleanup the dependencies
6. change some commands of README
7. update the devstack

Depends-On: https://review.opendev.org/c/openstack/skyline-console/+/843257

Change-Id: I4cefc4cfdaadf7b3ba03ffe8441e9ae760772349
2022-05-25 22:26:42 +08:00

20 lines
555 B
Bash

#!/bin/sh
#
# A wrapper around mypy that allows us to specify what files to run 'mypy' type
# checks on. Intended to be invoked via tox:
#
# tox -e mypy
#
# Eventually this should go away once we have either converted everything or
# converted enough and ignored [1] the rest.
#
# [1] http://mypy.readthedocs.io/en/latest/config_file.html#per-module-flags
if [ $# -eq 0 ]; then
# if no arguments provided, use the standard converted lists
python -m mypy skyline_apiserver
else
# else test what the user asked us to
python -m mypy $@
fi