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:
47
47
# for mypy running on python>=3.11 since exceptiongroup is only a dependency
48
48
# on <3.11
49
49
- 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]
50
68
- repo : https://github.com/tox-dev/pyproject-fmt
51
69
rev : " v2.6.0"
52
70
hooks :
Original file line number Diff line number Diff line change @@ -528,3 +528,17 @@ warn_unreachable = true
528
528
warn_unused_configs = true
529
529
no_implicit_reexport = true
530
530
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"
You can’t perform that action at this time.
0 commit comments