Skip to content

Commit 8f03304

Browse files
authored
Add pre-commit hooks to check shebangs (#2247)
1 parent cf45328 commit 8f03304

File tree

17 files changed

+32
-12
lines changed

17 files changed

+32
-12
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ repos:
7272
rev: v5.0.0
7373
hooks:
7474
- id: check-added-large-files
75+
- id: check-executables-have-shebangs
76+
- id: check-shebang-scripts-are-executable
7577
- id: end-of-file-fixer
7678
- id: requirements-txt-fixer
7779
- id: trailing-whitespace

images/tensorflow-notebook/cuda/20tensorboard-proxy-env.sh

100644100755
File mode changed.

images/tensorflow-notebook/cuda/nvidia-lib-dirs.sh

100644100755
File mode changed.

tests/by_image/docker-stacks-foundation/data/run-hooks/change/a.sh

100644100755
File mode changed.

tests/by_image/docker-stacks-foundation/data/run-hooks/change/b.sh

100644100755
File mode changed.

tests/by_image/docker-stacks-foundation/data/run-hooks/change/c.sh

100644100755
File mode changed.

tests/by_image/docker-stacks-foundation/data/run-hooks/executables/non_executable.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
# Copyright (c) Jupyter Development Team.
32
# Distributed under the terms of the Modified BSD License.
43

tests/by_image/docker-stacks-foundation/data/run-hooks/executables/run-me.sh

100644100755
File mode changed.

tests/by_image/docker-stacks-foundation/data/run-hooks/failures/a.sh

100644100755
File mode changed.

tests/by_image/docker-stacks-foundation/data/run-hooks/failures/c.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)