Skip to content

Commit 3a63ed6

Browse files
authored
Add pre-commit hook for yaml formatting (#120)
* Add pre-commit hook for yaml formatting Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com> * Address issue with URL url: https://aether5g-project.slack.com/ Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com> --------- Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
1 parent fb234a8 commit 3a63ed6

5 files changed

Lines changed: 20 additions & 37 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# Copyright 2024 Intel Corporation
3-
43
# Timeline for each ecosystem is intentionally staggered to spread
54
# Dependabot PRs over the week.
65
version: 2
76
updates:
8-
97
- package-ecosystem: "github-actions"
108
directory: "/"
119
schedule:
@@ -17,7 +15,6 @@ updates:
1715
actions-deps:
1816
patterns:
1917
- "*"
20-
2118
- package-ecosystem: "pip"
2219
directory: "/"
2320
schedule:

‎.github/workflows/main.yml‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# Copyright 2024 Intel Corporation
3-
43
name: Main workflow
5-
64
on:
75
pull_request:
86
branches:
97
- main
108
push:
119
branches:
1210
- main
13-
1411
permissions:
1512
contents: read
16-
1713
jobs:
1814
validate:
1915
permissions:
@@ -23,7 +19,6 @@ jobs:
2319
uses: omec-project/.github/.github/workflows/validate.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
2420
with:
2521
branch_name: ${{ github.ref }}
26-
2722
doc8:
2823
permissions:
2924
contents: read
@@ -35,7 +30,6 @@ jobs:
3530
with:
3631
branch_name: ${{ github.ref }}
3732
target: doc8
38-
3933
spell-check:
4034
permissions:
4135
contents: read
@@ -46,7 +40,6 @@ jobs:
4640
with:
4741
branch_name: ${{ github.ref }}
4842
target: spelling
49-
5043
link-check:
5144
permissions:
5245
contents: read
@@ -57,7 +50,6 @@ jobs:
5750
with:
5851
branch_name: ${{ github.ref }}
5952
target: linkcheck
60-
6153
license-check:
6254
permissions:
6355
contents: read
@@ -66,7 +58,6 @@ jobs:
6658
uses: omec-project/.github/.github/workflows/license-check.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
6759
with:
6860
branch_name: ${{ github.ref }}
69-
7061
fossa-scan:
7162
permissions:
7263
contents: read
@@ -76,7 +67,6 @@ jobs:
7667
uses: omec-project/.github/.github/workflows/fossa-scan.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
7768
with:
7869
branch_name: ${{ github.ref }}
79-
8070
analysis:
8171
if: github.repository_owner == 'omec-project'
8272
permissions:

‎.github/workflows/push.yml‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# Copyright 2024 Intel Corporation
3-
43
name: Publish Docs Workflow
5-
64
on:
75
push:
86
branches:
97
- main
108
workflow_dispatch:
11-
129
permissions:
1310
contents: read
14-
1511
jobs:
1612
tag-github:
1713
permissions:
@@ -20,7 +16,6 @@ jobs:
2016
id-token: write
2117
uses: omec-project/.github/.github/workflows/tag-github.yml@c6f69e74f8ee9034dcc237ccbd719de59526aee5 # v0.0.30
2218
secrets: inherit
23-
2419
update-version:
2520
needs: tag-github
2621
permissions:
@@ -33,7 +28,6 @@ jobs:
3328
changed: ${{ needs.tag-github.outputs.changed }}
3429
version: ${{ needs.tag-github.outputs.version }}
3530
secrets: inherit
36-
3731
publish:
3832
if: github.repository_owner == 'omec-project'
3933
permissions:
@@ -45,7 +39,6 @@ jobs:
4539
secrets: inherit
4640
with:
4741
branch_name: ${{ github.ref }}
48-
4942
sbom-source:
5043
needs: tag-github
5144
permissions:
@@ -58,7 +51,6 @@ jobs:
5851
artifact_name: ${{ github.event.repository.name }}-${{ needs.tag-github.outputs.version }}.spdx.json
5952
sbom_format: spdx-json
6053
path: .
61-
6254
grype-scan:
6355
needs: [tag-github, sbom-source]
6456
permissions:

‎.pre-commit-config.yaml‎

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# SPDX-FileCopyrightText: 2025 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
3-
43
repos:
5-
- repo: https://github.com/gitleaks/gitleaks
6-
rev: v8.30.1
7-
hooks:
8-
- id: gitleaks
9-
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v6.0.0
11-
hooks:
12-
- id: end-of-file-fixer
13-
- id: trailing-whitespace
14-
args:
15-
- --markdown-linebreak-ext=md
16-
- repo: https://codeberg.org/fsfe/reuse-tool
17-
rev: v6.2.0
18-
hooks:
19-
- id: reuse
4+
- repo: https://github.com/gitleaks/gitleaks
5+
rev: v8.30.1
6+
hooks:
7+
- id: gitleaks
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v6.0.0
10+
hooks:
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
args:
14+
- --markdown-linebreak-ext=md
15+
- repo: https://github.com/google/yamlfmt
16+
rev: v0.21.0
17+
hooks:
18+
- id: yamlfmt
19+
- repo: https://codeberg.org/fsfe/reuse-tool
20+
rev: v6.2.0
21+
hooks:
22+
- id: reuse

‎conf.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def get_version():
251251
r'https://gerrit.opencord.org/.*',
252252
r'https://wiki.opennetworking.org/.*',
253253
r'https?://opennetworking\.org/.*',
254+
r'https://aether5g-project\.slack\.com.*',
254255
]
255256

256257
linkcheck_timeout = 3

0 commit comments

Comments
 (0)