NEATdocs

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/activate

Install in editable mode

pip install -e ".[dev,keras]" tensorflow

Add torch or "jax[cpu]" to work on another backend.

Lint, format and type-check

ruff check .
ruff format --check .
mypy src/neat_optim

Test

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 --strict

What CI runs

Every pull request runs the same checks on GitHub Actions:

JobWhat it checks
QualityRuff lint, Ruff format, mypy
Python 3.10–3.13Full test suite on each version
Keras integrationTensorFlow integration tests and the custom-loop example
Keras backend (jax / torch)fit() smoke test, plus direct TorchNEAT tests on torch
Package buildBuilds the wheel and sdist, then smoke-tests the installed wheel
DocsStrict MkDocs build
CodeQLPython 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.

On this page