Skip to content

Commit 99b6097

Browse files
chore(devcontainer): add development container setup
1 parent 3a22029 commit 99b6097

8 files changed

Lines changed: 57 additions & 42 deletions

File tree

.bazelrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

.devcontainer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"image": "ghcr.io/eclipse-score/devcontainer:latest",
3+
"customizations": {
4+
"vscode": {
5+
"extensions": [
6+
"detachhead.basedpyright",
7+
"github.vscode-github-actions"
8+
]
9+
}
10+
},
11+
"postCreateCommand": "uv pip install -r requirements.txt"
12+
}

.github/dependabot.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,38 @@
66
version: 2
77

88
updates:
9-
# We use GitHub Actions for CI/CD, so we can update those dependencies via dependabot.
10-
- package-ecosystem: "github-actions"
11-
directory: "/"
9+
- package-ecosystem: github-actions
10+
directory: /
1211
schedule:
13-
interval: "weekly"
12+
interval: weekly
1413
groups:
1514
all-in-one:
1615
patterns:
1716
- "*"
1817
update-types:
19-
- "minor"
20-
- "patch"
18+
- minor
19+
- patch
2120

22-
# Since this repo does not use bazel, we can also update python dependencies via dependabot.
23-
- package-ecosystem: "pip"
24-
directory: "/"
21+
- package-ecosystem: pip
22+
directory: /
2523
schedule:
26-
interval: "weekly"
24+
interval: weekly
2725
groups:
2826
all-in-one:
2927
patterns:
3028
- "*"
3129
update-types:
32-
- "minor"
33-
- "patch"
30+
- minor
31+
- patch
32+
33+
- package-ecosystem: devcontainers
34+
directory: /
35+
schedule:
36+
interval: weekly
37+
groups:
38+
all-in-one:
39+
patterns:
40+
- "*"
41+
update-types:
42+
- minor
43+
- patch

.github/workflows/pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,23 @@ jobs:
3333

3434
- name: 🧩 Run pytest
3535
run: python -m pytest tests
36+
37+
self_test_in_devcontainer:
38+
name: 🔬 Self Test in Devcontainer
39+
runs-on: ubuntu-latest
40+
container:
41+
image: ghcr.io/eclipse-score/devcontainer:latest
42+
steps:
43+
- name: 📥 Check out
44+
uses: actions/checkout@v6
45+
46+
- name: 🛠️ Setup Python Dependencies
47+
run: |
48+
uv venv
49+
uv pip install -r requirements.txt
50+
51+
- name: 🧩 Lint Codebase
52+
run: ruff check
53+
54+
- name: 🧩 Run pytest
55+
run: python -m pytest tests

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ The registry tooling is implemented in Python.
6161

6262
Setup steps:
6363
```bash
64-
python3 -m venv .venv
65-
source .venv/bin/activate
66-
pip install -r requirements.txt
64+
uv pip install -r requirements.txt
6765

6866
# Run script via:
6967
python -m src.registry_manager.main

requirements.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# TODO: move dependencies to pyproject.toml, with a proper dev group.
22

3-
# for linting
4-
ruff
5-
63
# for testing
74
pyfakefs
85
pytest

requirements.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# pip-compile
@@ -14,8 +14,6 @@ charset-normalizer==3.4.1
1414
# via requests
1515
cryptography==46.0.5
1616
# via pyjwt
17-
exceptiongroup==1.3.1
18-
# via pytest
1917
idna==3.10
2018
# via requests
2119
iniconfig==2.3.0
@@ -40,17 +38,10 @@ pytest==9.0.2
4038
# via -r requirements.in
4139
requests==2.32.4
4240
# via pygithub
43-
ruff==0.15.1
44-
# via -r requirements.in
4541
semver==3.0.4
4642
# via -r requirements.in
47-
tomli==2.3.0
48-
# via pytest
4943
typing-extensions==4.13.2
50-
# via
51-
# cryptography
52-
# exceptiongroup
53-
# pygithub
44+
# via pygithub
5445
urllib3==2.6.3
5546
# via
5647
# pygithub

0 commit comments

Comments
 (0)