Development
Local setup and the checks every pull request must pass.
Local development uses an editable install with the development and Keras extras. You need a C++ compiler, because the editable install builds the native extension.
Create a virtual environment
git clone https://github.com/ItCodinTime/NEAT.git && cd NEAT
python -m venv .venv
source .venv/bin/activateInstall in editable mode
pip install -e ".[dev,keras]" tensorflowAdd torch or "jax[cpu]" to work on another backend.
Lint, format and type-check
ruff check .
ruff format --check .
mypy src/neat_optimTest
pytest tests/unit # fast, no Keras required
pytest # full suite
pytest tests/integration # Keras integration (TensorFlow backend)Build the package and docs
python -m build
mkdocs build --strictWhat CI runs
Every pull request runs the same checks on GitHub Actions:
| Job | What it checks |
|---|---|
| Quality | Ruff lint, Ruff format, mypy |
| Python 3.10–3.13 | Full test suite on each version |
| Keras integration | TensorFlow integration tests and the custom-loop example |
| Keras backend (jax / torch) | fit() smoke test, plus direct TorchNEAT tests on torch |
| Package build | Builds the wheel and sdist, then smoke-tests the installed wheel |
| Docs | Strict MkDocs build |
| CodeQL | Python and C++ code scanning |
CI required and Docs must pass before a pull request can merge.
Releases
Publishing a GitHub release triggers the release workflow. It validates the version with scripts/release_check.py, builds the sdist and wheels with cibuildwheel (Linux and macOS, CPython 3.10–3.13), and attaches them to the release. The steps are in docs/contributing/release.md.
See Contributing for starter issues and how pull requests land.