tools-python icon indicating copy to clipboard operation
tools-python copied to clipboard

Add `pre-commit` hook

Open chrisdecker1201 opened this issue 2 years ago • 1 comments

This is a PR for discussion :).

I was looking for a possibility to introduce some kind of automatically validation of SPDX files inside of a git repository.

I found pre-commit, which could be a solution for my goal. It will execute the pyspdxtools --infile for validation.

Currenty this is working only for one file and only for *.json and not the other possible file-formats, but it's working.

Do you have interest in integrating pre-commit? If so, I think I will try to make this possibel.

chrisdecker1201 avatar Dec 15 '23 11:12 chrisdecker1201

This is a PR for discussion :).

sorry, that no discussion happened yet.

maxhbr avatar Feb 15 '24 17:02 maxhbr