Merge "mypy: Add boilerplate configuration"
This commit is contained in:
commit
07011c05c9
|
@ -34,8 +34,12 @@ lib64
|
|||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
cover/
|
||||
.mypy.cache/
|
||||
.coverage*
|
||||
.tox
|
||||
stestr
|
||||
.venv
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
|
@ -50,3 +54,8 @@ doc/build
|
|||
# pbr generates these
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
|
||||
# reno build
|
||||
releasenotes/build
|
||||
RELEASENOTES.rst
|
||||
releasenotes/notes/reno.cache
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
|
||||
Babel==1.3.0
|
||||
hacking==0.10.0
|
||||
mypy==0.720
|
||||
oslotest==1.5.1
|
||||
|
|
|
@ -38,3 +38,15 @@ input_file = oslo.{{cookiecutter.module_name}}/locale/oslo.{{cookiecutter.module
|
|||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = oslo.{{cookiecutter.module_name}}/locale/oslo.{{cookiecutter.module_name}}.pot
|
||||
|
||||
[mypy]
|
||||
show_column_numbers = true
|
||||
show_error_context = true
|
||||
ignore_missing_imports = true
|
||||
follow_imports = skip
|
||||
incremental = true
|
||||
check_untyped_defs = true
|
||||
warn_unused_ignores = true
|
||||
|
||||
[mypy-oslo_{{ cookiecutter.module_name }}.tests.*]
|
||||
ignore_errors = true
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
# process, which may cause wedges in the gate later.
|
||||
|
||||
hacking<0.11,>=0.10.0
|
||||
mypy>=0.720 # MIT
|
||||
oslotest>=1.5.1
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
|
|
|
@ -44,6 +44,10 @@ deps =
|
|||
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
|
||||
[testenv:mypy]
|
||||
commands =
|
||||
mypy oslo_{{ cookiecutter.module_name }}
|
||||
|
||||
[testenv:debug]
|
||||
commands = oslo_debug_helper {posargs}
|
||||
|
||||
|
|
Loading…
Reference in New Issue