Contributing#
Bug reports, fixes, tests and documentation are all welcome.
Report a bug#
Open an issue with:
- the frappex-client, Frappe and Python versions,
- whether you used
ClientorAsyncClient, - the smallest code that shows the problem, and the full exception text.
Remove API keys, passwords and personal data from anything you paste. Security problems go through private reporting, never a public issue.
Propose a feature#
Open an issue first, describing the task you are trying to do rather than only the solution. Agreeing on the scope before writing code saves everyone time.
Set up the project#
You need uv and Python 3.10 or newer.
git clone https://github.com/Padmapriyan27/frappex-client.git
cd frappex-client
uv sync
Run the same checks as CI:
uv run ruff check . && uv run ruff format --check .
uv run mypy
uv run pytest --cov
Submit a change#
- Create a branch from
main. - Add or update tests. A change in behaviour needs a test that fails without it.
- Change
ClientandAsyncClienttogether; they must stay identical. - Add a line under Unreleased in
CHANGELOG.md. - Open a pull request with a
Conventional Commits title, such as
fix(protocol): encode '#' in document names.
Reviewers check that both clients still match, that the security rules still hold, and that public functions are typed and documented.
The full developer guide covers the architecture, adding an API call, integration tests and releasing.
By contributing you agree that your work is released under the MIT License.