test_ws2p.py
-
Moul authored
Found by pre-commit hook Otherwise we get: R0201: Method could be a function (no-self-use) https://stackoverflow.com/a/2674052
Moul authoredFound by pre-commit hook Otherwise we get: R0201: Method could be a function (no-self-use) https://stackoverflow.com/a/2674052
Contributing
Goals
Part of the Duniter project running the Ğ1 currency, Silkaj project is aiming at creating a generic tool to manage the main account and wallets, to administrate and to monitor the currency.
Install the development environment
We are using Poetry as a development environment solution. Start by installing Poetry. This will install a sandboxed Python environment. Dependencies will be installed in it in order to have Silkaj running and to have pre-installed developement tools.
Workflow
- We use branches for merge requests
- We prefer fast-forward and rebase method than having merge commits created. This in order to have a clean history.
Branches
-
main
: development and stable branch - maintainance branches, to maintain a stable version while developing future version with breaking changes. For instance:
release/0.12
Developing with DuniterPy
DuniterPy is a Python library for Duniter v1 clients. It implements a client with multiple APIs, the handling for document signing. As it is coupled with Silkaj, it is oftenly needed to develop in both repositories.
How to use DuniterPy as editable with Poetry
Clone DuniterPy locally alongside of silkaj
repository:
silkaj> cd ..
git clone https://git.duniter.org/clients/python/duniterpy
Use DuniterPy as a path dependency:
poetry add ../duniterpy
Developing with modules
Silkaj is using Python modules which shape kind of a framework. Please read their documentations on how to use them the best possible.