Debian Codegraph @

ansible_collections/community/general/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 "ansible.posix" = "git+https://github.com/ansible-collections/ansible.posix.git,main"
7 "community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,main"
8 "community.docker" = "git+https://github.com/ansible-collections/community.docker.git,main"
9 "community.internal_test_tools" = "git+https://github.com/ansible-collections/community.internal_test_tools.git,main"
10
11 [vcs]
12 vcs = "git"
13 development_branch = "main"
14 stable_branches = [ "stable-*" ]
15
16 [sessions]
17
18 [sessions.lint]
19 code_files = ["."] # consider all Python files in the collection
20 run_isort = false
21 run_black = false
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_ruff_format = true
31 ruff_format_config = "ruff.toml"
32 run_flake8 = false
33 run_pylint = false
34 run_yamllint = true
35 yamllint_config = ".yamllint"
36 # yamllint_config_plugins = ".yamllint-docs"
37 # yamllint_config_plugins_examples = ".yamllint-examples"
38 run_mypy = true
39 mypy_ansible_core_package = "ansible-core>=2.19.0"
40 mypy_config = ".mypy.ini"
41 mypy_extra_deps = [
42 "cryptography",
43 "dnspython",
44 "lxml-stubs",
45 "types-mock",
46 "types-paramiko",
47 "types-passlib",
48 "types-psutil",
49 "types-PyYAML",
50 "types-requests",
51 ]
52
53 [sessions.docs_check]
54 validate_collection_refs="all"
55 codeblocks_restrict_types = [
56 "ansible-output",
57 "console",
58 "ini",
59 "json",
60 "python",
61 "shell",
62 "yaml",
63 "yaml+jinja",
64 "text",
65 ]
66 codeblocks_restrict_type_exact_case = true
67 codeblocks_allow_without_type = false
68 codeblocks_allow_literal_blocks = false
69
70 [sessions.license_check]
71
72 [sessions.extra_checks]
73 run_no_unwanted_files = true
74 no_unwanted_files_module_extensions = [".py"]
75 no_unwanted_files_yaml_extensions = [".yml"]
76 run_action_groups = true
77 run_no_trailing_whitespace = true
78 no_trailing_whitespace_skip_paths = [
79 "tests/integration/targets/iso_extract/files/test.iso",
80 "tests/integration/targets/java_cert/files/testpkcs.p12",
81 "tests/integration/targets/one_host/files/testhost/tmp/opennebula-fixtures.json.gz",
82 "tests/integration/targets/one_template/files/testhost/tmp/opennebula-fixtures.json.gz",
83 "tests/integration/targets/setup_flatpak_remote/files/repo.tar.xz",
84 ]
85 no_trailing_whitespace_skip_directories = [
86 "tests/unit/plugins/modules/interfaces_file/interfaces_file_fixtures/golden_output/",
87 "tests/unit/plugins/modules/interfaces_file/interfaces_file_fixtures/input/",
88 ]
89
90 [[sessions.extra_checks.action_groups_config]]
91 name = "consul"
92 pattern = "^consul_.*$"
93 exclusions = [
94 "consul_acl_bootstrap",
95 "consul_kv",
96 ]
97 doc_fragment = "community.general._consul.actiongroup_consul"
98
99 [[sessions.extra_checks.action_groups_config]]
100 name = "keycloak"
101 pattern = "^keycloak_.*$"
102 exclusions = [
103 "keycloak_realm_info",
104 ]
105 doc_fragment = "community.general._keycloak.actiongroup_keycloak"
106
107 [[sessions.extra_checks.action_groups_config]]
108 name = "scaleway"
109 pattern = "^scaleway_.*$"
110 doc_fragment = "community.general._scaleway.actiongroup_scaleway"
111
112 [sessions.build_import_check]
113 run_galaxy_importer = true
114
115 [sessions.ansible_test_sanity]
116 include_devel = true
117
118 [sessions.ansible_test_units]
119 include_devel = true