Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit ·
d2a1b4a
1
Parent(s): 657a7d5
delete contributing.md
Browse files- CONTRIBUTING.md +0 -85
CONTRIBUTING.md
DELETED
|
@@ -1,85 +0,0 @@
|
|
| 1 |
-
# Contributing to ml-agent
|
| 2 |
-
|
| 3 |
-
## Creating a Pull Request
|
| 4 |
-
|
| 5 |
-
### 1. Create and work on your branch
|
| 6 |
-
|
| 7 |
-
```bash
|
| 8 |
-
# Create a new branch
|
| 9 |
-
git checkout -b your-feature-branch
|
| 10 |
-
|
| 11 |
-
# Make your changes, then commit
|
| 12 |
-
git add .
|
| 13 |
-
git commit -m "Your commit message"
|
| 14 |
-
```
|
| 15 |
-
|
| 16 |
-
### 2. Push your branch to keep changes backed up
|
| 17 |
-
|
| 18 |
-
```bash
|
| 19 |
-
# First time pushing this branch
|
| 20 |
-
git push --set-upstream origin your-feature-branch
|
| 21 |
-
|
| 22 |
-
# Subsequent pushes
|
| 23 |
-
git push
|
| 24 |
-
```
|
| 25 |
-
|
| 26 |
-
### 3. When ready, create a Pull Request
|
| 27 |
-
|
| 28 |
-
```bash
|
| 29 |
-
./create-pr.sh "Your PR title" "Optional description"
|
| 30 |
-
|
| 31 |
-
# This automatically:
|
| 32 |
-
# - Gets your current branch
|
| 33 |
-
# - Creates the PR
|
| 34 |
-
# - Pushes your changes to it
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
### Example workflow
|
| 38 |
-
|
| 39 |
-
```bash
|
| 40 |
-
# 1. Create branch
|
| 41 |
-
git checkout -b fix-bug-123
|
| 42 |
-
|
| 43 |
-
# 2. Make changes and commit
|
| 44 |
-
git add backend/main.py
|
| 45 |
-
git commit -m "Fix authentication bug"
|
| 46 |
-
|
| 47 |
-
# 3. Push to keep changes safe
|
| 48 |
-
git push --set-upstream origin fix-bug-123
|
| 49 |
-
|
| 50 |
-
# 4. Continue working...
|
| 51 |
-
git add frontend/src/App.tsx
|
| 52 |
-
git commit -m "Update UI"
|
| 53 |
-
git push
|
| 54 |
-
|
| 55 |
-
# 5. When ready, create PR
|
| 56 |
-
./create-pr.sh "Fix authentication bug" "Fixes issue where users could not authenticate in dev mode"
|
| 57 |
-
```
|
| 58 |
-
|
| 59 |
-
## Development Setup
|
| 60 |
-
|
| 61 |
-
### Running locally with hot-reload
|
| 62 |
-
|
| 63 |
-
**Backend:**
|
| 64 |
-
```bash
|
| 65 |
-
cd backend
|
| 66 |
-
uv run uvicorn main:app --host 0.0.0.0 --port 7860 --reload
|
| 67 |
-
```
|
| 68 |
-
|
| 69 |
-
**Frontend** (in a separate terminal):
|
| 70 |
-
```bash
|
| 71 |
-
cd frontend
|
| 72 |
-
npm run dev
|
| 73 |
-
```
|
| 74 |
-
|
| 75 |
-
Access the app at http://localhost:5173
|
| 76 |
-
|
| 77 |
-
### Environment Variables
|
| 78 |
-
|
| 79 |
-
Make sure your `.env` file in the project root contains:
|
| 80 |
-
```
|
| 81 |
-
ANTHROPIC_API_KEY=your_key_here
|
| 82 |
-
HF_TOKEN=your_hf_token_here
|
| 83 |
-
GITHUB_TOKEN=your_github_token_here
|
| 84 |
-
HF_NAMESPACE=your_namespace_here
|
| 85 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|