Skip to content

Commit

Permalink
Add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbarton90 committed Dec 26, 2023
1 parent 561e2cc commit 7db5e7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "devcontainer1",
"postCreateCommand": "bash .devcontainer/aliases.sh",
"postCreateCommand": [
"bash", ".devcontainer/post_create.sh"
],
"customizations": {
"vscode": {
"extensions": [
Expand Down
3 changes: 3 additions & 0 deletions .devcontainer/aliases.sh → .devcontainer/post_create.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

pip install --user pre-commit
pre-commit install

# Setup git aliases
git config alias.d 'diff'
git config alias.ds 'diff --staged'
Expand Down

0 comments on commit 7db5e7f

Please sign in to comment.