Skip to content

Commit

Permalink
Add VSCode tasks (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Jan 17, 2023
1 parent a6a6ac1 commit 89c4683
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Pre-commit all files",
"type": "shell",
"command": "poetry run pre-commit run --all-files",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Run tests with coverage",
"type": "shell",
"command": "poetry run pytest --cov",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
}
]
}
23 changes: 20 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pre-commit = ">=2.16.0"
pre-commit-hooks = ">=4.1.0"
pytest = ">=6.2.5"
pytest-asyncio = ">=0.20.2"
pytest-cov = ">=4.0.0"
pyupgrade = ">=2.29.1"
respx = ">=0.20.1"
safety = ">=1.10.3"
Expand Down

0 comments on commit 89c4683

Please sign in to comment.