Move mypy configuration to pyproject.toml
Change-Id: Ib4f953c1965b4bf7b5e9b078490ea3209dab6ee6 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -33,7 +33,6 @@ repos:
|
||||
rev: v1.14.1
|
||||
hooks:
|
||||
- id: mypy
|
||||
args: [--config-file=./mypy.ini]
|
||||
pass_filenames: false
|
||||
- repo: local
|
||||
hooks:
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
- ^api-ref/.*$
|
||||
- ^doc/.*$
|
||||
- ^LICENSE$
|
||||
- ^mypy.ini$
|
||||
- ^neutron_lib/locale/.*$
|
||||
- ^releasenotes/.*$
|
||||
- ^tox.ini$
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
# Config file options: https://mypy.readthedocs.io/en/stable/config_file.html
|
||||
|
||||
[mypy]
|
||||
incremental = True
|
||||
pretty = True
|
||||
show_error_context = True
|
||||
show_column_numbers = True
|
||||
warn_unused_ignores = True
|
||||
# remove gradually as progress is made
|
||||
disable_error_code = import-untyped,var-annotated,import-not-found
|
||||
|
||||
# honor excludes by not following there through imports
|
||||
follow_imports = silent
|
||||
|
||||
files = neutron_lib
|
||||
@@ -1,3 +1,15 @@
|
||||
[build-system]
|
||||
requires = ["pbr>=5.7.0", "setuptools>=64.0.0", "wheel"]
|
||||
build-backend = "pbr.build"
|
||||
|
||||
[tool.mypy]
|
||||
incremental = true
|
||||
pretty = true
|
||||
show_error_context = true
|
||||
show_column_numbers = true
|
||||
warn_unused_ignores = true
|
||||
# remove gradually as progress is made
|
||||
disable_error_code = "import-untyped,var-annotated,import-not-found"
|
||||
# honor excludes by not following there through imports
|
||||
follow_imports = "silent"
|
||||
files = "neutron_lib"
|
||||
|
||||
Reference in New Issue
Block a user