Skip to content

Commit ecb05e1

Browse files
authored
Merge pull request #103 from RegioHelden/101-ruff-vscode
Set ruff version used by VScode
2 parents 265d671 + 7d5535a commit ecb05e1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config_defaults.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
.devcontainer/devcontainer.json:
1717
run_services: ["app"]
18+
# see https://github.com/astral-sh/ruff-vscode/releases
1819
# renovate: datasource=github-releases depName=astral-sh/ruff-vscode
1920
vscode_ruff: "2025.30.0"
2021

@@ -23,6 +24,7 @@ compose.yaml:
2324
require_postgres: false
2425

2526
Dockerfile:
27+
# see https://github.com/astral-sh/uv/releases
2628
# renovate: datasource=github-releases depName=astral-sh/uv
2729
uv_version: "0.9.13"
2830

moduleroot/.devcontainer/devcontainer.json.erb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
// features to be installed in the dev container
2222
"features": {
2323
"ghcr.io/devcontainers/features/common-utils:2": {},
24-
"ghcr.io/devcontainers/features/git:1": {}
24+
"ghcr.io/devcontainers/features/git:1": {},
25+
"ghcr.io/jsburckhardt/devcontainer-features/ruff:1": {
26+
"version": "v<%= @configs['ruff_version'] -%>"
27+
}
2528
},
2629
// configure vscode
2730
"customizations": {
@@ -66,6 +69,8 @@
6669
"includeAllSymbols": true
6770
}
6871
],
72+
// use ruff from environment to keep control of version
73+
"ruff.importStrategy": "fromEnvironment",
6974
// don't activate the virtual environment every time as we're using the env binary
7075
"python.terminal.activateEnvironment": false,
7176
"python.terminal.activateEnvInCurrentTerminal": true,

0 commit comments

Comments
 (0)