Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ddef6b3

Browse files
committedOct 4, 2024·
Ignore line numbers in PyLint check
1 parent 84b6a91 commit ddef6b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎.github/workflows/pylint.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ jobs:
2828
set -x
2929
pip install pylint
3030
pip install --upgrade -e .
31-
pylint --exit-zero --errors-only pwnlib -f parseable | cut -d ' ' -f2- > current.txt
31+
run_pylint() { pylint --exit-zero --errors-only pwnlib -f parseable | cut -d ' ' -f2- | sed 's/line [0-9]\+/line XXXX/g'; }
32+
run_pylint > current.txt
3233
git fetch origin
3334
git checkout origin/"$GITHUB_BASE_REF"
34-
pylint --exit-zero --errors-only pwnlib -f parseable | cut -d ' ' -f2- > base.txt
35+
run_pylint > base.txt
3536
if diff base.txt current.txt | grep '>'; then
3637
false
3738
fi

0 commit comments

Comments
 (0)
Please sign in to comment.