Skip to content

Commit

Permalink
type check sandbox-py-lib with Pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Sep 22, 2024
1 parent b5d2b1c commit 1580d7b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/sandbox/py-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"cwd": "{projectRoot}"
}
},
"update": {
"executor": "nx:run-commands",
"options": {
"command": "poetry update",
"cwd": "{projectRoot}"
}
},
"lint": {
"executor": "@nxlv/python:flake8",
"outputs": ["{workspaceRoot}/reports/{projectRoot}/pylint.txt"],
Expand Down
7 changes: 7 additions & 0 deletions libs/sandbox/py-lib/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
"outputFile": "reports/{projectRoot}/pylint.txt"
}
},
"type-check": {
"executor": "nx:run-commands",
"options": {
"command": "pyright",
"cwd": "{projectRoot}"
}
},
"test": {
"executor": "@nxlv/python:run-commands",
"outputs": [
Expand Down
7 changes: 7 additions & 0 deletions libs/sandbox/py-lib/pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"include": ["sandbox_py_app"],
"exclude": ["tests"],
"venvPath": ".",
"venv": ".venv",
"pythonVersion": "3.10"
}

0 comments on commit 1580d7b

Please sign in to comment.