|
3 | 3 | // These files should not be manually edited — modify the TOML sources instead. |
4 | 4 | // Prevent accidental edits to rendered specs. |
5 | 5 | "files.readonlyInclude": { |
6 | | - "specs/**": true |
| 6 | + "specs/**": true, |
| 7 | + "locks/**": true |
7 | 8 | }, |
8 | 9 | // Suppress diagnostics from rendered specs — they are not source files. |
9 | 10 | // Unfortunately, vscode does not provide a way to exclude all problem |
|
13 | 14 | "shellcheck.ignorePatterns": { |
14 | 15 | "specs/**": true |
15 | 16 | }, |
16 | | - "python.analysis.exclude": [ |
17 | | - "specs", |
18 | | - "**/node_modules", |
19 | | - "**/__pycache__", |
20 | | - "**/.*" |
21 | | - ], |
22 | 17 | // Using Azure Pipelines schema for validation of ADO YAMLs. |
23 | 18 | "azure-pipelines.1ESPipelineTemplatesSchemaFile": true, |
24 | 19 | // Associate ADO pipelines with the "azure-pipelines" type instead of GitHub Actions. |
25 | 20 | "files.associations": { |
26 | 21 | "**/.github/workflows/ado/**/*.yml": "azure-pipelines" |
27 | | - } |
| 22 | + }, |
| 23 | + // General lint rules |
| 24 | + "editor.formatOnSave": true, |
| 25 | + "editor.codeActionsOnSave": { |
| 26 | + "source.fixAll.markdownlint": "explicit", |
| 27 | + "source.fixAll.shellcheck": "explicit" |
| 28 | + }, |
| 29 | + "shellcheck.enable": true, |
| 30 | + "shellcheck.enableQuickFix": true, |
| 31 | + // Lint rules for python |
| 32 | + "[python]": { |
| 33 | + "editor.defaultFormatter": "charliermarsh.ruff", |
| 34 | + "editor.formatOnSave": true, |
| 35 | + "editor.codeActionsOnSave": { |
| 36 | + "source.fixAll.ruff": "explicit", |
| 37 | + "source.organizeImports.ruff": "explicit", |
| 38 | + "source.fixAll": "explicit", |
| 39 | + "source.fixAll.pylance": "explicit" |
| 40 | + } |
| 41 | + }, |
| 42 | + "python.analysis.diagnosticsSource": "Pylance", |
| 43 | + "python.missingPackage.severity": "Error", |
| 44 | + "python.testing.unittestEnabled": false, |
| 45 | + "python.testing.pytestEnabled": true, |
| 46 | + "python.analysis.exclude": [ |
| 47 | + "**/node_modules", |
| 48 | + "**/__pycache__", |
| 49 | + "**/.*", |
| 50 | + "specs", |
| 51 | + "base/build" |
| 52 | + ], |
| 53 | + "python.analysis.include": [ |
| 54 | + ".github" |
| 55 | + ], |
| 56 | + "ruff.configuration": "${workspaceFolder}/ruff.toml", |
| 57 | + "ruff.lint.enable": true |
28 | 58 | } |
0 commit comments