Development Guide
Setup Development Environment
-
Clone repository:
git clone https://github.com/uglychain/uglychain.git cd uglychain
-
Install dependencies:
pip install -r requirements-dev.txt
-
Configure pre-commit hooks:
pre-commit install
Running Tests
Run all tests:
pytest tests/
Run specific test module:
pytest tests/test_llm.py
Run with coverage report:
pytest --cov=src tests/
Code Style
- Follow PEP 8 style guide
- Use black for code formatting
- Use isort for import sorting
- Use flake8 for linting
Contributing
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Make your changes and commit:
git add . git commit -m "feat: your feature description"
-
Push your branch:
git push origin feature/your-feature-name
-
Create a pull request on GitHub