Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,13 @@ repos:
hooks:
- id: mypy
pass_filenames: false

- repo: local
hooks:
- id: ty-check
name: ty-check
language: python
entry: ty check
pass_filenames: false
args: [--exclude=kombu/resource.py, --output-format=concise]
additional_dependencies: [ty]
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,25 @@ omit = [
"*/pypy/*",
"*kombu/utils/debug.py",
]

[tool.ty.rules]
call-non-callable = "ignore"
conflicting-declarations = "ignore"
invalid-argument-type = "ignore"
invalid-assignment = "ignore"
invalid-base = "ignore"
invalid-exception-caught = "ignore"
invalid-parameter-default = "ignore"
invalid-return-type = "ignore"
no-matching-overload = "ignore"
non-subscriptable = "ignore"
not-iterable = "ignore"
parameter-already-assigned = "ignore"
possibly-missing-attribute = "ignore"
possibly-missing-import = "ignore"
too-many-positional-arguments = "ignore"
unresolved-attribute = "ignore"
unresolved-import = "ignore"
unresolved-reference = "ignore"
unknown-argument = "ignore"
unsupported-operator = "ignore"