Changes Submission Guide¶
Using GitKraken?
Each git step below can also be done in GitKraken. See their guides on pulling from upstream and opening pull requests.
-
Before starting, open an issue to discuss your proposed change with our team. For general ideas and questions, use Discussions.
-
Update your local
mainwith the latest changes fromjacksund/simmate:git checkout main git pull upstream main -
Create a branch for your changes:
git checkout -b my-new-feature -
Open the repo in your IDE (e.g. Spyder or VS Code) and point it at the
.venvinterpreter. -
Make your changes.
-
Lint and format your code. This runs ruff on python code (
ruff check --fixandruff format) and djlint on html templates (djlint --reformat):simmate dev lint -
Make sure the tests pass:
simmate dev testTip
Some apps (inventory, project, and compute management) include fake data for testing and exploring the website. Load it into a fresh dev database with
simmate database load-test-data(add an app name likeinventory_managementto load just one), or use thefake_datafixture in tests (e.g.fake_data("inventory_management")). Each app's data is stored as zipped CSVs at<app>/test/fake_data.zipand regenerated by<app>/test/make_fake_data.py. All apps share the same fake users (simmate.database.utils.FAKE_USERNAMES). -
Review your changes, then commit them and push your branch to your fork:
git add -A git commit -m "describe your change" git push -u origin my-new-feature -
Open a pull request from your branch into
jacksund/simmateon GitHub (or withgh pr create), and we'll review it! For fun, add an emoji to your pull request title to show you've read the guide.