Skip to content

Commit a8df84d

Browse files
committed
Add Ansible documentation linting to default lint script
Signed-off-by: Webster Mudge <[email protected]>
1 parent da72af6 commit a8df84d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ dependencies = [
3434
"ansible-core<2.17", # For RHEL 8 support
3535
"cdpy @ git+https://github.com/cloudera-labs/cdpy@main#egg=cdpy",
3636
"ansible-lint",
37+
"antsibull-docs @ git+https://github.com/cloudera-labs/antsibull-docs@cldr-docsite#egg=antsibull-docs",
3738
]
3839

3940
[tool.hatch.envs.default.scripts]
40-
lint = "pre-commit run -a"
41+
lint = [
42+
"pre-commit run -a",
43+
"antsibull-docs lint-collection-docs --plugin-docs --validate-collection-refs=all --skip-rstcheck ."
44+
]
4145

4246
[tool.hatch.envs.docs]
4347
python = "3.12"
@@ -48,12 +52,10 @@ extra-dependencies = [
4852
"ansible-pygments",
4953
"sphinx",
5054
"sphinx-ansible-theme >= 0.9.0",
51-
"antsibull-docs @ git+https://github.com/cloudera-labs/antsibull-docs@cldr-docsite#egg=antsibull-docs",
5255
"antsichaut",
5356
]
5457

5558
[tool.hatch.envs.docs.scripts]
56-
lint = "antsibull-docs lint-collection-docs --plugin-docs --validate-collection-refs=all --skip-rstcheck ."
5759
build = "docsbuild/build.sh"
5860
changelog = [
5961
# Read the version in galaxy.yml via hatch itself (normalizes release candidates, etc.)

0 commit comments

Comments
 (0)