mirror of
https://github.com/1j01/textual-paint.git
synced 2024-09-11 15:56:03 +03:00
I just want to disable the external code skipping feature ("justMyCode") but I seem to have to abandon the pytest integration to do so?
63 lines
2.1 KiB
JSON
63 lines
2.1 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Run Textual App",
|
|
"type": "python",
|
|
"request": "launch",
|
|
// TODO: is there a way to get this from the environment, i.e. to use
|
|
// the binary that `which textual` would return,
|
|
// or to use textual as "module" but still run the correct app?
|
|
// At least with a virtual environment, I can point to a location
|
|
// that should exist if you follow the readme instructions.
|
|
// Although the docs for "program" say "Absolute path to the program."
|
|
"program": ".venv/bin/textual",
|
|
"args": ["run", "--dev", "src.textual_paint.paint --clear-screen --inspect-layout"],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Open A File in App",
|
|
"type": "python",
|
|
"request": "launch",
|
|
// "program": "src.textual_paint.paint",
|
|
// "args": ["LICENSE.txt"],
|
|
"program": ".venv/bin/textual",
|
|
"args": ["run", "--dev", "src.textual_paint.paint --clear-screen --inspect-layout LICENSE.txt"],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Recode Samples",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "src.textual_paint.paint",
|
|
"args": ["--recode-samples"],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Debug --restart-on-changes file matching",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": ".venv/bin/textual",
|
|
"args": ["run", "--dev", "src.textual_paint.paint --clear-screen --restart-on-changes"],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Debug Tests",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": ".venv/bin/pytest",
|
|
// "args": ["tests/test_snapshots.py::test_paint_open_dialog"],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false,
|
|
// If using pytest-cov in the future:
|
|
// "env": {"PYTEST_ADDOPTS": "--no-cov"}
|
|
}
|
|
]
|
|
} |