-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.json
More file actions
111 lines (109 loc) · 3.61 KB
/
settings.json
File metadata and controls
111 lines (109 loc) · 3.61 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"markdownlint.configFile": "scripts/config/.markdownlint.yaml",
"editor.codeActionsOnSave": {
"source.fixAll.markdownlint": "always"
},
// Disable pylance type checking within vscode.
"python.analysis.typeCheckingMode": "off",
"python.analysis.exclude": [
"**/target",
"**/__pycache__",
"**/dist",
"**/build",
"**/.venv",
"**/.mypy_cache",
"**/.pytest_cache",
"**/.ruff_cache",
"**/node_modules",
"**/.*"
],
// Disable all telemetry.
"telemetry.telemetryLevel": "off",
"telemetry.feedback.enabled": false,
// Github copilot file associations
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": false,
"scminput": false,
"dotenv": false,
"ini": false,
".crt": false,
".key": false,
".pem": false
},
// Disable telemetry for pylance and python language server.
"pylance.telemetry": false,
"python.telemetry.enable": false,
"debugpy.telemetry.enable": false,
"python.experiments.enabled": false,
// Enabling Ruff formatter for python files.
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff"
},
"terminal.integrated.defaultProfile.linux": "zsh",
// Cucumber extension configuration
"cucumberautocomplete.steps": [
"gateway-api/tests/acceptance/steps/*.py",
],
"cucumberautocomplete.gherkinDefinitionPart": "@(given|when|then|step)\\((?:parsers.*parse\\(|)",
// Pylance configuration
"python.analysis.typeEvaluation.deprecateTypingAliases": true,
"python.analysis.showOnlyDirectDependenciesInAutoImport": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.autoIndent": false,
// Mypy configuration
"mypy-type-checker.cwd": "${nearestConfig}",
// Enable re-format on type
"editor.formatOnType": true,
// Disabling telemetry and AI features from GitLens
"gitlens.telemetry.enabled": false,
"gitlens.ai.enabled": false,
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"git.enableCommitSigning": true,
"sonarlint.connectedMode.project": {
"connectionId": "nhsdigital",
"projectKey": "NHSDigital_clinical-data-gateway-api"
},
// Disabling automatic port forwarding as the devcontainer should already have access to any required ports.
"remote.autoForwardPorts": false,
"github.copilot.chat.commitMessageGeneration.instructions": [
{
"file": ".commit_template"
}
],
// Code spell checker configuration
"cSpell.language": "en-GB",
// Exclude generated artefacts, lock files, and data fixtures that contain
// machine-generated identifiers, NHS codes, and FHIR field names which are
// not conventional English prose.
"cSpell.ignorePaths": [
"gateway-api/test-artefacts/**",
"gateway-api/poetry.lock",
"gateway-api/stubs/stubs/data/**/*.json",
"gateway-api/tests/data/**/*.json",
"scripts/config/vale/styles/config/vocabularies/words/accept.txt"
],
"cSpell.customDictionaries": {
"vale-accepted-words": {
"path": "${workspaceFolder}/scripts/config/vale/styles/config/vocabularies/words/accept.txt",
"description": "Accepted words for the Vale spell checker.",
"addWords": false
},
"code-accepted-words": {
"path": "${workspaceFolder}/.vscode/cspell-dictionary.txt",
"addWords": true,
"description": "Accepted words for the code spell checker.",
}
},
"python.analysis.extraPaths": [
"./gateway-api/stubs"
],
"python-envs.defaultEnvManager": "ms-python.python:pyenv",
}