mirror of
https://github.com/pimoroni/grow-python
synced 2025-10-25 15:19:23 +00:00
Tweaks, fixes, linting and docs
This commit is contained in:
12
Makefile
12
Makefile
@@ -27,7 +27,7 @@ check:
|
||||
@echo "Checking for trailing whitespace"
|
||||
@! grep -IUrn --color "[[:blank:]]$$" --exclude-dir=sphinx --exclude-dir=.tox --exclude-dir=.git --exclude=PKG-INFO
|
||||
@echo "Checking for DOS line-endings"
|
||||
@! grep -IUrn --color "
|
||||
@! grep -lIUrn --color "
|
||||
" --exclude-dir=sphinx --exclude-dir=.tox --exclude-dir=.git --exclude=Makefile
|
||||
@echo "Checking library/CHANGELOG.txt"
|
||||
@cat library/CHANGELOG.txt | grep ^${LIBRARY_VERSION}
|
||||
@@ -36,14 +36,14 @@ check:
|
||||
|
||||
tag:
|
||||
git tag -a "v${LIBRARY_VERSION}" -m "Version ${LIBRARY_VERSION}"
|
||||
|
||||
|
||||
python-readme: library/README.md
|
||||
|
||||
python-license: library/LICENSE.txt
|
||||
|
||||
library/README.rst: README.md library/CHANGELOG.txt
|
||||
pandoc --from=markdown --to=rst -o library/README.rst README.md
|
||||
echo "" >> library/README.rst
|
||||
|
||||
library/README.md: README.md library/CHANGELOG.txt
|
||||
cp README.md library/README.md
|
||||
printf "\n# Changelog\n" >> library/README.md
|
||||
cat library/CHANGELOG.txt >> library/README.md
|
||||
|
||||
library/LICENSE.txt: LICENSE
|
||||
|
||||
Reference in New Issue
Block a user