Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
3de5b434
Commit
3de5b434
authored
6 years ago
by
Casey Faist
Browse files
Options
Downloads
Patches
Plain Diff
add bash pre-commit hook and correct shellcheck warnings
parent
c3845fff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+5
-0
5 additions, 0 deletions
.pre-commit-config.yaml
bin/steps/python
+13
-13
13 additions, 13 deletions
bin/steps/python
with
18 additions
and
13 deletions
.pre-commit-config.yaml
0 → 100644
+
5
−
0
View file @
3de5b434
repos
:
-
repo
:
git://github.com/detailyang/pre-commit-shell
rev
:
1.0.4
hooks
:
-
id
:
shell-lint
This diff is collapsed.
Click to expand it.
bin/steps/python
+
13
−
13
View file @
3de5b434
...
@@ -10,32 +10,32 @@ VENDORED_PYTHON="${VENDOR_URL}/runtimes/$PYTHON_VERSION.tar.gz"
...
@@ -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 "
SECURITY_UPDATE
=
"Python has released a security update! Please consider upgrading to "
# check if runtime exists
# check if runtime exists
if
curl
--output
/dev/null
--silent
--head
--fail
$VENDORED_PYTHON
;
then
if
curl
--output
/dev/null
--silent
--head
--fail
"
$VENDORED_PYTHON
"
;
then
if
[[
$PYTHON_VERSION
==
$PY37
*
]]
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY37
*
]]
;
then
# do things to alert the user of security release available
# do things to alert the user of security release available
if
[
$PYTHON_VERSION
!=
$LATEST_37
]
;
then
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_37
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_37
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
fi
fi
if
[[
$PYTHON_VERSION
==
$PY36
*
]]
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY36
*
]]
;
then
# security update note
# security update note
if
[
$PYTHON_VERSION
!=
$LATEST_36
]
;
then
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_36
"
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_36
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_36
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
fi
fi
if
[[
$PYTHON_VERSION
==
$PY35
*
]]
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY35
*
]]
;
then
# security update note
# security update note
if
[
$PYTHON_VERSION
!=
$LATEST_35
]
;
then
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_35
"
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_35
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_35
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
fi
fi
if
[[
$PYTHON_VERSION
==
$PY27
*
]]
;
then
if
[[
"
$PYTHON_VERSION
"
==
$PY27
*
]]
;
then
# security update note
# security update note
if
[
$PYTHON_VERSION
!=
$LATEST_27
]
;
then
if
[
"
$PYTHON_VERSION
"
!=
"
$LATEST_27
"
]
;
then
puts-warn
$SECURITY_UPDATE
$LATEST_27
puts-warn
"
$SECURITY_UPDATE
"
"
$LATEST_27
"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment