mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
Black Formatting - travis #
This commit is contained in:
parent
4b8cfb3e65
commit
d6bc16d40d
2 changed files with 57 additions and 0 deletions
34
ci/push.sh
Executable file
34
ci/push.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
setup_git() {
|
||||||
|
git config --global user.email "travis@travis-ci.org"
|
||||||
|
git config --global user.name "Travis CI"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_format() {
|
||||||
|
black hyperglass
|
||||||
|
git add hyperglass/ *.py
|
||||||
|
git commit --message "Black Formatting - travis #$TRAVIS_BUILD_NUMBER"
|
||||||
|
}
|
||||||
|
|
||||||
|
run_pylint() {
|
||||||
|
python3 manage.py pylint-badge --integer-only True
|
||||||
|
}
|
||||||
|
|
||||||
|
check_pylint() {
|
||||||
|
PYLINT_SCORE=$(run_pylint)
|
||||||
|
if [ "$PYLINT_SCORE" != "10.00" ];
|
||||||
|
then
|
||||||
|
git add pylint.svg
|
||||||
|
git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# upload_files() {
|
||||||
|
# git remote add origin-pages https://${GH_TOKEN}@github.com/MVSE-outreach/resources.git > /dev/null 2>&1
|
||||||
|
# git push --quiet --set-upstream origin-pages gh-pages
|
||||||
|
# }
|
||||||
|
|
||||||
|
check_format
|
||||||
|
check_pylint
|
||||||
|
# setup_git
|
||||||
23
pylint.svg
Normal file
23
pylint.svg
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="110" height="20">
|
||||||
|
<linearGradient id="b" x2="0" y2="100%">
|
||||||
|
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
||||||
|
<stop offset="1" stop-opacity=".1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<mask id="anybadge_1">
|
||||||
|
<rect width="110" height="20" rx="3" fill="#fff"/>
|
||||||
|
</mask>
|
||||||
|
<g mask="url(#anybadge_1)">
|
||||||
|
<path fill="#555" d="M0 0h59v20H0z"/>
|
||||||
|
<path fill="#4c1" d="M59 0h51v20H59z"/>
|
||||||
|
<path fill="url(#b)" d="M0 0h110v20H0z"/>
|
||||||
|
</g>
|
||||||
|
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||||
|
<text x="30.5" y="15" fill="#010101" fill-opacity=".3">pylint</text>
|
||||||
|
<text x="29.5" y="14">pylint</text>
|
||||||
|
</g>
|
||||||
|
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||||
|
<text x="85.5" y="15" fill="#010101" fill-opacity=".3">10.0</text>
|
||||||
|
<text x="84.5" y="14">10.0</text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1 KiB |
Loading…
Add table
Reference in a new issue