Skip to content

Commit 14a1636

Browse files
committed
Add mypy ignore
1 parent 2ab9764 commit 14a1636

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
@@ -103,7 +103,7 @@ def __init__(
103103
if validate is not None:
104104
# validate was introduced in py3.8 so we need to only provide it if the user provided it
105105
_kwargs["validate"] = validate
106-
super(StdlibFormatter, self).__init__(
106+
super(StdlibFormatter, self).__init__( # type: ignore[call-arg]
107107
fmt=fmt, datefmt=datefmt, style=style, **_kwargs
108108
)
109109

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)