-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some additional files. Update Makefile. Misc PEP8.
- Loading branch information
1 parent
2715121
commit 3cf0717
Showing
7 changed files
with
173 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
ignore = | ||
# ============================================================== | ||
# ========= Default list of things Flake8 would ignore ======== | ||
# ============================================================== | ||
# E121: Continuation line under-indented for hanging indent | ||
# https://www.flake8rules.com/rules/E121.html | ||
E121, | ||
# E123: Closing bracket does not match indentation of opening bracket's line | ||
# https://www.flake8rules.com/rules/E123.html | ||
E123, | ||
# E126: Continuation line over-indented for hanging indent | ||
# https://www.flake8rules.com/rules/E126.html | ||
E126, | ||
# E226: Missing whitespace around arithmetic operator | ||
# https://www.flake8rules.com/rules/E226.html | ||
E226, | ||
# E24: ??? Hard to find doc on why this undocumented code's in default list | ||
# E24, | ||
# E704: Multiple statements on one line (def) | ||
# https://www.flake8rules.com/rules/E704.html | ||
E704, | ||
# W503: Line break occurred before a binary operator | ||
# https://www.flake8rules.com/rules/W503.html | ||
W503, | ||
# W504: Line break occurred after a binary operator | ||
# https://www.flake8rules.com/rules/W503.html | ||
W504, | ||
# ============================================================== | ||
# ===== Other things we think it shouldn't complain about ===== | ||
# ============================================================== | ||
# F541: f-string is missing placeholders | ||
# https://flake8.pycqa.org/en/latest/user/error-codes.html | ||
F541 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
dirty=`git describe --all --dirty | rev | cut -d '-' -f 1 | rev` | ||
if [ "$dirty" = "dirty" ]; then | ||
echo "This branch is dirty. That would create an ambiguity in what to tag." | ||
exit 1 | ||
fi | ||
|
||
if [ ! -e "pyproject.toml" ]; then | ||
echo "There is no pyproject.toml" | ||
exit 1 | ||
fi | ||
|
||
version=`grep '^version = ' pyproject.toml | sed -E "s/^version = ['\"]([^'\"]+)['\"].*/\1/g"` | ||
|
||
if [ -z "${version}" ]; then | ||
echo "pyproject.toml has no 'version = \"...\"' line." | ||
exit 1 | ||
fi | ||
|
||
new_tag=v${version} | ||
|
||
git tag ${new_tag} | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Adding tag ${new_tag} failed." | ||
exit 1 | ||
else | ||
echo "Added tag ${new_tag}." | ||
fi | ||
|
||
git push origin ${new_tag} | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Pushing tag ${new_tag} failed." | ||
exit 1 | ||
else | ||
echo "Pushed tag ${new_tag}." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters