diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e16cf2812..a358edf82 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/pyproject.toml b/pyproject.toml index 591b14b09..2bee91bea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"