blob: 5a667393578f4eac0785e5a45cb0218a735e7208 [file] [log] [blame]
Joey Armstrong9886cc82024-04-04 11:34:51 -04001---
2
3# -----------------------------------------------------------------------
4# Copyright 2024 Open Networking Foundation Contributors
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http:#www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# -----------------------------------------------------------------------
18# SPDX-FileCopyrightText: 2024 Open Networking Foundation Contributors
19# SPDX-License-Identifier: Apache-2.0
20# -----------------------------------------------------------------------
21# See https://pre-commit.com for more information
22# See https://pre-commit.com/hooks.html for more hooks
23# -----------------------------------------------------------------------
24# .pre-commiit-config-yaml v0.1
25# -----------------------------------------------------------------------
26
27repos:
28- repo: https://github.com/pre-commit/pre-commit-hooks
29 rev: v4.5.0
30 hooks:
31 - id: trailing-whitespace
32 - id: end-of-file-fixer
33 - id: check-yaml
34 - id: check-added-large-files
35- repo: https://github.com/koalaman/shellcheck-precommit
36 rev: v0.10.0
37 hooks:
38 - id: shellcheck
39- repo: https://github.com/adrienverge/yamllint.git
40 rev: v1.35.1
41 hooks:
42 - id: yamllint
43
44## -----------------------------------------------------------------------
45## [SOURCE] Python
46## -----------------------------------------------------------------------
47# - repo: https://github.com/psf/black
48# rev: 22.10.0
49# hooks:
50# - id: black
51
52# - repo: https://github.com/PyCQA/doc8
53# rev: v1.1.1
54# hooks:
55# - id: doc8
56
57# -------------------------------------------------------------------
58# https://docs.python.org/3/library/re.html#regular-expression-syntax
59# -------------------------------------------------------------------
60exclude: |
61 (?x)^(
62 ^jjb/.* |
63 ^makefiles/.* |
64 ^lf/.* |
65 ^.venv/.* |
66 )$
67
68# [SEE ALSO]
69# -----------------------------------------------------------------------
70# https://github.com/memfault/interrupt/blob/master/example/pre-commit/.pre-commit-config.yaml
71# https://pre-commit.com/hooks.html
72# https://github.com/floatingpurr/sync_with_poetry/blob/main/.pre-commit-config.yaml
73# https://github.com/the-common/pre-commit-config-template/blob/master/.pre-commit-config.yaml
74# -----------------------------------------------------------------------
75
76# [EOF]