diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cde62f887..44dbfdf79 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,7 +27,4 @@ jobs: - name: Run linters run: | git diff-index --quiet HEAD -- pwndbg tests - isort --check-only --diff pwndbg tests - black --diff --check pwndbg tests - flake8 --show-source pwndbg/ tests - python3 -m py_compile $(git ls-files 'pwndbg/*.py') + ./lint.sh diff --git a/lint.sh b/lint.sh new file mode 100755 index 000000000..a7544d533 --- /dev/null +++ b/lint.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -o xtrace +set -o errexit + +isort --check-only --diff pwndbg tests +black --diff --check pwndbg tests +flake8 --show-source pwndbg tests