Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
3de5b434
Commit
3de5b434
authored
Nov 11, 2018
by
Casey Faist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bash pre-commit hook and correct shellcheck warnings
parent
c3845fff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
.pre-commit-config.yaml
.pre-commit-config.yaml
+5
-0
python
bin/steps/python
+13
-13
No files found.
.pre-commit-config.yaml
0 → 100644
View file @
3de5b434
repos
:
-
repo
:
git://github.com/detailyang/pre-commit-shell
rev
:
1.0.4
hooks
:
-
id
:
shell-lint
bin/steps/python
View file @
3de5b434
...
...
@@ -10,32 +10,32 @@ VENDORED_PYTHON="${VENDOR_URL}/runtimes/$PYTHON_VERSION.tar.gz"
SECURITY_UPDATE
=
"Python has released a security update! Please consider upgrading to "
# check if runtime exists
if
curl
--output
/dev/null
--silent
--head
--fail
$VENDORED_PYTHON
;
then
if
[[
$PYTHON_VERSION
==
$PY37
*
]]
;
then
if
curl
--output
/dev/null
--silent
--head
--fail
"
$VENDORED_PYTHON
"
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY37
*
]]
;
then
# do things to alert the user of security release available
if
[
$PYTHON_VERSION
!=
$LATEST_37
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_37
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]
;
then
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_37
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
if
[[
$PYTHON_VERSION
==
$PY36
*
]]
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY36
*
]]
;
then
# security update note
if
[
$PYTHON_VERSION
!=
$LATEST_36
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_36
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_36
"
]
;
then
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_36
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
if
[[
$PYTHON_VERSION
==
$PY35
*
]]
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY35
*
]]
;
then
# security update note
if
[
$PYTHON_VERSION
!=
$LATEST_35
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_35
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_35
"
]
;
then
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_35
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
if
[[
$PYTHON_VERSION
==
$PY27
*
]]
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY27
*
]]
;
then
# security update note
if
[
$PYTHON_VERSION
!=
$LATEST_27
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_27
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_27
"
]
;
then
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_27
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment