Skip to content

Commit 1a9deab

Browse files
authored
Fix pre-commit deprecation warnings (#90)
1 parent 4e97bb3 commit 1a9deab

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.devcontainer/devcontainer.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"build": {
3-
// instructs devcontainers to use a Dockerfile
4-
// rather than a pre-defined image
5-
"dockerfile": "Dockerfile"
6-
},
7-
"customizations": {
8-
"vscode": {
9-
"extensions": [
10-
"ms-azuretools.vscode-docker", // docker support
11-
"BazelBuild.vscode-bazel" // bazel support
12-
]
13-
}
14-
},
15-
// sets up pre-commit hooks
16-
"postStartCommand": "pre-commit install"
17-
}
18-
2+
"build": {
3+
// instructs devcontainers to use a Dockerfile
4+
// rather than a pre-defined image
5+
"dockerfile": "Dockerfile"
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-azuretools.vscode-docker", // docker support
11+
"BazelBuild.vscode-bazel" // bazel support
12+
]
13+
}
14+
},
15+
// sets up pre-commit hooks
16+
"postStartCommand": "pre-commit install"
17+
}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Commitizen runs in commit-msg stage
66
# but we don't want to run the other hooks on commit messages
7-
default_stages: [commit]
7+
default_stages: [pre-commit]
88

99
# Use a slightly older version of node by default
1010
# as the default uses a very new version of GLIBC

0 commit comments

Comments
 (0)