Skip to content

Commit 9b252bf

Browse files
committed
Add Cursor/VSCode config
1 parent 3dcafe3 commit 9b252bf

3 files changed

Lines changed: 74 additions & 3 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ wheels/
1313
# venv
1414
/.venv
1515

16-
# PyCharm
17-
.idea/
18-
1916
# Backup files
2017
**.~
2118
*.swp

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Examples",
6+
"type": "debugpy",
7+
"request": "launch",
8+
"module": "pdfbaker",
9+
"args": ["bake", "examples/examples.yaml"],
10+
"console": "integratedTerminal"
11+
},
12+
{
13+
"name": "Debug Tests",
14+
"type": "debugpy",
15+
"request": "launch",
16+
"module": "pytest",
17+
"args": ["-v", "tests"],
18+
"console": "integratedTerminal"
19+
}
20+
]
21+
}
22+

.vscode/tasks.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Bake",
6+
"type": "shell",
7+
"command": "python -m pdfbaker bake ${input:configPath}",
8+
"group": "build",
9+
"presentation": {
10+
"reveal": "always",
11+
"panel": "new"
12+
}
13+
},
14+
{
15+
"label": "Run Tests",
16+
"type": "shell",
17+
"command": "pytest -v tests",
18+
"group": "test",
19+
"presentation": {
20+
"reveal": "always",
21+
"panel": "new"
22+
}
23+
},
24+
{
25+
"label": "Run Coverage",
26+
"type": "shell",
27+
"command": "pytest --cov=pdfbaker --cov-report=html",
28+
"group": "test",
29+
"presentation": {
30+
"reveal": "always",
31+
"panel": "new"
32+
}
33+
},
34+
{
35+
"label": "View Coverage",
36+
"type": "shell",
37+
"command": "python -c \"import webbrowser; webbrowser.open('htmlcov/index.html')\"",
38+
"presentation": {
39+
"reveal": "never",
40+
"panel": "new"
41+
}
42+
}
43+
],
44+
"inputs": [
45+
{
46+
"id": "configPath",
47+
"type": "promptString",
48+
"description": "Path to main YAML config file",
49+
"default": "examples/examples.yaml"
50+
}
51+
]
52+
}

0 commit comments

Comments
 (0)