File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change @@ -528,3 +528,17 @@ warn_unreachable = true
528528warn_unused_configs = true
529529no_implicit_reexport = true
530530warn_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"
You can’t perform that action at this time.
0 commit comments