There are many ways to contribute, from helping others on Github or Discord, writing documentation, or improving code.
Please pick up a task from issues.
If you encounter a bug or have a feature in mind, search if an issue already exists. If a related issue doesn't exist, please open a new issue.
- Before taking on significant code changes, please discuss your ideas on Discord to ensure they align with our vision. We want to keep the codebase simple and unintimidating for new users.
- Fork the repository and create a new branch for your work.
- Follow the Running Your Local Fork guide below.
- Make changes with clear code comments explaining your approach. Try to follow existing conventions in the code.
- Follow the Code Formatting and Linting guide below.
- Open a PR into
main
linking any related issues. Provide detailed context on your changes.
We will review PRs when possible and work with you to integrate your contribution. Please be patient as reviews take time. Once approved, your code will be merged.
Once you've forked the code and created a new branch for your work, you can run the fork by following these steps:
- CD into the software folder
/software
- Install dependencies
poetry install
- Run the program
poetry run 01
Our project uses black
for code formatting and isort
for import sorting via a pre-commit
hook to ensure consistent code style across contributions. Please adhere to the following guidelines:
-
Install Pre-commit Hooks:
To automatically format your code every time you make a commit, install the pre-commit hooks.
cd software # Change into `software` directory if not there already. poetry add --dev pre-commit # Install pre-commit as a dev dependency pre-commit install
After installing, the hooks will automatically check and format your code every time you commit.
-
Manual Formatting:
If you choose not to use the pre-commit hooks, you can manually format your code using:
black . isort .
-
Bypassing:
If you need to bypass this for some reason, you can
git commit
with the--no-verify
flag.
If you wish to install new dependencies into the project, please use poetry add package-name
.
For some, poetry install
might hang on some dependencies. As a first step, try to run the following command in your terminal:
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
Then run poetry install
again. If this doesn't work, please join our Discord community for help.
Contributions to 01 are under AGPL.
Join our Discord community and post in the #General channel to connect with contributors. We're happy to guide you through your first open source contribution to this project!
Thank you for your dedication and understanding as we continue refining our processes. As we explore this extraordinary new technology, we sincerely appreciate your involvement.