Skip to content

Commit

Permalink
Add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xg0nz0 committed Mar 7, 2024
1 parent 37d49eb commit cc9e23b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cc9e23b

Please sign in to comment.