Skip to content

Commit

Permalink
Merge pull request #27 from bellflight/feature/vscode-task-runner
Browse files Browse the repository at this point in the history
Use vscode-task-runner
  • Loading branch information
NathanVaughn committed Jun 3, 2023
2 parents b1a3c43 + 1da414a commit 8e30b9d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "pre-commit",
"type": "shell",
"command": "poetry run pre-commit run --all-files",
"dependsOn": ["install"]
},
{
"label": "install",
"command": "poetry install --sync",
"type": "shell"
},
{
"label": "tests",
"command": "poetry run pytest -v --cov=src/ --cov-report=html",
"type": "shell"
}
]
}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ It's assumed you have a version of Python installed from
[python.org](https://python.org) that is the same or newer as
defined in the [`Dockerfile`](Dockerfile).

First, install [Poetry](https://python-poetry.org/):
First, install [Poetry](https://python-poetry.org/) and
[VS Code Task Runner](https://pypi.org/project/vscode-task-runner/):

```bash
python -m pip install pipx --upgrade
pipx ensurepath
pipx install poetry
pipx install vscode-task-runner
# (Optionally) Add pre-commit plugin
poetry self add poetry-pre-commit-plugin
```
Expand All @@ -36,8 +38,7 @@ Now, you can clone the repo and install dependencies:
```bash
git clone https://github.com/bellflight/AVR-VMC-Visual-Module
cd AVR-VMC-Visual-Module
poetry install --sync
poetry run pre-commit install --install-hooks
vtr install
```

Run
Expand Down

0 comments on commit 8e30b9d

Please sign in to comment.