File tree Expand file tree Collapse file tree 6 files changed +66
-2
lines changed Expand file tree Collapse file tree 6 files changed +66
-2
lines changed Original file line number Diff line number Diff line change
1
+ // Format: https://containers.dev/implementors/json_reference/
2
+ {
3
+ "name" : " Python" ,
4
+ // Supported image versions: https://github.com/devcontainers/images/issues/90
5
+ // README: https://github.com/devcontainers/images/tree/main/src/python
6
+ "image" : " mcr.microsoft.com/devcontainers/python:3.13-bookworm" ,
7
+ // https://containers.dev/features
8
+ "features" : {
9
+ "ghcr.io/jsburckhardt/devcontainer-features/uv:1" : {
10
+ "version" : " 0.6.13"
11
+ }
12
+ },
13
+ "postCreateCommand" : " uv sync && git config push.autosetupremote true && uv run pre-commit install-hooks && uv run pre-commit install" ,
14
+ // Tool-specific properties: https://containers.dev/supporting
15
+ "customizations" : {
16
+ "vscode" : {
17
+ // see also .vscode/extensions.json
18
+ "extensions" : [
19
+ " EditorConfig.EditorConfig" ,
20
+ " DavidAnson.vscode-markdownlint" ,
21
+ " redhat.vscode-yaml" ,
22
+ " streetsidesoftware.code-spell-checker" ,
23
+ " yzhang.markdown-all-in-one"
24
+ ],
25
+ // keep this in sync with .vscode/settings.json
26
+ "settings" : {
27
+ // see: https://squidfunk.github.io/mkdocs-material/creating-your-site/?h=vscode#minimal-configuration-visual-studio-code
28
+ "yaml.schemas" : {
29
+ "https://squidfunk.github.io/mkdocs-material/schema.json" : " mkdocs.yml"
30
+ },
31
+ "yaml.customTags" : [
32
+ " !ENV scalar" ,
33
+ " !ENV sequence" ,
34
+ " !relative scalar" ,
35
+ " tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg" ,
36
+ " tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji" ,
37
+ " tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
38
+ ]
39
+ }
40
+ }
41
+ }
42
+ }
Original file line number Diff line number Diff line change @@ -12,7 +12,14 @@ repos:
12
12
- id : check-executables-have-shebangs
13
13
- id : check-json
14
14
# file contains comments
15
- exclude : ^\.vscode/settings.json$
15
+ exclude : |
16
+ (?x)(
17
+ ^(
18
+ \.vscode/settings\.json
19
+ |\.vscode/extensions\.json
20
+ |\.devcontainer/devcontainer.json
21
+ )
22
+ )
16
23
- id : check-merge-conflict
17
24
- id : check-toml
18
25
- id : check-xml
@@ -77,6 +84,12 @@ repos:
77
84
- id : check-renovate
78
85
args : ["--verbose"]
79
86
additional_dependencies : ['json5']
87
+ # requires: https://github.com/python-jsonschema/check-jsonschema/issues/341
88
+ # - id: check-jsonschema
89
+ # name: "Validate devcontainer"
90
+ # files: ^\.devcontainer/.*\.json$
91
+ # args: ["--schemafile", "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json"]
92
+ # waiting for custom YAML tags support: https://github.com/python-jsonschema/check-jsonschema/issues/489
80
93
# - id: check-jsonschema
81
94
# name: "Validate MkDocs file"
82
95
# files: ^mkdocs\.ya?ml$
Original file line number Diff line number Diff line change 1
1
{
2
+ // keep in sync with extensions in .devcontainer/devcontainer.json
2
3
"recommendations" : [
3
4
" editorconfig.editorconfig" ,
4
5
" redhat.vscode-yaml" ,
5
6
" davidanson.vscode-markdownlint" ,
6
- " streetsidesoftware.code-spell-checker"
7
+ " streetsidesoftware.code-spell-checker" ,
8
+ " yzhang.markdown-all-in-one"
7
9
]
8
10
}
Original file line number Diff line number Diff line change
1
+ // keep in sync with settings in .devcontainer/devcontainer.json
1
2
{
3
+ // see: https://squidfunk.github.io/mkdocs-material/creating-your-site/?h=vscode#minimal-configuration-visual-studio-code
2
4
"yaml.schemas" : {
3
5
"https://squidfunk.github.io/mkdocs-material/schema.json" : " mkdocs.yml"
4
6
},
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ The documentation is split into several parts:
29
29
30
30
### Getting started
31
31
32
+ > [ !NOTE]
33
+ > If you use [ GitHub Codespaces] ( https://github.com/features/codespaces ) or use a * Dev Container* extension, you do not need to do any of the below steps.
34
+ > They are run automatically on startup.
35
+
32
36
All you need is [ ` uv ` ] ( https://docs.astral.sh/uv ) to set up your environment.
33
37
34
38
``` shell
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ SPDX-License-Identifier = "CC-BY-SA-4.0"
20
20
21
21
[[annotations ]]
22
22
path = [
23
+ " .devcontainer/devcontainer.json" ,
23
24
" .vscode/extensions.json" ,
24
25
" .vscode/settings.json" ,
25
26
]
You can’t perform that action at this time.
0 commit comments