aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2021-08-17 12:54:59 +0100
committerFreddie Liardet <frederick.liardet@arm.com>2021-09-27 16:29:06 +0000
commita71711008dad9a786a66dcd734b19cb102d65ec5 (patch)
treed452f581cedde72a61867680be4d290adb03beba /.pre-commit-config.yaml
parent93d6cf0028aea111f624b320027576a26354e998 (diff)
downloadComputeLibrary-a71711008dad9a786a66dcd734b19cb102d65ec5.tar.gz
Generate an operator configuration file from a list of tflite models
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: I1b13da6558bd11d49747162d66c81255ccec1498 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6166 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: SiCong Li <sicong.li@arm.com> Reviewed-by: Sheri Zhang <sheri.zhang@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000000..baf458264a
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,53 @@
+fail_fast: false
+
+files: ^python/
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.0.1
+ hooks:
+ - id: check-yaml
+ stages: [commit]
+ - id: check-json
+ stages: [commit]
+ - id: end-of-file-fixer
+ stages: [commit]
+ exclude: \.cp?p?$
+ - id: requirements-txt-fixer
+ stages: [commit]
+ - id: trailing-whitespace
+ stages: [commit]
+ - id: mixed-line-ending
+ args: ['--fix=lf']
+ description: Forces to replace line ending by the UNIX 'lf' character.
+ - id: detect-private-key
+ stages: [commit]
+ - id: check-executables-have-shebangs
+ stages: [commit]
+ - id: check-added-large-files
+ args: ['--maxkb=100']
+ stages: [commit]
+ - repo: https://github.com/asottile/reorder_python_imports
+ rev: v2.6.0
+ hooks:
+ - id: reorder-python-imports
+ args: [--py3-plus]
+ pass_filenames: true
+ - repo: https://github.com/psf/black
+ rev: 21.7b0
+ hooks:
+ - id: black
+ - repo: https://github.com/asottile/blacken-docs
+ rev: v1.8.0
+ hooks:
+ - id: blacken-docs
+ additional_dependencies: [black==21.7b0]
+ - repo: https://github.com/asottile/pyupgrade
+ rev: v2.7.2
+ hooks:
+ - id: pyupgrade
+ args: [--py36-plus]
+ - repo: https://github.com/markdownlint/markdownlint
+ rev: v0.9.0
+ hooks:
+ - id: markdownlint
+ args: ["--style", ".mdl.rb"]