1
1
{
2
2
"name" : " pytraccar" ,
3
- "image" : " mcr.microsoft.com/vscode/devcontainers/python:0-3.11" ,
4
- "postCreateCommand" : " make requirements" ,
5
3
"customizations" : {
6
4
"vscode" : {
7
5
"settings" : {
8
- "python.defaultInterpreterPath" : " /usr/local/bin/python" ,
6
+ "[python]" : {
7
+ "editor.codeActionsOnSave" : {
8
+ "source.fixAll" : " always" ,
9
+ "source.organizeImports" : " always"
10
+ },
11
+ "editor.formatOnSave" : true ,
12
+ "editor.defaultFormatter" : " charliermarsh.ruff"
13
+ },
14
+ "coverage-gutters.customizable.context-menu" : true ,
15
+ "coverage-gutters.customizable.status-bar-toggler-watchCoverageAndVisibleEditors-enabled" : true ,
16
+ "coverage-gutters.showGutterCoverage" : false ,
17
+ "coverage-gutters.showLineCoverage" : true ,
18
+ "coverage-gutters.xmlname" : " coverage.xml" ,
19
+ "python.analysis.extraPaths" : [
20
+ " ${workspaceFolder}/src"
21
+ ],
22
+ "python.formatting.provider" : " ruff format" ,
9
23
"python.linting.enabled" : true ,
10
- "python.linting.pylintEnabled" : true ,
11
- "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
12
- "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
13
- "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
14
- "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
15
- "python.linting.flake8Path" : " /usr/local/py-utils/bin/flake8" ,
16
- "python.linting.mypyPath" : " /usr/local/py-utils/bin/mypy" ,
17
- "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
18
- "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
19
- "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint"
20
- },
21
- "extensions" : [
22
- " ms-python.python" ,
23
- " ms-python.vscode-pylance" ,
24
- " GitHub.copilot"
25
- ]
24
+ "python.linting.mypyEnabled" : true ,
25
+ "python.testing.cwd" : " ${workspaceFolder}" ,
26
+ "python.testing.pytestArgs" : [
27
+ " --cov-report=xml"
28
+ ],
29
+ "python.testing.pytestEnabled" : true ,
30
+ "ruff.importStrategy" : " fromEnvironment" ,
31
+ "terminal.integrated.defaultProfile.linux" : " zsh" ,
32
+ "extensions" : [
33
+ " be5invis.toml" ,
34
+ " GitHub.copilot" ,
35
+ " ms-python.python" ,
36
+ " charliermarsh.ruff" ,
37
+ " ms-python.vscode-pylance" ,
38
+ " ryanluker.vscode-coverage-gutters"
39
+ ]
40
+ }
26
41
}
27
- }
28
- }
42
+ },
43
+ "features" : {
44
+ "ghcr.io/devcontainers-contrib/features/poetry:2" : {},
45
+ "ghcr.io/devcontainers/features/python:1" : {
46
+ "installTools" : false ,
47
+ "version" : " 3.11"
48
+ }
49
+ },
50
+ "image" : " mcr.microsoft.com/devcontainers/base:ubuntu" ,
51
+ "updateContentCommand" : " poetry install && poetry run pre-commit install"
52
+ }
0 commit comments