Skip to content

Commit

Permalink
Remove explicit pyright excludes
Browse files Browse the repository at this point in the history
Now that all of our excludes are now the defaults for pyright:
['**/node_modules', '**/__pycache__', '**/.*']
  • Loading branch information
markwaddle committed Oct 4, 2024
1 parent f2c24b1 commit 70b3eee
Show file tree
Hide file tree
Showing 38 changed files with 12 additions and 205 deletions.
5 changes: 0 additions & 5 deletions assistants/prospector-assistant/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions assistants/prospector-assistant/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,3 @@ document-skill = { path = "../../libraries/python/skills/skills/document-skill",
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = ["venv", ".venv"]
6 changes: 0 additions & 6 deletions assistants/skill-assistant/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**",
"**/.pytest_cache/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions assistants/skill-assistant/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ posix-skill = { path = "../../libraries/python/skills/skills/posix-skill", edita
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = ["venv", ".venv"]
5 changes: 0 additions & 5 deletions examples/python/python-01-echo-bot/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions examples/python/python-01-echo-bot/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ semantic-workbench-assistant = { path = "../../../libraries/python/semantic-work
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = ["venv", ".venv"]
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions examples/python/python-02-simple-chatbot/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ content-safety = { path = "../../../libraries/python/content-safety/", editable
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = ["venv", ".venv"]
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions examples/python/python-03-multimodel-chatbot/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ content-safety = { path = "../../../libraries/python/content-safety/", editable
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = ["venv", ".venv"]
18 changes: 3 additions & 15 deletions libraries/python/chat-driver/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,17 @@
"editor.guides.bracketPairs": "active",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"flake8.ignorePatterns": [
"**/*.py"
], // disable flake8 in favor of ruff
"flake8.ignorePatterns": ["**/*.py"], // disable flake8 in favor of ruff
"jupyter.debugJustMyCode": false,
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": [
"source.unusedImports"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.testing.cwd": "${workspaceFolder}",
"python.testing.pytestArgs": [
"--color",
"yes"
],
"python.testing.pytestArgs": ["--color", "yes"],
"python.testing.pytestEnabled": true,
"search.exclude": {
"**/.venv": true,
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/chat-driver/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ function-registry = { path = "../function-registry", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]
5 changes: 0 additions & 5 deletions libraries/python/content-safety/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/content-safety/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ semantic-workbench-assistant = { path = "../semantic-workbench-assistant", edita
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = ["venv", ".venv"]
18 changes: 3 additions & 15 deletions libraries/python/context/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,17 @@
"editor.guides.bracketPairs": "active",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"flake8.ignorePatterns": [
"**/*.py"
], // disable flake8 in favor of ruff
"flake8.ignorePatterns": ["**/*.py"], // disable flake8 in favor of ruff
"jupyter.debugJustMyCode": false,
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": [
"source.unusedImports"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.testing.cwd": "${workspaceFolder}",
"python.testing.pytestArgs": [
"--color",
"yes"
],
"python.testing.pytestArgs": ["--color", "yes"],
"python.testing.pytestEnabled": true,
"search.exclude": {
"**/.venv": true,
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/context/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ events = { path = "../events", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]
18 changes: 3 additions & 15 deletions libraries/python/events/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,17 @@
"editor.guides.bracketPairs": "active",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"flake8.ignorePatterns": [
"**/*.py"
], // disable flake8 in favor of ruff
"flake8.ignorePatterns": ["**/*.py"], // disable flake8 in favor of ruff
"jupyter.debugJustMyCode": false,
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": [
"source.unusedImports"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.testing.cwd": "${workspaceFolder}",
"python.testing.pytestArgs": [
"--color",
"yes"
],
"python.testing.pytestArgs": ["--color", "yes"],
"python.testing.pytestEnabled": true,
"search.exclude": {
"**/.venv": true,
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/events/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ dev-dependencies = [
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]
18 changes: 3 additions & 15 deletions libraries/python/function-registry/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,17 @@
"editor.guides.bracketPairs": "active",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"flake8.ignorePatterns": [
"**/*.py"
], // disable flake8 in favor of ruff
"flake8.ignorePatterns": ["**/*.py"], // disable flake8 in favor of ruff
"jupyter.debugJustMyCode": false,
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": [
"source.unusedImports"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.testing.cwd": "${workspaceFolder}",
"python.testing.pytestArgs": [
"--color",
"yes"
],
"python.testing.pytestArgs": ["--color", "yes"],
"python.testing.pytestEnabled": true,
"search.exclude": {
"**/.venv": true,
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/function-registry/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ context = { path = "../context", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/node_modules/**",
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/semantic-workbench-api-model/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ package = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/semantic-workbench-assistant/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ start-semantic-workbench-assistant = "semantic_workbench_assistant.start:main"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]

[tool.pytest.ini_options]
addopts = "-vv"
log_cli = true
Expand Down
5 changes: 0 additions & 5 deletions libraries/python/skills/notebooks/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
"jupyter.debugJustMyCode": false,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
14 changes: 0 additions & 14 deletions libraries/python/skills/notebooks/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,3 @@ chat-driver = { path = "../../chat-driver", editable = true }
context = { path = "../../context", editable = true }
events = { path = "../../events", editable = true }
function-registry = { path = "../../function-registry", editable = true }

[tool.pyright]
exclude = [
"__pycache__",
".vscode",
".ipynb_checkpoints",
"build",
"dist",
"venv",
".venv",
".mypy_cache",
".pytest_cache",
".git",
]
5 changes: 0 additions & 5 deletions libraries/python/skills/skill-library/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/skills/skill-library/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ function-registry = { path = "../../function-registry", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
3 changes: 0 additions & 3 deletions libraries/python/skills/skills/document-skill/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ events = { path = "../../../events", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pyright]
exclude = [".venv"]
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"python.analysis.autoFormatStrings": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticMode": "workspace",
"python.analysis.exclude": [
"**/.venv/**",
"**/.data/**",
"**/__pycache__/**"
],
"python.analysis.fixAll": ["source.unusedImports"],
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.typeCheckingMode": "basic",
Expand Down
Loading

0 comments on commit 70b3eee

Please sign in to comment.