Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
You can never have enough documentation! Please feel free to contribute to any part of the documentation, such as the official docs, docstrings, or even on the web in blog posts, articles, and such.
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
- Remember that this is a volunteer-driven project, and that contributions are welcome :)
Ready to contribute? Here's how to set up aigents
for local development.
- Fork the repository, clone and add remote:
git clone --recursive https://github.com/[your-user]/aigents.git
git remote add upstream https://github.com/bessavagner/aigents.git
- Create a new Python environment. See .gitignore how to name your environment.
python3 -m venv .venv
and then activate the environment:
- on Windows:
.venv\Scripts\activate
- on macOS or Linux:
source .venv/bin/activate
- Install
aigents
usingpoetry
:
$ poetry install
Note that currently aigents
supports Python 3.11.
- Use
git
(or similar) to create a branch for local development and make your changes:
git checkout -b branch_name
- Set
DEBUG = True
atsettings.py
while developing. This enables debugging logs that help developers or clients see points where the package or application needs improvement or some kind of attention. Note thatsettings.py
has some custom loggers. Useclient
orstandard
for the package. For app, cli or gui userdebbug
,report
orreport_debug
. If your contribution has some points you judge is worth logging and info or warning message, prefer nest it in a DEBUG switch:
if DEBUG:
logger.warning('Log text')
- When you're done making changes, check that your changes conform to any code formatting requirements and pass any tests.
- For installing packages, use only poetry
poetry add package_name_here
- And any package that is used on development only must be added using
poetry add --group dev package_name_here
- Add and commit your changes. Prefer using Angular commit style:
git commit -m -b <type>(<scope>): <subject>
<type>
should be one of the following: feat, fix, docs, style, refactor, test, or chore.<scope>
is optional and should be a brief description of the affected component or module.<subject>
should be a short, descriptive message of the changes you made. For example: feat(login): add forgot password link.
We intent to in the future to use Python Semantic Release (PSR), so prefer to write your commits with <type>
as one of:
- feat: A new feature.
- fix: A bug fix.
- docs: Documentation changes.
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc).
- refactor: A code change that neither fixes a bug nor adds a feature.
- perf: A code change that improves performance.
- test: Changes to the test framework.
- build: Changes to the build process or tools.
- Push your changes to the remote branch.
- Open a pull request (PR) against the main branch and describe the changes you made.
- Wait for review and address any feedback.
- Once your changes are approved, they will be merged into the main branch.
Before you submit a pull request, check that it meets these guidelines:
- The pull request should include additional tests if appropriate.
- If the pull request adds functionality, the docs should be updated.
- The pull request should work for all currently supported operating systems and versions of Python.
- Run
black
for formatting andflake8
. Only make pull requests if all you additions conform to flake8 (the only exception being the moduleaigents.constants
)
[] Improve documentation.
[] Add examples.
Please note that the aigents
project is released with a
Code of Conduct. By contributing to this project you agree to abide by its terms.