Skip to content

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:

git clone https://github.com/rentruewang/aioway
cd aioway/

Alternatively, use ssh:

git clone git@github.com:rentruewang/aioway
cd aioway/

Tools I use:

To set up the environment (including development dependencies) with pdm, run

pdm install -G:all

Then activate with

eval $(pdm venv activate)

or simpler, with our scripts (run from the repo root):

bash ci/setup.sh
bash ci/install.sh

To install the git hooks (formatting and type checking on every commit), run:

pdm run pre-commit install

To update the hooks to their latest versions, run:

pdm run pre-commit autoupdate

To run testing, do:

bash ci/pytest.sh

To format and type check the codebase, run:

bash ci/format.sh

To run a single hook, e.g. black, isort or pyrefly, run:

bash ci/black.sh

To build the documentation site, run:

bash ci/website.sh

These scripts are executed in GitHub Actions, see .github/workflows for details.

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):

{emoji} Message. [([fix] #{issue})]

Detailed explanation.

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:

  1. Please don't report issues with modified versions of aioway.
  2. Use the GitHub issue search — check if the issue has already been reported.
  3. 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.