Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ repos:
exclude: \.(svg)$
- name: 'Check trailing whitespace'
id: trailing-whitespace
# TODO add shebang to all excutable python/shell scripts
- name: 'Check executable files'
id: check-executables-have-shebangs
exclude: \.(py|sh)$
exclude:
(?x)^(
.*/__init__.py$|
compiler/nnc/utils/.*\.py$|
runtime/tests/scripts/models/.*/config\.sh$|
res/TensorFlowTests/.*\.py$
)

- repo: https://github.com/rhysd/actionlint
rev: 'v1.7.9'
Expand Down
2 changes: 2 additions & 0 deletions runtime/compute/ARMComputeEx/resolve_includes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

#
# Copyright (C) 2018 The Android Open Source Project
# Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
Expand Down
2 changes: 2 additions & 0 deletions runtime/tests/nnapi/specs/generate_vts_test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

#
# Copyright (C) 2017 The Android Open Source Project
#
Expand Down
2 changes: 2 additions & 0 deletions tools/pbfile_tool/convert_ckpt_to_pb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions tools/pbfile_tool/convert_pb_to_pbtxt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions tools/pbfile_tool/extract_subgraph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

import tensorflow as tf

import argparse
Expand Down
2 changes: 2 additions & 0 deletions tools/tensorflow_model_freezer/base_freezer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions tools/tensorflow_model_freezer/model_freezer_util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions tools/tflkit/summarize_pb.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

import argparse
import os
import subprocess
Expand Down