Skip to content

starsimhub/styleguide

Starsim style guide

This repository contains style and community guidelines for Starsim projects. The style guide is divided into the following sections:

  1. Design philosophy: common tasks should be simple, audience is scientists, and workload/readability matter.
  2. Python style: Google style plus house rules, including no type annotations, longer lines, etc.
  3. Testing: focus on scientific correctness, and support triple execution (standalone scripts + pytest + GitHub Actions).
  4. Documentation: readmes, auto-generated API reference, and tutorials.
  5. Other principles: for example, be very careful not include sensitive data in repos.
  6. Zen of Starsim: short principles and credos for research and software (simplicity, docs, tests, change).

Note: although not part of the style guide, the IDM software engineering quality guidelines are also included here for completeness. The style guide and the engineering quality guidelines together give a (pretty) complete picture of what good Starsim code looks like.

Version: 2.1 | Last updated: 2026-04-02

About

Guidelines for contributing to Starsim and Starsim models

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors