Developing invenio-sword¶
Pre-commit checks¶
invenio-sword uses pre-commit for automated checking and reformatting on every commit. This includes:
These checks are also run in CI.
You should ensure you have pre-commit installed, by e.g.
pip install --user pre-commit
Once you have cloned the invenio-sword repository, you should install the pre-commit hook:
git clone https://github.com/swordapp/invenio-sword.git
cd invenio-sword
pre-commit install