Skip to content

Commit 0524b69

Browse files
committed
wording
1 parent 48a11ad commit 0524b69

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

scripts/populate_tox/populate_tox.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -598,15 +598,19 @@ def main(fail_on_changes: bool = False) -> None:
598598
raise RuntimeError(
599599
dedent(
600600
"""
601-
Detected an unexpected change in `tox.ini` that is not reflected
602-
in `tox.jinja` and/or `populate_tox.py`.
603-
604-
Please make sure to not make manual changes to `tox.ini`. The file
605-
is generated from a template in `scripts/populate_tox/tox.jinja`
606-
by the `scripts/populate_tox/populate_tox.py` script. Any changes
607-
should be made to the template or the script directly and the
608-
resulting `tox.ini` file should be generated with:
609-
601+
Detected that `tox.ini` is out of sync with
602+
`scripts/populate_tox/tox.jinja` and/or
603+
`scripts/populate_tox/populate_tox.py`. This might either mean
604+
that `tox.ini` was changed manually, or the `tox.jinja`
605+
template and/or the `populate_tox.py` script were changed without
606+
regenerating `tox.ini`.
607+
608+
Please don't make manual changes to `tox.ini`. Instead, make the
609+
changes to the `tox.jinja` template and/or the `populate_tox.py`
610+
script (as applicable) and regenerate the `tox.ini` file with:
611+
612+
python -m venv toxgen.env
613+
. toxgen.env/bin/activate
610614
pip install -r scripts/populate_tox/requirements.txt
611615
python scripts/populate_tox/populate_tox.py
612616
"""

0 commit comments

Comments
 (0)