Skip to content

Commit 21c7c24

Browse files
committed
perf(devcontainer): improve disk performance
1 parent 3d14373 commit 21c7c24

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.devcontainer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
{
22
"name": "ignition-api@8.1",
33
"image": "quay.io/ignition-devs/devcontainer-base:python",
4+
"workspaceMount": "source=${localWorkspaceFolder},target=${containerWorkspaceFolder},type=bind",
5+
"workspaceFolder": "/workspaces/ignition-api",
6+
"mounts": [
7+
"source=pre-commit-cache,target=/root/.cache/pre-commit,type=volume"
8+
],
49
"customizations": {
510
"vscode": {
611
"extensions": [
12+
"github.vscode-github-actions",
713
"ms-python.python",
814
"ms-python.vscode-pylance"
915
],
@@ -13,7 +19,7 @@
1319
}
1420
},
1521
"postCreateCommand": {
16-
"pre-commit-hooks": "pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type pre-push",
22+
"pre-commit": "pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type pre-push",
1723
"dev-requirements": "python2 -m pip install --requirement requirements.txt"
1824
}
1925
}

.editorconfig

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ charset = utf-8
88
end_of_line = lf
99
trim_trailing_whitespace = true
1010

11-
[*.{json}]
12-
indent_size = 2
13-
indent_style = space
14-
insert_final_newline = false
15-
16-
[*.{md,toml,yaml,yml}]
11+
[*.{json,md,toml,yaml,yml}]
1712
indent_size = 2
1813
indent_style = space
1914
insert_final_newline = true

0 commit comments

Comments
 (0)