Contributing [common]
Git branches
What follows is a table of the git branches used in the repositories following fpydocs’ specifications.
Important
Open pull requests on the dev
target branch.
Use bugfix-${fix_name}
or newfeature-${new_feature_name}
as names.
Branch |
Description |
Update schedule |
---|---|---|
|
the main branch |
every new release |
|
recent changes are merged here before a new release |
at will |
|
a generic bug fix |
|
|
a generic new feature |
Development environment
install Pipenv
run the following to install the development environment
make install-dev
you can use
pipenv run
to run the program in the development environmentif you have changed parts of the source code you must take care of adding the corresponding unit tests if applicable.
run the tests with:
make test
to install the program for the running user run:
make install
Note
don’t forget to add
~/.local/bin
toPATH
.to rebuild the documentation run
make doc
TODO and FIXME
Go in the repository’s root and then:
$ grep -e TODO -e FIXME -n */*.py
Contribution Steps
clone the repository
install the requirements
write code
write unit tests
run tests
update relevant documentation, if necessary
pull request