From c50c68fef179d9306f1a3432f48985bf20555e38 Mon Sep 17 00:00:00 2001 From: Jonathan Abrahams Date: Tue, 27 Mar 2018 14:30:46 -0400 Subject: SERVER-23312 Python linting - Lint using pylint, pydocstyle & mypy --- mypy.ini | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 mypy.ini (limited to 'mypy.ini') diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 00000000000..7d3f3753832 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,20 @@ +[mypy] +# Check Python 2 code for type annotations in comments. +python_version = 2.7 + +[mypy-*] +disallow_untyped_defs = False +# Do not error on imported files since all imported files may not be mypy clean. +follow_imports = silent +# Do not error if imports are not found. +# This can be a problem with standalone scripts and relative imports. +# This will limit effectiveness but avoids mypy complaining about running code. +ignore_missing_imports = True + +[mypy-idl*] +# Error if any code is missing type annotations. +disallow_untyped_defs = True + +[mypy-lint*] +# Error if any code is missing type annotations. +disallow_untyped_defs = True -- cgit v1.2.1