Skip to content

Commit ab4863a

Browse files
committed
Fix mypy pre-commit setup
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
1 parent b514ae5 commit ab4863a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ repos:
1616
rev: v1.11.2
1717
hooks:
1818
- id: mypy
19-
args: [ "--config-file", "pyproject.toml" ]
19+
files: ^(src/cloudevents/|tests/)
20+
exclude: ^(src/cloudevents/v1/)
2021
types: [ python ]
22+
args: [
23+
"--config-file=pyproject.toml",
24+
]

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,5 @@ warn_return_any = true
138138
strict_equality = true
139139
disallow_untyped_defs = true
140140
exclude = [
141-
"src/cloudevents/v1/",
142-
"samples/"
141+
"src/cloudevents/v1",
143142
]

tests/test_cloudevents/test_cloudevents_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
from cloudevents import __version__
1616

1717

18-
def test_cloudevents_version():
18+
def test_cloudevents_version() -> None:
1919
assert __version__ is not None

0 commit comments

Comments
 (0)