Thank you for your interest in contributing! We welcome contributions from the community to help improve the MediaWiki developer ecosystem.
To set up a development environment, follow these steps:
-
Clone the repository:
git clone https://github.com/ftosoni/mediawiki-code2code-search.git cd mediawiki-code2code-search -
Create a virtual environment:
python -m venv venv # Windows: .\venv\Scripts\activate # Linux/macOS: source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt pip install pytest pytest-asyncio flake8
Before submitting a Pull Request, please ensure your changes pass the automated checks.
We use pytest for testing. To run the lightweight API and connectivity tests:
pytest tests/test_api.py tests/test_hf_availability.pyNote: Large model tests in tests/test_jina_components.py are generally excluded from CI and standard local runs to save resources.
We follow PEP 8 standards. You can check your code with flake8:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statisticsPlease review our GUIDELINES.md for details on:
- Staying within the 6 GiB RAM limit for Toolforge.
- Optimising for CPU-only inference.
- Using SQLite for metadata persistence.
- Open an Issue: For any major changes, please open an issue first to discuss what you would like to change.
- Create a Branch: Use a descriptive branch name (e.g.,
fix/search-latencyorfeature/new-language). - Submit a Pull Request: Provide a clear description of the changes and link to the relevant issue.