Skip to content

Commit b675de2

Browse files
committed
Fixed main's .gitignore, changed ci to use uv for everything
1 parent 2ca7a76 commit b675de2

File tree

2 files changed

+68
-15
lines changed

2 files changed

+68
-15
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,31 @@ jobs:
2020
override: true
2121
components: clippy, rustfmt
2222

23-
- name: "🐍 Set up Python"
24-
uses: actions/setup-python@v5
25-
with:
26-
python-version: "3.10"
23+
- name: "📦 Set up uv"
24+
uses: astral-sh/setup-uv@v2
2725

28-
- name: "🧱 Install dependencies"
26+
- name: "🧱 Install dependencies (dev + training extras)"
2927
run: |
30-
python -m pip install --upgrade pip
31-
python -m pip install maturin pytest black ruff mypy
32-
python -m pip install -e .[dev,training]
28+
uv sync --extra dev --extra training
3329
34-
- name: "⚙️ Build Rust extension (develop mode)"
30+
- name: "⚙️ Build Rust extension (develop mode in uv env)"
3531
run: |
36-
maturin develop --release
32+
uv run maturin develop --release
3733
3834
- name: "🧹 Lint and format check"
3935
run: |
4036
cargo fmt -- --check
4137
cargo clippy -- -D warnings
42-
black --check python/
43-
ruff check python/
44-
mypy python/
38+
uv run black --check python/
39+
uv run ruff check python/
40+
uv run mypy python/
4541
4642
- name: "🧪 Run Safety Test Suite"
4743
env:
4844
PYTHONPATH: ./python
4945
run: |
5046
echo "Running pytest safety checks..."
51-
pytest -v python/tests/test_safety.py
47+
uv run pytest -v python/tests/test_safety.py
5248
5349
- name: "✅ Summary"
5450
if: success()
@@ -65,6 +61,6 @@ jobs:
6561
- uses: actions/checkout@v4
6662
- uses: astral-sh/setup-uv@v2
6763
- name: Install dependencies
68-
run: uv sync --group dev --group training
64+
run: uv sync --extra dev --extra training
6965
- name: Run tests
7066
run: uv run pytest -q python

.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/target
2+
3+
# Virtual environments
4+
.venv/
5+
venv/
6+
env/
7+
8+
# Python cache
9+
__pycache__/
10+
*.pyc
11+
*.pyo
12+
*.pyd
13+
*.so
14+
15+
# Distribution folders
16+
dist/
17+
build/
18+
*.egg-info/
19+
20+
# IDE
21+
.vscode/
22+
.idea/
23+
24+
# OS
25+
.DS_Store
26+
27+
# Testing / typing / lint caches
28+
.pytest_cache/
29+
.mypy_cache/
30+
.ruff_cache/
31+
32+
# Coverage
33+
.coverage
34+
htmlcov/
35+
36+
# PyO3 / maturin
37+
.pyo3-build/
38+
target/wheels/
39+
40+
# Env files
41+
.env
42+
.python-version
43+
44+
45+
# SECURITY
46+
.sesskey
47+
.ssh
48+
.ssh/
49+
.ssh/id_rsa
50+
.ssh/id_rsa.pub
51+
.ssh/known_hosts
52+
.ssh/config
53+
.ssh/authorized_keys
54+
.ssh/ssh-agent
55+
.ssh/ssh-agent.pid
56+
.ssh/ssh-agent.env
57+
.DS_Store

0 commit comments

Comments
 (0)