6e53c264b6
Add a "mypy" tox environment which runs mypy type checking against Cinder code. Taken from Stephen Finucane's Nova work at https://review.opendev.org/#/c/676208/ Added "show_error_codes" and "pretty" options. Generates an html report in ./mypy-report/ This adds stubs for oslo.i18n, so that _() calls are annotated as intended. It may be possible to do this with less .pyi files carried along here. Change-Id: I2589d22c1f16f2e177d34730a520591743c0c1e3
28 lines
865 B
Plaintext
28 lines
865 B
Plaintext
# The order of packages is significant, because pip processes them in the order
|
|
# of appearance. Changing the order has an impact on the overall integration
|
|
# process, which may cause wedges in the gate later.
|
|
|
|
# Install bounded pep8/pyflakes first, then let flake8 install
|
|
hacking>=3.1.0,<3.2.0 # Apache-2.0
|
|
flake8-import-order # LGPLv3
|
|
flake8-logging-format>=0.6.0 # Apache-2.0
|
|
|
|
stestr>=2.2.0 # Apache-2.0
|
|
coverage!=4.4,>=4.1 # Apache-2.0
|
|
ddt>=1.2.1 # MIT
|
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
|
oslotest>=3.2.0 # Apache-2.0
|
|
PyMySQL>=0.8.0 # MIT License
|
|
psycopg2>=2.8 # LGPL/ZPL
|
|
SQLAlchemy-Utils>=0.36.1 # BSD License
|
|
testtools>=2.4.0 # MIT
|
|
|
|
# bandit is not included in upper-constraints,
|
|
# so we need to pin it here to a known working version
|
|
bandit==1.6.0 # Apache-2.0
|
|
doc8>=0.6.0 # Apache-2.0
|
|
reno>=3.1.0 # Apache-2.0
|
|
Pygments>=2.2.0 # BSD license
|
|
|
|
mypy>=0.761 # MIT
|