diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index da60eeb..1ac7b89 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,8 @@ "ghcr.io/devcontainers/features/python:1": {}, "ghcr.io/devcontainers/features/rust:1": {}, "ghcr.io/devcontainers-contrib/features/act:1": {}, - "ghcr.io/devcontainers-contrib/features/markdownlint-cli2:1": {} + "ghcr.io/devcontainers-contrib/features/markdownlint-cli2:1": {}, + "ghcr.io/devcontainers-contrib/features/pre-commit:2": {} }, "containerEnv": { "VCPKG_FORCE_SYSTEM_BINARIES": "1" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..240d071 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace +