lint.sh: lint only pwndbg files (#1312)

pull/1313/head
Disconnect3d 3 years ago committed by GitHub
parent 20417c1b06
commit c74a551a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,15 +28,17 @@ done
set -o xtrace
LINT_FILES="pwndbg tests *.py"
if [[ $FORMAT == 1 ]]; then
isort .
black .
isort ${LINT_FILES}
black ${LINT_FILES}
else
isort --check-only --diff .
black --check --diff .
isort --check-only --diff ${LINT_FILES}
black --check --diff ${LINT_FILES}
fi
flake8 --show-source .
flake8 --show-source ${LINT_FILES}
# Indents are four spaces, binary ops can start a line, and indent switch cases
shfmt -i 4 -bn -ci -d .

Loading…
Cancel
Save