pre-commit and pre-commit-ci by aucampia · Pull Request #1672 · RDFLib/rdflib (original) (raw)

For a demo see: aucampia#33

I have enabled pre-commit CI now, but until this is merged it will always fail, it can be easily disabled from here: https://pre-commit.ci/

If we are in agreement on the settings there are the following options to actually run the hooks on the codebase:

  1. We merge it and then wait for the weekly pre-commit CI auto fix - this happens 18:00 UTC Monday
  2. We merge it and then make a emptyish PR and run pre-commit.ci autofix on it

Once this is done things will be fairly clean going forward, and each contributor can then either run pre-commit run by themselves or they/us can run pre-commit.ci autofix on their PR branches.