Skip to content

Commit

Permalink
Add tox target to verify that pyproject.toml is up to date cog-wise
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Nov 20, 2021
1 parent b21e732 commit ee615ec
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ python =
3.7: py37
3.8: py38, docs
3.9: py39, mypy
3.10: py310, cog
3.10: py310, cog-check
pypy-3: pypy3


Expand Down Expand Up @@ -58,11 +58,18 @@ commands = mypy src tests/typing_examples.py
description = "Update pyproject.toml's metadata"
skip_install = true
deps =
cogapp
cogapp>=3.3.0
tomli
commands = python -m cogapp -rP pyproject.toml


[testenv:cog-check]
description = "Ensure pyproject.toml is up to date"
skip_install = true
deps = {[testenv:cog]deps}
commands = python -m cogapp --check -P pyproject.toml


[testenv]
extras = tests
deps =
Expand Down

0 comments on commit ee615ec

Please sign in to comment.