Commit Graph

6 Commits

Author SHA1 Message Date
Jeff Epler c2ed1b0942 pre-commit: only run uncrustify if changed files are detected
This adds the "no-run-if-empty" flag to the xargs invocation.  Otherwise,
if git diff names no files, the command is run once with no agument
specified which leads to running on a default list of files that appears
to include ignored files and files in submodules.

I am uneasy about how this works (it means that `pre-commit run --all`
doesn't actually check all files) but that's a separate issue.
2021-03-15 15:19:23 -05:00
microDev 090b6ba42f
update pre-commit
- add formatting check
- add translations check
2021-03-15 19:26:29 +05:30
Jeff Epler 88ce6911b7 Revert "pre-commit: Add checking of 'make translate' status"
This reverts commit 1dda33dc41.
2021-01-12 18:52:39 -06:00
Jeff Epler 1dda33dc41 pre-commit: Add checking of 'make translate' status
.. when this check completes with an error, circuitpython.pot has been updated
and the changes can be staged.
2021-01-07 14:42:12 -06:00
Scott Shawcroft 17bdc969db
Reorganize sdkconfigs and release UF2s 2020-09-17 16:01:23 -07:00
Diego Elio Pettenò 79cd86445e Add a pre-commit configuration to enforce basic file hygiene. 2020-06-03 10:56:35 +01:00