Skip to content

Commit

Permalink
check version bump on library modifications (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello authored Feb 7, 2023
1 parent befcd1a commit 88941fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ deps =
commands =
charm: mypy {[vars]src_path} {posargs}
lib: mypy --python-version 3.5 {[vars]lib_path} {posargs}
lib: /usr/bin/env sh -c 'for m in $(git diff main --name-only {[vars]lib_path}); do \
lib: if ! git diff $m | grep -q "+LIBPATCH\|+LIBAPI"; then \
lib: echo "You forgot to bump the version on $m!"; exit 1; \
lib: fi; done'
unit: mypy {[vars]tst_path}/unit {posargs}
integration: mypy {[vars]tst_path}/integration {posargs}
allowlist_externals = /usr/bin/env

[testenv:reqs]
description = Check for missing or unused requirements
Expand Down

0 comments on commit 88941fc

Please sign in to comment.