Skip to content

Commit

Permalink
Add vscode editor config
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrosenthal committed Sep 30, 2024
1 parent 366830f commit 159137f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
26 changes: 26 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run tests",
"type": "shell",
"group": {
"kind": "test",
"isDefault": true
},
"command": "hatch test -a"
},
{
"label": "Lint/Format",
"type": "shell",
"command": "hatch fmt"
},
{
"label": "REPL",
"type": "shell",
"command": "hatch run repl:ptpython"
}
]
}
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,10 @@ dependencies = [
[tool.hatch.envs.speedtest.scripts]
run = "./speedtest.py"

[tool.hatch.envs.repl]
extra-dependencies = [
"ptpython"
]

[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["INP001", "SLF001"]

0 comments on commit 159137f

Please sign in to comment.