Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
check version bump on library modifications (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello authored Feb 7, 2023
1 parent 0164fac commit 079ce21
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 @@ -68,9 +68,14 @@ deps =
commands =
charm: mypy {[vars]src_path} {posargs}
lib: mypy --python-version 3.8 {[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} \
--exclude {[vars]tst_path}/integration/ingress-requirer-mock
allowlist_externals = /usr/bin/env

[testenv:unit]
description = Run unit tests
Expand Down

0 comments on commit 079ce21

Please sign in to comment.