diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9020ac1..a323017 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,4 +54,11 @@ repos: - repo: https://github.com/kynan/nbstripout rev: 0.7.1 hooks: - - id: nbstripout \ No newline at end of file + - id: nbstripout + + - repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.407 + hooks: + - id: pyright + files: ^streamerate/ + args: ["--project", "./pyproject.toml"] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 238555a..3aeeb82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,9 @@ debug-auto-git-tag = "tasks:debug_auto_git_tag" line-length = 160 include = '\.pyi?$' +[tool.pyright] +typeCheckingMode = "strict" + [tool.pylint.master] #ignore="tests,test_integrations" ignore-patterns = ["test_.*"]