Skip to content

Commit

Permalink
move flags to config
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Nov 12, 2020
1 parent 884e816 commit 2457fe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand Down
5 changes: 3 additions & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 2457fe8

Please sign in to comment.