Skip to content

Commit d077e2f

Browse files
authored
Feat/add dependabot (#3)
* add dependabot yaml * changed UID to 1000 to avoid permission error. improved post start command
1 parent eb3475a commit d077e2f

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.12.7
22
ARG USERNAME=vscode
3-
ARG USER_UID=1010
3+
ARG USER_UID=1000
44
ARG USER_GID=$USER_UID
55

66
# Set the working directory inside the container

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@
6262
"mounts": [
6363
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
6464
],
65-
"postStartCommand": "pre-commit install && sudo chown vscode .git/hooks/pre-commit"
65+
"postStartCommand": "pre-commit install --overwrite"
6666
}

.github/dependabot.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip"
9+
directory: "/" # Root directory where pyproject.toml is located
10+
schedule:
11+
interval: "monthly"
12+
groups:
13+
poetry-minor-patch-updates:
14+
applies-to: version-updates
15+
update-types:
16+
- "minor"
17+
- "patch"
18+
- package-ecosystem: "github-actions"
19+
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
20+
directory: "/"
21+
schedule:
22+
interval: "monthly"
23+
- package-ecosystem: "devcontainers"
24+
directory: "/"
25+
schedule:
26+
interval: "monthly"
27+
- package-ecosystem: "docker"
28+
directory: "/.devcontainer/"
29+
schedule:
30+
interval: "monthly"
31+
ignore:
32+
- dependency-name: "*"
33+
update-types: ["version-update:semver-major", "version-update:semver-minor"]

0 commit comments

Comments
 (0)