Skip to content

Commit e07f8ef

Browse files
committed
check the matplotlib version being used
1 parent 08545e5 commit e07f8ef

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.bumpversion.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[bumpversion]
22
current_version = 3.4.2
33

4+
[bumpversion:file:./check-matplotlib-version.py]
5+
search = __version__ == '{current_version}'
6+
replace = __version__ == '{new_version}'
7+
48
[bumpversion:glob:./handout-*.tex]
59
search = Matplotlib {current_version}
610
replace = Matplotlib {new_version}

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ handouts:
3535

3636
.PHONY: check
3737
check:
38+
./check-matplotlib-version.py
3839
./check-num-pages.sh cheatsheets.pdf 2
3940
./check-num-pages.sh handout-tips.pdf 1
4041
./check-num-pages.sh handout-beginner.pdf 1

check-matplotlib-version.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env python
2+
import matplotlib as mpl
3+
4+
5+
assert mpl.__version__ == '3.4.2'

0 commit comments

Comments
 (0)