Debian Codegraph @

.devcontainer/devcontainer.json

raw
1 {
2 "containerEnv": {
3 "POETRY_VIRTUALENVS_IN_PROJECT": "true"
4 },
5 "customizations": {
6 "codespaces": {
7 "openFiles": ["README.md", "src/adguardhome/adguardhome.py"]
8 },
9 "vscode": {
10 "extensions": [
11 "ms-python.python",
12 "redhat.vscode-yaml",
13 "esbenp.prettier-vscode",
14 "GitHub.vscode-pull-request-github",
15 "charliermarsh.ruff",
16 "GitHub.vscode-github-actions",
17 "ryanluker.vscode-coverage-gutters"
18 ],
19 "settings": {
20 "[python]": {
21 "editor.codeActionsOnSave": {
22 "source.fixAll": true,
23 "source.organizeImports": true
24 }
25 },
26 "coverage-gutters.customizable.context-menu": true,
27 "coverage-gutters.customizable.status-bar-toggler-watchCoverageAndVisibleEditors-enabled": true,
28 "coverage-gutters.showGutterCoverage": false,
29 "coverage-gutters.showLineCoverage": true,
30 "coverage-gutters.xmlname": "coverage.xml",
31 "python.analysis.extraPaths": ["${workspaceFolder}/src"],
32 "python.defaultInterpreterPath": ".venv/bin/python",
33 "python.formatting.provider": "ruff",
34 "python.linting.enabled": true,
35 "python.linting.mypyEnabled": true,
36 "python.linting.pylintEnabled": true,
37 "python.testing.cwd": "${workspaceFolder}",
38 "python.testing.pytestArgs": ["--cov-report=xml"],
39 "python.testing.pytestEnabled": true,
40 "ruff.importStrategy": "fromEnvironment",
41 "ruff.interpreter": [".venv/bin/python"],
42 "terminal.integrated.defaultProfile.linux": "zsh"
43 }
44 }
45 },
46 "features": {
47 "ghcr.io/devcontainers-contrib/features/poetry:2": {},
48 "ghcr.io/devcontainers/features/github-cli:1": {},
49 "ghcr.io/devcontainers/features/node:1": {},
50 "ghcr.io/devcontainers/features/python:1": {
51 "installTools": false
52 }
53 },
54 "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
55 "name": "Asynchronous Python client for the AdGuard Home API",
56 "updateContentCommand": ". ${NVM_DIR}/nvm.sh && nvm install && nvm use && npm install && poetry install && poetry run pre-commit install"
57 }