Skip to content

Commit

Permalink
Enable Pyright for type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
TaekyungHeo committed May 9, 2024
1 parent f61bb15 commit c88a039
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ jobs:
run: |
ruff format .
ruff check .
- name: Run Pyright
run: |
pyright
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,14 @@ select = ["I", "B", "E", "F", "SIM", "W", "C90"]

[tool.ruff.format]
indent-style = "space"

[tool.pyright]
typeCheckingMode = "basic"
exclude = [
"**/__pycache__",
"**/build/",
"setup.py",
"src/third_party/utils/protolib.py"
]
reportMissingImports = false
reportAttributeAccessIssue = false
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pyre-check==0.9.19
pyright==1.1.359
ruff==0.3.5

0 comments on commit c88a039

Please sign in to comment.