Skip to content

Commit

Permalink
adding redhat_cop
Browse files Browse the repository at this point in the history
  • Loading branch information
taruch committed Apr 2, 2024
1 parent f2c855d commit b0bc5b5
Show file tree
Hide file tree
Showing 231 changed files with 13,358 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
download_url: https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/redhat_cop-controller_configuration-2.3.1.tar.gz
format_version: 1.0.0
name: controller_configuration
namespace: redhat_cop
server: https://galaxy.ansible.com/api/
signatures: []
version: 2.3.1
version_url: /api/v3/plugin/ansible/content/published/collections/index/redhat_cop/controller_configuration/versions/2.3.1/
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# The exclude_paths does not appear to be working in pre-commit
# this issue describes similar behavior but suggested fix doesn't work
# https://github.com/ansible/ansible-lint/issues/371
# exclude_paths:
# - roles/master_role_example/
exclude_paths:
- '.github/'
- 'roles/master_role_example/'
- 'changelogs/'
parseable: true
use_default_rules: true
# https://github.com/ansible/ansible-lint/issues/808
# with verbosity set to 1, its dumping 'unknown file type messages'
# verbosity: 1
skip_list:
# Skipping fqcn[action] because this collection supports using either the awx.awx or ansible.controller collection
# so a FQCN cannot be used in module names
- fqcn[action]
- fqcn[keyword]
- meta-runtime # This collection with the appropriate awx.awx or ansible.controller still works with older ansible.
- role-name[path]
- sanity[cannot-ignore] # We're only ignoring sanity rules when we have to
kinds:
- playbooks: "**/examples/templates/*.{yml,yaml}"
- playbooks: "**/examples/*.{yml,yaml}"
- playbooks: "**/examples/automatetheautomation/*.{yml,yaml}"
- tasks: "**/examples/tasks/*.yml"
- vars: "**/examples/automatetheautomation/orgs_vars/**/*.yml"
- vars: "**/examples/configs/*.yml"
- vars: "**/examples/configs_export_model/*.yml"
- vars: "**/examples/vars/*.yml"
- vars: "**/roles/**/tests/configs/*.yml"
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.black]
line_length=160
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length=160
ignore=E402
extend-ignore = E203, W503
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.yml linguist-detectable
*.yaml linguist-detectable
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
collections/*
!collections/requirements.yml
galaxy.yml
*.tar.gz
*.pyc
id_rsa*
test
tests/output
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
default: true

# MD003/heading-style/header-style - Heading style
# This will ensure that the heading format is consistent across all markdown files
MD003:
style: "atx"

# MD013/line-length - Line length
# Setting to false to match the yamllint setting
MD013: false

# MD046/code-block-style - Code block style
# This will ensure that code block format is consistent across all markdown files
MD0046:
style: fenced

MD033:
allowed_elements:
- "br"
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"httpHeaders": [
{
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
# Disabling the separate yamllint as it can now be done by ansible-lint with our config moved to TLD.
# - repo: 'https://github.com/adrienverge/yamllint.git'
# rev: v1.26.3
# hooks:
# - id: yamllint
# entry: yamllint -c .github/workflow-config/.yamllint.yml
# types:
# - yaml
- repo: 'https://github.com/ansible-community/ansible-lint.git'
rev: v6.14.2
hooks:
# see discussions here about what arguments are used, and behavior
# https://github.com/ansible/ansible-lint/issues/649
# Roles will trigger an "unknown file type"
# https://github.com/ansible/ansible-lint/issues/808
- id: ansible-lint
pass_filenames: false
always_run: true
entry: "ansible-lint"
args:
- "--profile=production"
additional_dependencies:
- "ansible-core>=2.13"
- "yamllint>=1.26,<2.0"
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.6.0
hooks:
- id: markdownlint-cli2
- repo: https://github.com/ambv/black
rev: 23.1.0
hooks:
- id: black
name: black
entry: black
args: [--config=.black.cfg, --check, --diff]
types: [python]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: flake8
entry: flake8
types: [python]
...
Loading

0 comments on commit b0bc5b5

Please sign in to comment.