Я использую Python pytest и работаю удаленно на сервере Linux Ubuntu, используя расширение Remote-SSH. Я прилагаю снимок выборки для тестирования и имеющийся у меня файл Settings.json.
[img]https:// i.sstatic.net/H3pT5IDO.png[/img]
.
Код: Выделить всё
{
"python.analysis.autoImportCompletions": true,
"python.analysis.fixAll": ["source.unusedImports"],
"editor.defaultFormatter": "charliermarsh.ruff",
"files.exclude": {
"**/__pycache__": true,
"**/.cache": true,
"**/.coverage": true,
"**/.coverage.*": true,
"**/.hypothesis": true,
"**/.mypy_cache": true,
"**/.nox": true,
"**/.pytest_cache": true,
"**/.ruff_cache": true,
"**/.tox": true
},
"python.testing.pytestEnabled": true
Подробнее здесь: https://stackoverflow.com/questions/791 ... studio-cod