From 8160e1fdaf9312d710bfaf2263f9e5b83f6b5b5e Mon Sep 17 00:00:00 2001 From: Koudai Aono Date: Fri, 19 Dec 2025 08:38:43 +0000 Subject: [PATCH] docs: Update CLI documentation workflow to include argument file and improve description --- .github/workflows/cli-docs.yaml | 2 ++ tox.ini | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli-docs.yaml b/.github/workflows/cli-docs.yaml index 67913d5a2..575136ec6 100644 --- a/.github/workflows/cli-docs.yaml +++ b/.github/workflows/cli-docs.yaml @@ -6,6 +6,7 @@ on: paths: - 'tests/main/**' - 'tests/test_main_kr.py' + - 'src/datamodel_code_generator/arguments.py' - 'src/datamodel_code_generator/cli_options.py' - 'scripts/build_cli_docs.py' pull_request: @@ -13,6 +14,7 @@ on: paths: - 'tests/main/**' - 'tests/test_main_kr.py' + - 'src/datamodel_code_generator/arguments.py' - 'src/datamodel_code_generator/cli_options.py' - 'scripts/build_cli_docs.py' diff --git a/tox.ini b/tox.ini index cdfb0416c..ce5affe12 100644 --- a/tox.ini +++ b/tox.ini @@ -70,10 +70,10 @@ dependency_groups = no_default_groups = true [testenv:cli-docs] -description = Check CLI documentation is up to date +description = Build CLI documentation (use --check to validate only) commands = pytest --collect-cli-docs -p no:xdist -q - python scripts/build_cli_docs.py {posargs:--check} + python scripts/build_cli_docs.py {posargs} dependency_groups = test no_default_groups = true