Enable the "deprecated" error code
This commit is contained in:
parent
784d5c8ca0
commit
a4c1574135
1 changed files with 7 additions and 2 deletions
|
|
@ -468,8 +468,13 @@ disallow_untyped_decorators = true
|
||||||
# Disallow functions without type annotations (or incomplete annotations)
|
# Disallow functions without type annotations (or incomplete annotations)
|
||||||
disallow_untyped_defs = true
|
disallow_untyped_defs = true
|
||||||
|
|
||||||
# Require an error code in all "# type: ignore" comments
|
# Enable error codes that are off by default
|
||||||
enable_error_code = ["ignore-without-code"]
|
enable_error_code = [
|
||||||
|
# Report usages of APIs marked with `@deprecated`
|
||||||
|
"deprecated",
|
||||||
|
# Require an error code in all "# type: ignore" comments
|
||||||
|
"ignore-without-code",
|
||||||
|
]
|
||||||
|
|
||||||
# Check further edge cases that are rarely an issue in practice
|
# Check further edge cases that are rarely an issue in practice
|
||||||
extra_checks = true
|
extra_checks = true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue