-
Notifications
You must be signed in to change notification settings - Fork 8
/
.devcontainer.json
52 lines (52 loc) · 1.54 KB
/
.devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"name": "pytraccar",
"customizations": {
"vscode": {
"settings": {
"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.organizeImports": "always"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff"
},
"coverage-gutters.customizable.context-menu": true,
"coverage-gutters.customizable.status-bar-toggler-watchCoverageAndVisibleEditors-enabled": true,
"coverage-gutters.showGutterCoverage": false,
"coverage-gutters.showLineCoverage": true,
"coverage-gutters.xmlname": "coverage.xml",
"python.analysis.extraPaths": [
"${workspaceFolder}/src"
],
"python.formatting.provider": "ruff format",
"python.linting.enabled": true,
"python.linting.mypyEnabled": true,
"python.testing.cwd": "${workspaceFolder}",
"python.testing.pytestArgs": [
"--cov-report=xml"
],
"python.testing.pytestEnabled": true,
"ruff.importStrategy": "fromEnvironment",
"terminal.integrated.defaultProfile.linux": "zsh",
"extensions": [
"be5invis.toml",
"GitHub.copilot",
"ms-python.python",
"charliermarsh.ruff",
"ms-python.vscode-pylance",
"ryanluker.vscode-coverage-gutters"
]
}
}
},
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
"ghcr.io/devcontainers/features/python:1": {
"installTools": false,
"version": "3.11"
}
},
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"updateContentCommand": "poetry install && poetry run pre-commit install"
}