The coding style used for the Taskwarrior is based on the Google C++ Style Guide, with small modifications in the line length.
In order to have consistancy and automatic formatting pre-commit is used to apply clang-format and black are used. In order to set them up locally please run:
pip install pre-commit
pre-commit install
For more information refer to the quick-start of pre-commit. The setup is also included in the CI, hence if one can not install it automatically then the CI will take care for it in the PR.
Rust code should be formatted with rustfmt
and generally follow Rust style guidelines.