Debian Codegraph @

ansible_collections/community/crypto/antsibull-nox.toml

raw
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.general" = "git+https://github.com/ansible-collections/community.general.git,main"
7 "community.internal_test_tools" = "git+https://github.com/ansible-collections/community.internal_test_tools.git,main"
8
9 [vcs]
10 vcs = "git"
11 development_branch = "main"
12 stable_branches = [ "stable-*" ]
13
14 [sessions]
15
16 [sessions.lint]
17 run_isort = false
18 run_black = true
19 run_ruff_autofix = true
20 ruff_autofix_config = "ruff.toml"
21 ruff_autofix_select = [
22 "I",
23 "RUF022",
24 ]
25 run_ruff_check = true
26 ruff_check_config = "ruff.toml"
27 run_flake8 = true
28 flake8_config = ".flake8"
29 run_pylint = true
30 pylint_rcfile = ".pylintrc"
31 pylint_ansible_core_package = "ansible-core>=2.19.0"
32 run_yamllint = true
33 yamllint_config = ".yamllint"
34 yamllint_config_plugins = ".yamllint-docs"
35 yamllint_config_plugins_examples = ".yamllint-examples"
36 yamllint_config_extra_docs = ".yamllint-extra-docs"
37 run_mypy = true
38 mypy_ansible_core_package = "ansible-core>=2.19.0"
39 mypy_config = ".mypy.ini"
40 mypy_extra_deps = [
41 "cryptography",
42 "types-mock",
43 "types-PyYAML",
44 ]
45
46 [sessions.docs_check]
47 validate_collection_refs="all"
48 codeblocks_restrict_types = [
49 "ansible-output",
50 "yaml",
51 "yaml+jinja",
52 ]
53 codeblocks_restrict_type_exact_case = true
54 codeblocks_allow_without_type = false
55 codeblocks_allow_literal_blocks = false
56
57 [sessions.license_check]
58 run_reuse = true
59
60 [sessions.extra_checks]
61 run_no_unwanted_files = true
62 no_unwanted_files_module_extensions = [".py"]
63 no_unwanted_files_yaml_extensions = [".yml"]
64 run_action_groups = true
65 run_no_trailing_whitespace = true
66 no_trailing_whitespace_skip_paths = [
67 "tests/integration/targets/luks_device/files/keyfile3",
68 ]
69 no_trailing_whitespace_skip_directories = [
70 "tests/unit/plugins/module_utils/_acme/fixtures/",
71 ]
72 run_avoid_characters = true
73
74 [[sessions.extra_checks.action_groups_config]]
75 name = "acme"
76 pattern = "^acme_.*$"
77 exclusions = [
78 "acme_ari_info", # does not support ACME account
79 "acme_certificate_renewal_info", # does not support ACME account
80 "acme_challenge_cert_helper", # does not support (and need) any common parameters
81 ]
82 doc_fragment = "community.crypto._attributes.actiongroup_acme"
83
84 [[sessions.extra_checks.avoid_character_group]]
85 name = "tab"
86 regex = "\\x09"
87 skip_paths = [
88 "tests/integration/targets/luks_device/files/keyfile3",
89 ]
90
91 [sessions.build_import_check]
92 run_galaxy_importer = true
93
94 [sessions.ansible_lint]
95
96 [[sessions.ee_check.execution_environments]]
97 name = "devel-ubi-9"
98 description = "ansible-core devel @ RHEL UBI 9"
99 test_playbooks = ["tests/ee/all.yml"]
100 config.images.base_image.name = "docker.io/redhat/ubi9:latest"
101 config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/devel.tar.gz"
102 config.dependencies.ansible_runner.package_pip = "ansible-runner"
103 config.dependencies.python_interpreter.package_system = "python3.12 python3.12-pip python3.12-wheel python3.12-cryptography"
104 config.dependencies.python_interpreter.python_path = "/usr/bin/python3.12"
105 runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"}
106
107 [[sessions.ee_check.execution_environments]]
108 name = "2.17-rocky-9"
109 description = "ansible-core 2.17 @ Rocky Linux 9"
110 test_playbooks = ["tests/ee/all.yml"]
111 config.images.base_image.name = "quay.io/rockylinux/rockylinux:9"
112 config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.17.tar.gz"
113 config.dependencies.ansible_runner.package_pip = "ansible-runner"
114 config.dependencies.python_interpreter.package_system = "python3.11 python3.11-pip python3.11-wheel python3.11-cryptography"
115 config.dependencies.python_interpreter.python_path = "/usr/bin/python3.11"
116 runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"}
117
118 [[sessions.ee_check.execution_environments]]
119 name = "2.18-centos-stream-9"
120 description = "ansible-core 2.18 @ CentOS Stream 9"
121 test_playbooks = ["tests/ee/all.yml"]
122 config.images.base_image.name = "quay.io/centos/centos:stream9"
123 config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.18.tar.gz"
124 config.dependencies.ansible_runner.package_pip = "ansible-runner"
125 config.dependencies.python_interpreter.package_system = "python3.11 python3.11-pip python3.11-wheel python3.11-cryptography"
126 config.dependencies.python_interpreter.python_path = "/usr/bin/python3.11"
127 runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"}