From 2457fe86f17ee0fbdc9282588c56d5646a9db38a Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Thu, 12 Nov 2020 13:33:25 +0100 Subject: [PATCH] move flags to config --- .pre-commit-config.yaml | 1 - mypy.ini | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8cbe6b4b6e..5353cc9842 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,6 @@ repos: entry: mypy language: python types: [python] - args: [--scripts-are-modules, --warn-unused-ignores] require_serial: true pass_filenames: true files: >- diff --git a/mypy.ini b/mypy.ini index 330f0abc5d..22d349aacf 100644 --- a/mypy.ini +++ b/mypy.ini @@ -4,6 +4,9 @@ python_version = 3.6 check_untyped_defs = True +scripts_are_modules = True +warn_unused_ignores = True +warn_redundant_casts = True ; Strictness settings ; disallow_any_unimported = True @@ -22,8 +25,6 @@ check_untyped_defs = True ; no_strict_optional = False ; Enable all warnings -; warn_redundant_casts = True -; warn_unused_ignores = True ; warn_return_any = True ; warn_unreachable = True