Skip to content

Commit

Permalink
Update install-lint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aadeyemiadl authored Mar 7, 2024
1 parent ec58582 commit a995e2a
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion install-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
echo ""

# Install Hadolint
wget -O hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
wget -O hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
# Move to appropriate directory
mv hadolint /usr/local/bin/hadolint
# Make file executable
Expand Down Expand Up @@ -37,3 +37,37 @@
echo "# Dockerfile Linting Complete (Comments Above)"
echo "#====================================================#"
echo ""

# Simple script to install and run Pylint
echo ""
echo "#====================================================#"
echo "# Installing Pylint"
echo "#====================================================#"
echo ""

# Install Pylint
apt install pylint

echo ""
echo "#====================================================#"
echo "# Pylint Installation Complete"
echo "#====================================================#"
echo ""

# Check pylint version to make sure it is installed
pylint --version

echo ""
echo "#====================================================#"
echo "# Now Running Pylint"
echo "#====================================================#"
echo ""

# Run Pylint on Dockerfile
pylint *.py

echo ""
echo "#====================================================#"
echo "# Python Linting Complete (Comments Above)"
echo "#====================================================#"
echo ""

0 comments on commit a995e2a

Please sign in to comment.