- Use UK/British English instead of US English
- Say things like
visualiseinstead ofvisualize - For headings, only capitalise the first letter of heading, do not use title case
You can test if a notebook runs from the command line with IPython command.
Example:
poetry run ipython my-notebook.ipynbAlternative if you have IDE access, you can use the IDE to run the notebook.
When running a Python script use poetry run python command instead of plain python command, so that the virtual environment is activated.
poetry run python scripts/logos/post-process-logo.pyDon't format code.
- Never push directly to a master, and open a pull request when asked.
- Do not include test plan in a pull request description
- If the user ask to open a pull request as feature then start the PR title with "feat:" prefix and also add one line about the feature into
CHANGELOG.md - Each changelog entry should follow the date of the PR in YYYY-MM-DD format. Example: Something was updated (2026-01-01).
- Before opening or updating a pull request, format the code
- Use naive UTC datetimes everywhere
- When using datetime class use
import datetime.datetimeand usedatetime.datetimeanddatetime.timedeltaas type hints - Instead of
datetime.datetime.utcnow()usenative_datetime_utc_now()that is compatible across Python versions
- For string enums, both members and values must in snake_case
- When adding or updating dependencies in
pyproject.toml, always add a comment why this dependency is needed for this project
- Whenever possible, prefer table output instead of print(). Use Pandas DataFrame and notebook's built-in display() function to render tabular data.