Contributing¶
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
Development installation¶
First, clone and navigate into the project:
Alternatively, use ssh:
Tools I use:
- pdm: dependency management.
- pre-commit: runs the hooks below on every commit.
- isort: import sorting.
- black: formatting.
- pyrefly: type checking.
- pytest: testing.
- zensical: documentation site.
To set up the environment (including development dependencies) with pdm, run
Then activate with
or simpler, with our scripts (run from the repo root):
To install the git hooks (formatting and type checking on every commit), run:
To update the hooks to their latest versions, run:
To run testing, do:
To format and type check the codebase, run:
To run a single hook, e.g. black, isort or pyrefly, run:
To build the documentation site, run:
These scripts are executed in GitHub Actions, see .github/workflows for details.
Recommended development style¶
Python code style¶
Please write code matching the style of the surrounding code.
Otherwise, follow the following style guide that I personally use (by me): link.
Code quality¶
This is my personal preference: code should be clean, simple and modular. If a submission isn't up to that bar, I may not merge it, even if it works.
Documentation¶
The documentation string style follows the Google style format specified here.
Commit message¶
Commit messages should follow the format (applied during squash and merge):
Where [] denotes an optional part. {emoji} should be a relevant emoji, and #{issue} should be the relevant issue number.
Using the issue tracker¶
The issue tracker is the preferred channel for bug reports, but please respect the following guidelines:
- Please don't report issues with modified versions of
aioway. - Use the GitHub issue search — check if the issue has already been reported.
- Isolate the problem — ideally create reproducible steps with a minimal code snippet.
A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report.
- What is your environment?
- What steps will reproduce the issue?
- Which operating system(s) experience the problem?
- What would you expect to be the outcome?
All these details will help people to fix any potential bugs.
LLM contribution policy¶
You're free to use LLMs and other AI tools.
However, a human must be responsible for every submission, and I judge the result by quality.
- Issues: You must understand your report and be able to answer questions about it.
- Pull requests: You must have read and understood every line you changed, and be able to explain why it's there.
If you can't understand every word, don't submit. Low-effort automated submissions will be closed, and repeat offenders may be blocked.