Skip to content

Commit 7a48181

Browse files
committed
Add pyright configuration
For manual testing, as we are not yet passing.
1 parent 9fc6db9 commit 7a48181

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,24 @@ repos:
4747
# for mypy running on python>=3.11 since exceptiongroup is only a dependency
4848
# on <3.11
4949
- exceptiongroup>=1.0.0rc8
50+
- repo: https://github.com/RobertCraigie/pyright-python
51+
rev: v1.1.401
52+
hooks:
53+
- id: pyright
54+
files: ^(src/|scripts/)
55+
additional_dependencies:
56+
- iniconfig>=1.1.0
57+
- attrs>=19.2.0
58+
- pluggy>=1.5.0
59+
- packaging
60+
- tomli
61+
- types-setuptools
62+
- types-tabulate
63+
# for mypy running on python>=3.11 since exceptiongroup is only a dependency
64+
# on <3.11
65+
- exceptiongroup>=1.0.0rc8
66+
# Manual because passing pyright is a work in progress.
67+
stages: [manual]
5068
- repo: https://github.com/tox-dev/pyproject-fmt
5169
rev: "v2.6.0"
5270
hooks:

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,3 +528,17 @@ warn_unreachable = true
528528
warn_unused_configs = true
529529
no_implicit_reexport = true
530530
warn_unused_ignores = true
531+
532+
[tool.pyright]
533+
include = [
534+
"src",
535+
"testing",
536+
"scripts",
537+
]
538+
extraPaths = [
539+
"src",
540+
]
541+
pythonVersion = "3.9"
542+
typeCheckingMode = "basic"
543+
reportMissingImports = "none"
544+
reportMissingModuleSource = "none"

0 commit comments

Comments
 (0)