Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

update

Bingxi Zhao (Frank)57a903600be7
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 45f47764c..357bbeb26 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,6 +1,6 @@
# Contributing to DeepTutor
-Thank you for your interest in contributing to DeepTutor! πŸŽ‰
+Thank you for your interest in contributing to DeepTutor! That menas a lot for our team!
You can join our discord community for further discussion: https://discord.gg/aka9p9EW
@@ -20,19 +20,45 @@ We use automated tools to maintain code quality:
- **Prettier** β€” Frontend formatting (`web/.prettierrc.json`)
- **detect-secrets** β€” Security scanning
-Pre-commit hooks run automatically on `git commit`. To run manually:
+This project uses **pre-commit hooks** to automatically format code and check for issues before commits.
+**Step 1: Install pre-commit**
+```bash
+# Using pip
+pip install pre-commit
+
+# Or using conda
+conda install -c conda-forge pre-commit
+```
+
+**Step 2: Install Git hooks**
+```bash
+cd DeepTutor
+pre-commit install
+```
+
+**Step 3: Run checks on all files**
```bash
pre-commit run --all-files
```
-## βš™οΈ Configuration Guidelines
+**Common Commands**
-- **LLM parameters** (`temperature`, `max_tokens`): Edit `config/agents.yaml`
-- **System settings** (paths, logging, tools): Edit `config/main.yaml`
-- **API keys**: Use `.env` file (never commit secrets)
+```bash
+# Normal commit (hooks run automatically)
+git commit -m "Your commit message"
+
+# Manually check all files
+pre-commit run --all-files
+
+# Update hooks to latest versions
+pre-commit autoupdate
+
+# Skip hooks (not recommended, only for emergencies)
+git commit --no-verify -m "Emergency fix"
+```
-See [config/README.md](config/README.md) for details.
+</details>
## πŸ“‹ Commit Message Format
@@ -51,5 +77,5 @@ See [config/README.md](config/README.md) for details.
---
-Let's build a tutoring system for the whole community TOGETHER! πŸš€
+### Let's build a tutoring system for the whole community TOGETHER! πŸš€