Skip to content

Commit

Permalink
Add tox -e cog-apply
Browse files Browse the repository at this point in the history
Because I will never ever remember `tox -e cog -- -r` as the command to
fix the README.
  • Loading branch information
mgedmin committed Dec 8, 2022
1 parent d42d93b commit 8a073fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ system (e.g. ``sudo apt install libzbar0`` on Ubuntu).
.. capture_output=True, text=True).stdout
.. cog.outl('\nSynopsis::\n')
.. cog.outl(textwrap.indent(helptext, ' '))
.. # Run `tox -e cog -- -r` to re-generate the README.
.. # Run `tox -e cog-apply` to re-generate the README.
.. ]]]
Synopsis::
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ basepython = python3.10
deps = cogapp
commands = cog {posargs:--check} README.rst

[testenv:cog-apply]
basepython = {[testenv:cog]basepython}
deps = {[testenv:cog]deps}
commands = cog -r README.rst

[testenv:mypy]
deps = mypy
skip_install = true
Expand Down

0 comments on commit 8a073fa

Please sign in to comment.