Skip to content

Commit

Permalink
🔧 update pyright config
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Jan 24, 2025
1 parent 5ed8988 commit 37551c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ jobs:
- name: Run Pyright
uses: jakebailey/pyright-action@v2
with:
pylance-version: latest-release
10 changes: 10 additions & 0 deletions codegen/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ target-version = "py310"

[tool.ruff.lint]
ignore = ["TID"]

[tool.pyright]
typeCheckingMode = "standard"
reportPrivateImportUsage = false
reportShadowedImports = false
disableBytesTypePromotions = true

pythonVersion = "3.10"
pythonPlatform = "All"
defineConstant = { PYDANTIC_V2 = true }
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,9 @@ reportPrivateImportUsage = false
reportShadowedImports = false
disableBytesTypePromotions = true

pythonVersion = "3.10"
pythonPlatform = "All"
defineConstant = { PYDANTIC_V2 = true }
executionEnvironments = [
{ root = "./codegen", pythonVersion = "3.10" },
{ root = "./", pythonVersion = "3.9", extraPaths = [
"./",
] },
]

[tool.codegen]
output_dir = "githubkit/versions/"
Expand Down

0 comments on commit 37551c2

Please sign in to comment.