Skip to content

Commit 2b8f6b5

Browse files
adjust devcontainer setup
1 parent c2f1b76 commit 2b8f6b5

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
FROM python:3.12-slim-bookworm
22

33
# Install system dependencies
4+
# Note: build-essential is required for ARM64 architectures to compile
5+
# Python packages that don't have pre-built wheels (like ruff, maturin, etc.)
6+
# docker.io provides the Docker CLI for testcontainers
7+
# openssh-client provides ssh for git operations over SSH
48
RUN apt-get update && apt-get install -y \
59
--no-install-recommends \
10+
build-essential \
11+
docker.io \
12+
openssh-client \
613
nano \
714
curl \
815
iputils-ping \

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"mounts": [
1010
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
1111
],
12+
"containerEnv": {
13+
"TESTCONTAINERS_CONNECTION_MODE": "bridge_ip"
14+
},
1215
"customizations": {
1316
"vscode": {
1417
"settings": {

.pre-commit-config.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,6 @@ repos:
1010
# Run the formatter
1111
- id: ruff-format
1212

13-
# MyPy for type checking
14-
- repo: https://github.com/pre-commit/mirrors-mypy
15-
rev: v1.18.2
16-
hooks:
17-
- id: mypy
18-
additional_dependencies:
19-
- types-requests
20-
- pytest
21-
- testcontainers
22-
- web3==7.13.0
23-
args: [--strict]
24-
# Only check source files, not tests (to avoid import issues)
25-
files: ^src/
26-
2713
# Basic hooks for file quality
2814
- repo: https://github.com/pre-commit/pre-commit-hooks
2915
rev: v6.0.0

scripts/check-all.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ set -e
77
echo "🔍 Running pre-commit checks..."
88
uv run --group lint pre-commit run --all-files
99

10+
echo "🔬 Running type checks with mypy..."
11+
uv run --group lint mypy --strict src/
12+
1013
echo "🧪 Running tests..."
1114
uv run --group test pytest tests/ -n auto -v
1215

0 commit comments

Comments
 (0)