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
1 change: 1 addition & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file contains ignores rule violations for ansible-lint
2 changes: 1 addition & 1 deletion .github/workflows/label_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr_number.zip`, Buffer.from(download.data));

- name: 'Unzip artifact'
- name: "Unzip artifact"
run: unzip pr_number.zip

- name: Read the PR number
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,11 +19,10 @@ on:
pull_request:
push:
branches: [main, devel]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
3 changes: 1 addition & 2 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ name: Publish documentation
on:
push:
branches:
- 'main'
- "main"

workflow_dispatch:

jobs:
build-ansible-docs:
name: Build Ansible Docs
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish_galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ name: Publish to Ansible Galaxy
on:
release:
types: [published]

jobs:
galaxy_release:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reset_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ on:
- synchronize
- ready_for_review
branches:
- 'release/**'
- 'devel'
- 'devel-pvc-base'
- "release/**"
- "devel"
- "devel-pvc-base"

jobs:
reset:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validate_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ name: Validate Pull Request
on:
pull_request:
branches:
- 'release/**'
- 'devel'
- "release/**"
- "devel"

jobs:
validate:
Expand All @@ -32,8 +32,8 @@ jobs:
- name: Setup Python and caching
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
python-version: "3.9"
cache: "pip"

- name: Set up Ansible collections
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/validate_pr_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ name: Validate Pull Request documentation
on:
pull_request:
branches:
- 'release/**'
- 'devel'
- "release/**"
- "devel"

workflow_dispatch:

jobs:
validate-docs:
name: Validate Ansible Docs
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# Keep the Galaxy builds
!cloudera-cloud-*.tar.gz

# Ignore the ansible-lint builds
.ansible

# Ignore the test output
tests/output

Expand Down
31 changes: 29 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Copyright 2024 Cloudera, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,13 +15,39 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key
- id: forbid-submodules
# - id: name-tests-test
- repo: https://github.com/asottile/add-trailing-comma.git
rev: v3.2.0
hooks:
- id: add-trailing-comma
name: ensure trailing commas
args:
- --py36-plus
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 25.1.0
hooks:
- id: black
name: lint python
- repo: https://github.com/ansible/ansible-lint
rev: v25.6.1
hooks:
- id: ansible-lint
name: lint ansible
Loading
Loading