Skip to content

Commit dc14cdd

Browse files
committed
Add mypy ignore
1 parent 2ab9764 commit dc14cdd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
rev: v0.910
1616
hooks:
1717
- id: mypy
18-
args: [--strict, --show-error-codes]
18+
args: [--strict, --show-error-codes, --no-warn-unused-ignores]
1919
- repo: https://github.com/ambv/black
2020
rev: 21.6b0
2121
hooks:

ecs_logging/_stdlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __init__(
105105
_kwargs["validate"] = validate
106106
super(StdlibFormatter, self).__init__(
107107
fmt=fmt, datefmt=datefmt, style=style, **_kwargs
108-
)
108+
) # type: ignore[call-arg]
109109

110110
if stack_trace_limit is not None:
111111
if not isinstance(stack_trace_limit, int):

noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,10 @@ def lint(session):
5050
session.install("flake8", "black", "mypy")
5151
session.run("black", "--check", "--target-version=py27", *SOURCE_FILES)
5252
session.run("flake8", "--ignore=E501,W503", *SOURCE_FILES)
53-
session.run("mypy", "--strict", "--show-error-codes", "ecs_logging/")
53+
session.run(
54+
"mypy",
55+
"--strict",
56+
"--show-error-codes",
57+
"--no-warn-unused-ignores",
58+
"ecs_logging/",
59+
)

0 commit comments

Comments
 (0)