Skip to content

Combines clang-format and prettier into a single pre-commit image#46

Merged
bthomee merged 1 commit intomainfrom
bthomee/pre-commit
Aug 21, 2025
Merged

Combines clang-format and prettier into a single pre-commit image#46
bthomee merged 1 commit intomainfrom
bthomee/pre-commit

Conversation

@bthomee
Copy link
Contributor

@bthomee bthomee commented Aug 21, 2025

This will allow us create a single pre-commit job that simply runs pre-commit run --show-diff-on-failure --color=always --all-files.

This change here uses Nodesource to install Node, instead of NVM - this time GitHub CI is able to run prettier without problems.

echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_VERSION%%.*}.x nodistro main" | \
tee /etc/apt/sources.list.d/nodesource.list
apt-get update
apt-get install -y --no-install-recommends nodejs=${NODE_VERSION}-1nodesource1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so much better than e.g. curl https:// . . . . | bash which I think was used to install NVM. Nice, and I am glad it works !

@bthomee bthomee merged commit 686f402 into main Aug 21, 2025
6 of 10 checks passed
@bthomee bthomee deleted the bthomee/pre-commit branch August 21, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants