This repository was archived by the owner on Dec 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/adding pylsp #9
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
aac9a08
feat: add python-lsp-ruff and python-lsp-server dependencies with con…
9b1b8d9
feat: enhance configuration and linting setup, update imports across …
4bf4108
feat: add launch and task configurations for debugging and testing
937dcc8
feat: add focus option to presentation settings in tasks.json
7503b7a
Update .vscode/settings.json
AtomicAlexD 1f91a29
Removed launch and instead just use a task
24f0b2b
Merge branch 'feature/adding_pylsp' of https://github.com/Jake-Pullen…
27105d7
re-added launch
8fe1dff
feat: add UV Sync task and update launch configuration
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ { | ||
| "name": "Debug Verity", | ||
| "type": "debugpy", | ||
| "request": "launch", | ||
| "program": "${workspaceFolder}/src/verity.py", | ||
| "console": "integratedTerminal", | ||
| "justMyCode": true, | ||
| "cwd": "${workspaceFolder}/src", | ||
| "env": { | ||
| "PYTHONPATH": "${workspaceFolder}" | ||
| }, | ||
| "preLaunchTask": "UV Sync " | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "python.languageServer": "Pylance", | ||
| "python.analysis.typeCheckingMode": "basic", | ||
| "python.testing.pytestEnabled": true, | ||
| "python.testing.unittestEnabled": false, | ||
| "python.testing.pytestPath": "pytest", | ||
| "[python]": { | ||
| "editor.formatOnSave": true, | ||
| "editor.codeActionsOnSave": { | ||
| "source.organizeImports": "explicit" | ||
| } | ||
| }, | ||
| "editor.formatOnSaveMode": "file", "python.analysis.extraPaths": [ | ||
| "${workspaceFolder}/src" | ||
| ], | ||
| "python.defaultInterpreterPath": "${workspaceFolder}/.venv/Scripts/python.exe", | ||
| "editor.defaultFormatter": "charliermarsh.ruff", | ||
| "ruff.enable": true, | ||
| "ruff.organizeImports": true, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ { | ||
| "label": "Run Tests", | ||
| "type": "shell", | ||
| "command": "uv run pytest", | ||
| "options": { | ||
| "cwd": "${workspaceFolder}/src" | ||
| }, | ||
| "group": { | ||
| "kind": "test", | ||
| "isDefault": true | ||
| }, | ||
| "presentation": { | ||
| "reveal": "always", | ||
| "panel": "dedicated", | ||
| "clear": true, | ||
| "focus": true | ||
| }, | ||
| "problemMatcher": [] | ||
| }, { | ||
| "label": "Run Linter (Ruff Check)", | ||
| "type": "shell", | ||
| "command": "ruff check", | ||
| "options": { | ||
| "cwd": "${workspaceFolder}/src" | ||
| }, | ||
| "group": "test", | ||
| "presentation": { | ||
| "reveal": "always", | ||
| "panel": "dedicated", | ||
| "clear": true, | ||
| "focus": true | ||
| }, | ||
| "problemMatcher": [] | ||
| }, { | ||
| "label": "Pre-commit Check (Tests + Lint)", | ||
| "dependsOrder": "sequence", | ||
| "dependsOn": [ "Run Tests", "Run Linter (Ruff Check)"], | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": true | ||
| }, | ||
| "presentation": { | ||
| "reveal": "always", | ||
| "panel": "dedicated" | ||
| }, | ||
| "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "Run Verity", | ||
| "type": "shell", | ||
| "command": "uv run verity.py", | ||
| "options": { | ||
| "cwd": "${workspaceFolder}/src" | ||
| }, | ||
| "group": "none", | ||
| "presentation": { | ||
| "reveal": "always", | ||
| "panel": "dedicated", | ||
| "clear": true, | ||
| "focus": true | ||
| }, "problemMatcher": [] | ||
| }, | ||
| { | ||
| "label": "UV Sync ", | ||
| "type": "shell", | ||
| "command": "uv sync", | ||
| "options": { | ||
| "cwd": "${workspaceFolder}" | ||
| }, | ||
| "group": "none", | ||
| "presentation": { | ||
| "reveal": "always", | ||
| "panel": "dedicated", | ||
| "clear": true, | ||
| "focus": true | ||
| }, | ||
| "problemMatcher": [] | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import os | ||
|
|
||
| import yaml | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import sqlite3 | ||
| import logging | ||
| import sqlite3 | ||
|
|
||
| logger = logging.getLogger(__name__) | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| import os | ||
| import atexit | ||
| import logging | ||
| import logging.config | ||
| import atexit | ||
| import os | ||
|
|
||
| from flask import Flask | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.