Skip to content

Commit be71a90

Browse files
authored
Add ansible-lint, update hatch environments and pre-commit (#205)
* Update pre-commit, Hatch environments, and ansible-lint * Add ansible-lint configuration (i.e. offline use) and ignore list * Update version of linting Github Action * Remove ansible-lint from pre-commit hooks Signed-off-by: Webster Mudge <[email protected]>
1 parent 7ce2156 commit be71a90

File tree

286 files changed

+2023
-2004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+2023
-2004
lines changed

.ansible-lint

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2025 Cloudera, Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
profile: production
16+
quiet: true
17+
strict: true
18+
verbosity: 1
19+
offline: true

.ansible-lint-ignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2025 Cloudera, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.

.config/molecule/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# Copyright 2024 Cloudera, Inc.
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");

.github/workflows/label_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
let fs = require('fs');
5656
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr_number.zip`, Buffer.from(download.data));
5757
58-
- name: 'Unzip artifact'
58+
- name: "Unzip artifact"
5959
run: unzip pr_number.zip
6060

6161
- name: Read the PR number

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# Copyright 2024 Cloudera, Inc.
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,11 +19,10 @@ on:
1819
pull_request:
1920
push:
2021
branches: [main, devel]
21-
2222
jobs:
2323
pre-commit:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v4
27-
- uses: actions/setup-python@v5
28-
- uses: pre-commit/[email protected]
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-python@v5
28+
- uses: pre-commit/[email protected]

.github/workflows/publish_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ name: Publish documentation
1919
on:
2020
push:
2121
branches:
22-
- 'main'
22+
- "main"
2323

2424
workflow_dispatch:
25-
2625
jobs:
2726
build-ansible-docs:
2827
name: Build Ansible Docs

.github/workflows/publish_galaxy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ name: Publish to Ansible Galaxy
1919
on:
2020
release:
2121
types: [published]
22-
2322
jobs:
2423
galaxy_release:
2524
runs-on: ubuntu-latest

.github/workflows/reset_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ on:
2323
- synchronize
2424
- ready_for_review
2525
branches:
26-
- 'release/**'
27-
- 'devel'
28-
- 'devel-pvc-base'
26+
- "release/**"
27+
- "devel"
28+
- "devel-pvc-base"
2929

3030
jobs:
3131
reset:

.github/workflows/validate_pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ name: Validate Pull Request
1919
on:
2020
pull_request:
2121
branches:
22-
- 'release/**'
23-
- 'devel'
22+
- "release/**"
23+
- "devel"
2424

2525
jobs:
2626
validate:
@@ -32,8 +32,8 @@ jobs:
3232
- name: Setup Python and caching
3333
uses: actions/setup-python@v4
3434
with:
35-
python-version: '3.9'
36-
cache: 'pip'
35+
python-version: "3.9"
36+
cache: "pip"
3737

3838
- name: Set up Ansible collections
3939
run: |

.github/workflows/validate_pr_docs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ name: Validate Pull Request documentation
1919
on:
2020
pull_request:
2121
branches:
22-
- 'release/**'
23-
- 'devel'
22+
- "release/**"
23+
- "devel"
2424

2525
workflow_dispatch:
26-
2726
jobs:
2827
validate-docs:
2928
name: Validate Ansible Docs
30-
uses: cloudera-labs/github-actions/.github/workflows/lint-ansible-docs.yml@v1
29+
uses: cloudera-labs/github-actions/.github/workflows/lint-ansible-docs.yml@v2
3130
with:
3231
antsibull-log-upload: true
3332
collection-namespace: cloudera

0 commit comments

Comments
 (0)