Skip to content

Commit

Permalink
Fix mypy pre-commit setup
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
  • Loading branch information
xSAVIKx committed Sep 29, 2024
1 parent b514ae5 commit ab4863a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ repos:
rev: v1.11.2
hooks:
- id: mypy
args: [ "--config-file", "pyproject.toml" ]
files: ^(src/cloudevents/|tests/)
exclude: ^(src/cloudevents/v1/)
types: [ python ]
args: [
"--config-file=pyproject.toml",
]
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,5 @@ warn_return_any = true
strict_equality = true
disallow_untyped_defs = true
exclude = [
"src/cloudevents/v1/",
"samples/"
"src/cloudevents/v1",
]
2 changes: 1 addition & 1 deletion tests/test_cloudevents/test_cloudevents_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
from cloudevents import __version__


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

0 comments on commit ab4863a

Please sign in to comment.