File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,11 @@ def show_configs(ini, toml):
82
82
toml , toml_vals = _read_config (toml , "covrc.toml" )
83
83
for key , val in ini_vals .items ():
84
84
if val != toml_vals [key ]:
85
- cog .error (f"Mismatch! { key } :\n ini: { val !r} \n toml: { toml_vals [key ]!r} " )
85
+ cog .error (
86
+ f"Mismatch between configuration tabs in docs for { key = } :\n "
87
+ + f" ini: { val !r} \n "
88
+ + f" toml: { toml_vals [key ]!r} "
89
+ )
86
90
87
91
ini2 = re .sub (r"(?m)^\[" , "[coverage:" , ini )
88
92
print ()
Original file line number Diff line number Diff line change 81
81
allowlist_externals =
82
82
make
83
83
commands =
84
- # If this command fails, see the comment at the top of doc/cmd.rst
85
- python -m cogapp -cP --check --verbosity =1 doc/*.rst
84
+ # If cog fails, it means the docs need to be updated. Run `make prebuild`.
85
+ python -m cogapp -cP --check --check-fail-msg = ' run `make prebuild` ' -- verbosity =1 doc/*.rst doc/* /*.rst
86
86
doc8 -q --ignore-path ' doc/_*' doc CHANGES.rst README.rst
87
87
sphinx-lint doc CHANGES.rst README.rst
88
88
sphinx-build -b html -aEnqW doc doc/_build/html
@@ -102,9 +102,10 @@ setenv =
102
102
103
103
commands =
104
104
python -m tabnanny {env:LINTABLE}
105
- # If this command fails, see the comment at the top of doc/cmd.rst
106
- python -m cogapp -cP --check --verbosity =1 doc/*.rst
107
- python -m cogapp -cP --check --verbosity =1 .github/workflows/*.yml
105
+ # If cog fails, it means the docs need to be updated. Run `make prebuild`.
106
+ python -m cogapp -cP --check --check-fail-msg =' run `make prebuild`' --verbosity =1 doc/*.rst doc/*/*.rst
107
+ # If cog fails, it means the workflow files need to be updated. Run `make workflows`.
108
+ python -m cogapp -cP --check --check-fail-msg =' run `make workflows`' --verbosity =1 .github/workflows/*.yml
108
109
ruff format --check
109
110
python -m pylint -j 0 --notes = --ignore-paths ' doc/_build/.*' {env:LINTABLE}
110
111
check-manifest --ignore ' doc/sample_html/*'
You can’t perform that action at this time.
0 commit comments