|
|
|
@ -2,14 +2,11 @@ |
|
|
|
# Based on Bitcoin Core's test/lint/lint-python.sh |
|
|
|
# Based on Bitcoin Core's test/lint/lint-python.sh |
|
|
|
|
|
|
|
|
|
|
|
# The python files in jmqtui/jmqtui are auto generated. |
|
|
|
# The python files in jmqtui/jmqtui are auto generated. |
|
|
|
EXCLUDE_PATTERNS="jmqtui/jmqtui/*.py" |
|
|
|
EXCLUDE_PATTERNS="src/jmqtui/*.py" |
|
|
|
|
|
|
|
|
|
|
|
if ! command -v flake8 > /dev/null; then |
|
|
|
if ! command -v flake8 > /dev/null; then |
|
|
|
echo "Skipping Python linting since flake8 is not installed." |
|
|
|
echo "Skipping Python linting since flake8 is not installed." |
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
elif flake8 --version | grep -q "Python 2"; then |
|
|
|
|
|
|
|
echo "Skipping Python linting since flake8 is running under Python 2. Install the Python 3 version of flake8." |
|
|
|
|
|
|
|
exit 0 |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [[ $# == 0 ]]; then |
|
|
|
if [[ $# == 0 ]]; then |
|
|
|
|