| 1 |
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 2 |
# SPDX-License-Identifier: GPL-3.0-or-later |
| 3 |
# SPDX-FileCopyrightText: 2025 Felix Fontein <[email protected]> |
| 4 |
|
| 5 |
[collection_sources] |
| 6 |
"community.internal_test_tools" = "git+https://github.com/ansible-collections/community.internal_test_tools.git,main" |
| 7 |
"community.library_inventory_filtering_v1" = "git+https://github.com/ansible-collections/community.library_inventory_filtering.git,stable-1" |
| 8 |
"community.general" = "git+https://github.com/ansible-collections/community.general.git,main" |
| 9 |
|
| 10 |
[vcs] |
| 11 |
vcs = "git" |
| 12 |
development_branch = "main" |
| 13 |
stable_branches = [ "stable-*" ] |
| 14 |
|
| 15 |
[sessions] |
| 16 |
|
| 17 |
[sessions.lint] |
| 18 |
extra_code_files = ["tests/update-docs-fragments.py"] |
| 19 |
run_isort = false |
| 20 |
run_black = true |
| 21 |
black_config = "black.toml" |
| 22 |
run_ruff_autofix = true |
| 23 |
ruff_autofix_config = "ruff.toml" |
| 24 |
ruff_autofix_select = [ |
| 25 |
"I", |
| 26 |
"RUF022", |
| 27 |
] |
| 28 |
run_ruff_check = true |
| 29 |
ruff_check_config = "ruff.toml" |
| 30 |
run_flake8 = true |
| 31 |
flake8_config = ".flake8" |
| 32 |
run_pylint = true |
| 33 |
pylint_rcfile = ".pylintrc" |
| 34 |
run_yamllint = true |
| 35 |
yamllint_config = ".yamllint" |
| 36 |
yamllint_config_plugins = ".yamllint-docs" |
| 37 |
yamllint_config_plugins_examples = ".yamllint-examples" |
| 38 |
yamllint_config_extra_docs = ".yamllint-extra-docs" |
| 39 |
run_mypy = true |
| 40 |
mypy_config = ".mypy.ini" |
| 41 |
mypy_extra_deps = [ |
| 42 |
"dnspython", |
| 43 |
"types-lxml", |
| 44 |
"types-mock", |
| 45 |
"types-PyYAML", |
| 46 |
] |
| 47 |
|
| 48 |
[sessions.docs_check] |
| 49 |
validate_collection_refs="all" |
| 50 |
codeblocks_restrict_types = [ |
| 51 |
"ansible-output", |
| 52 |
"yaml", |
| 53 |
"yaml+jinja", |
| 54 |
] |
| 55 |
codeblocks_restrict_type_exact_case = true |
| 56 |
codeblocks_allow_without_type = false |
| 57 |
codeblocks_allow_literal_blocks = false |
| 58 |
|
| 59 |
[sessions.license_check] |
| 60 |
run_reuse = true |
| 61 |
|
| 62 |
[sessions.extra_checks] |
| 63 |
run_no_unwanted_files = true |
| 64 |
no_unwanted_files_module_extensions = [".py"] |
| 65 |
no_unwanted_files_skip_paths = [ |
| 66 |
"plugins/public_suffix_list.dat", |
| 67 |
"plugins/public_suffix_list.dat.license", |
| 68 |
] |
| 69 |
no_unwanted_files_yaml_extensions = [".yml"] |
| 70 |
run_action_groups = true |
| 71 |
run_no_trailing_whitespace = true |
| 72 |
run_avoid_characters = true |
| 73 |
|
| 74 |
[[sessions.extra_checks.action_groups_config]] |
| 75 |
name = "hetzner" |
| 76 |
pattern = "^hetzner_.*$" |
| 77 |
exclusions = [] |
| 78 |
doc_fragment = "community.dns._attributes.actiongroup_hetzner" |
| 79 |
|
| 80 |
[[sessions.extra_checks.action_groups_config]] |
| 81 |
name = "hosttech" |
| 82 |
pattern = "^hosttech_.*$" |
| 83 |
exclusions = [] |
| 84 |
doc_fragment = "community.dns._attributes.actiongroup_hosttech" |
| 85 |
|
| 86 |
[[sessions.extra_checks.avoid_character_group]] |
| 87 |
name = "tab" |
| 88 |
regex = "\\x09" |
| 89 |
|
| 90 |
[sessions.build_import_check] |
| 91 |
run_galaxy_importer = true |
| 92 |
|
| 93 |
[sessions.ansible_lint] |
| 94 |
|
| 95 |
[sessions.ansible_test_sanity] |
| 96 |
include_devel = true |
| 97 |
|
| 98 |
[sessions.ansible_test_units] |
| 99 |
include_devel = true |
| 100 |
|
| 101 |
[sessions.ansible_test_integration_w_default_container] |
| 102 |
include_devel = true |
| 103 |
|
| 104 |
[sessions.ansible_test_integration_w_default_container.core_python_versions] |
| 105 |
"2.18" = ["3.8", "3.13"] |
| 106 |
"2.19" = ["3.9", "3.13"] |
| 107 |
"2.20" = ["3.10", "3.14"] |
| 108 |
"2.21" = ["3.11", "3.14"] |
| 109 |
|
| 110 |
[[sessions.ee_check.execution_environments]] |
| 111 |
name = "devel-ubi-9" |
| 112 |
description = "ansible-core devel @ RHEL UBI 9" |
| 113 |
test_playbooks = ["tests/ee/all.yml"] |
| 114 |
config.images.base_image.name = "docker.io/redhat/ubi9:latest" |
| 115 |
config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/devel.tar.gz" |
| 116 |
config.dependencies.ansible_runner.package_pip = "ansible-runner" |
| 117 |
config.dependencies.python_interpreter.package_system = "python3.12 python3.12-pip python3.12-wheel python3.12-cryptography" |
| 118 |
config.dependencies.python_interpreter.python_path = "/usr/bin/python3.12" |
| 119 |
runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} |
| 120 |
|
| 121 |
[[sessions.ee_check.execution_environments]] |
| 122 |
name = "2.15-rocky-9" |
| 123 |
description = "ansible-core 2.15 @ Rocky Linux 9" |
| 124 |
test_playbooks = ["tests/ee/all.yml"] |
| 125 |
config.images.base_image.name = "quay.io/rockylinux/rockylinux:9" |
| 126 |
config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.15.tar.gz" |
| 127 |
config.dependencies.ansible_runner.package_pip = "ansible-runner" |
| 128 |
runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} |
| 129 |
|
| 130 |
[[sessions.ee_check.execution_environments]] |
| 131 |
name = "2.14-centos-stream-9" |
| 132 |
description = "ansible-core 2.14 @ CentOS Stream 9" |
| 133 |
test_playbooks = ["tests/ee/all.yml"] |
| 134 |
config.images.base_image.name = "quay.io/centos/centos:stream9" |
| 135 |
config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.14.tar.gz" |
| 136 |
config.dependencies.ansible_runner.package_pip = "ansible-runner" |
| 137 |
runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} |