Skip to content

Commit 868767d

Browse files
Disable Copilot on dotenv and config.yaml file (#784)
1 parent f201acd commit 868767d

File tree

1 file changed

+32
-20
lines changed

1 file changed

+32
-20
lines changed

.vscode/settings.json

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
{
2-
"editor.formatOnSave": true,
3-
"editor.tabSize": 4,
4-
"editor.insertSpaces": true,
5-
"editor.detectIndentation": false,
6-
"python.analysis.typeCheckingMode": "off",
7-
"editor.codeActionsOnSave": {
8-
"source.organizeImports": "explicit"
9-
},
10-
// We don't want VS Code to find our dotenv file, as the IDE is not cappable of parsing it correctly.
11-
// When using the debugger, VS Code pass the porly parsed file as environnement variables, letting to Pydantic validation erros
12-
"python.envFile": "${workspaceFolder}/",
13-
"[python]": {
14-
"editor.defaultFormatter": "charliermarsh.ruff"
15-
},
16-
"python.testing.pytestArgs": [
17-
"tests"
18-
],
19-
"python.testing.unittestEnabled": false,
20-
"python.testing.pytestEnabled": true,
21-
}
2+
"editor.formatOnSave": true,
3+
"editor.tabSize": 4,
4+
"editor.insertSpaces": true,
5+
"editor.detectIndentation": false,
6+
"python.analysis.typeCheckingMode": "off",
7+
"editor.codeActionsOnSave": {
8+
"source.organizeImports": "explicit"
9+
},
10+
// We don't want VS Code to find our dotenv file, as the IDE is not cappable of parsing it correctly.
11+
// When using the debugger, VS Code pass the porly parsed file as environnement variables, letting to Pydantic validation erros
12+
"python.envFile": "${workspaceFolder}/",
13+
"[python]": {
14+
"editor.defaultFormatter": "charliermarsh.ruff"
15+
},
16+
"python.testing.pytestArgs": ["tests"],
17+
"python.testing.unittestEnabled": false,
18+
"python.testing.pytestEnabled": true,
19+
"github.copilot.enable": {
20+
"*": true,
21+
"plaintext": false,
22+
"markdown": false,
23+
"scminput": false,
24+
// We don't want Copilot to be active
25+
// on config.yaml and dotenv files
26+
"yaml": false,
27+
"dotenv": false
28+
},
29+
"files.associations": {
30+
".env": "dotenv",
31+
".env.template": "dotenv"
32+
}
33+
}

0 commit comments

Comments
 (0)