From c74a551a6d47ebe4e7b6320ab246fb36d6f2d385 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Fri, 21 Oct 2022 02:35:29 +0200 Subject: [PATCH] lint.sh: lint only pwndbg files (#1312) --- lint.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lint.sh b/lint.sh index 7794b6fe8..a4d3a2603 100755 --- a/lint.sh +++ b/lint.sh @@ -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 .