You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: add pre-commit for ruff & black
* docs: add pre-commit setup instructions to CONTRIBUTING.md
* chore: update ruff configuration in pyproject.toml
* when you run pre-commit run --all-files, it should actually format the files instead of just reporting what would change. After the formatting is done, you should see the changes in git status and be able to commit them.
* Remove black; will fight over eachother with ruff
* run ruff on pre-existing issues
* chore(pyproject.toml): remove black, update dirctories
* ci: remove black-formatter.yaml
* ci: add static-analysis.yaml running pre-commit hook
* build: add ruff to development dependencies
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,18 @@ Even if you're not ready to contribute code, we'd love to hear your thoughts. Dr
77
77
.\venv\Scripts\activate # Windows
78
78
```
79
79
80
+
3.**Pre-commit Setup**:
81
+
We use pre-commit hooks to automatically format and lint code. Set them up with:
82
+
```bash
83
+
pip install pre-commit
84
+
pre-commit install
85
+
```
86
+
87
+
That's it! The hooks will run automatically when you commit. To manually check all files:
88
+
```bash
89
+
pre-commit run --all-files
90
+
```
91
+
80
92
## Testing
81
93
82
94
We use a comprehensive testing stack to ensure code quality and reliability. Our testing framework includes pytest and several specialized testing tools.
].function# Using index 2 because we have a wrapper at index 1
368
+
calling_function=inspect.stack()[2].function# Using index 2 because we have a wrapper at index 1
398
369
returnlogger.warning(
399
370
f"Multiple sessions detected. You must use session.{calling_function}(). More info: https://docs.agentops.ai/v1/concepts/core-concepts#session-management"
0 commit comments