Your first contribution¶
New to the project, or to open source? This page walks you through a first contribution. Questions are welcome in an issue — there are no silly ones.
Ways to help (no code needed)¶
- Try it on a real model and report what was wrong or confusing. Please only share files you are allowed to
share; a description and the
bimora inspect --json --redact-headeroutput are often enough. - Improve the documentation: fix unclear wording, add an example you needed.
- Suggest a validation rule your projects check by hand.
Your first code change¶
- Pick something small: a documentation fix, a clearer error message, or an issue labelled good first issue. Comment on the issue so others know you are working on it.
- Set up (once):
git clone https://github.com/<your-account>/bimora-open-source # your fork
cd bimora-open-source
python -m venv .venv
# Windows: .venv\Scripts\activate macOS / Linux: source .venv/bin/activate
python -m pip install -e ".[dev]"
- Create a branch:
git checkout -b fix-short-description. - Make the change and add a test in
tests/that would fail without your change. - Run the checks:
ruff format src tests scripts examples
ruff check src tests scripts examples
mypy
python -m pytest
- Open a pull request and fill in the checklist. A maintainer will review it; small follow-up changes are normal and not a sign that something is wrong.
Where things live¶
| Folder | Contents |
|---|---|
src/bimora/ifc/ |
opening IFC files and extracting data |
src/bimora/validation/ |
the validation rules and their configuration |
src/bimora/spatial/ |
rooms, areas, units |
src/bimora/interoperability/ |
JSON / CSV export, mapping, BCF, comparison |
src/bimora/cli.py |
the bimora command |
tests/ |
the test suite |
examples/ |
example models, scripts and configuration |
Ground rules¶
- Never include confidential models, client data, credentials or personal data.
- Only add example files you created yourself or whose license allows redistribution.
- Keep claims honest: if something is untested, say so.
See also CONTRIBUTING.md and the Code of Conduct.