Commit 4345cd9 1 parent 078467d commit 4345cd9 Copy full SHA for 4345cd9
File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 17
17
pypi-html :
18
18
python3 setup.py --long-description | rst2html.py > pypi-doc.html
19
19
20
+ run-pre-commit :
21
+ pre-commit run -a
22
+
20
23
run-tests :
21
24
python3 -m unittest discover tests/ ' *test.py'
22
25
@@ -43,10 +46,10 @@ requirements-dev:
43
46
requirements-build :
44
47
pip3 install -r requirements-build.txt
45
48
46
- pre-release-check : run-type-check run-flake8 run-coverage pypi-html run-tox
49
+ pre-release-check : run-pre-commit run- type-check run-flake8 run-coverage pypi-html run-tox
47
50
echo " Pre-release check was successful"
48
51
49
- release :
52
+ release : pre-release-check
50
53
if [ " x$( MSG) " = " x" -o " x$( VERSION) " = " x" ]; then \
51
54
echo " Use make release MSG='some msg' VERSION='1.2.3'" ; \
52
55
exit 1; \
@@ -90,9 +93,9 @@ release:
90
93
sed -ri ' s/^release = .*/release = "' $(VERSION ) ' "/' conf.py; \
91
94
sed -ri ' s/^version = .*/version = "' $$ short_VERSION' "/' conf.py; \
92
95
sed -ri ' s/^__version__ = .*/__version__ = (' " $$ commas_VERSION" ' )/' wikipediaapi/__init__.py; \
93
- git commit setup.py conf.py wikipediaapi/__init__.py -m " Update version to $( VERSION) for new release." ; \
94
- git push; \
95
- git tag v$(VERSION ) -m " $( MSG) " ; \
96
+ git commit .github CHANGES.rst setup.py conf.py wikipediaapi/__init__.py -m " Update version to $( VERSION) for new release." && \
97
+ git push && \
98
+ git tag v$(VERSION ) -m " $( MSG) " && \
96
99
git push --tags origin master
97
100
98
101
# Catch-all target: route all unknown targets to Sphinx using the new
You can’t perform that action at this time.
0 commit comments