Skip to content

Commit f18add0

Browse files
DashCoreAutoGuixfanquake
authored andcommitted
Merge bitcoin#27507: lint: stop ignoring LIEF imports
Co-authored-by: fanquake <[email protected]>
1 parent 5d54ecd commit f18add0

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

ci/lint/04_install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fi
3535

3636
${CI_RETRY_EXE} pip3 install codespell==2.0.0
3737
${CI_RETRY_EXE} pip3 install flake8==3.8.3
38+
${CI_RETRY_EXE} pip3 install lief==0.13.1
3839
${CI_RETRY_EXE} pip3 install mypy==0.910
3940
${CI_RETRY_EXE} pip3 install pyzmq==22.3.0
4041
${CI_RETRY_EXE} pip3 install vulture==2.3

contrib/devtools/security-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111
from typing import List
1212

13-
import lief #type:ignore
13+
import lief
1414

1515
def check_ELF_RELRO(binary) -> bool:
1616
'''

contrib/devtools/symbol-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import sys
1414
from typing import Dict, List
1515

16-
import lief #type:ignore
16+
import lief
1717

1818
# Debian 11 (Bullseye) EOL: 2026. https://wiki.debian.org/LTS
1919
#

contrib/devtools/test-security-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'''
66
Test script for security-check.py
77
'''
8-
import lief #type:ignore
8+
import lief
99
import os
1010
import subprocess
1111
from typing import List

test/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ Use the `-v` option for verbose output.
311311
| Lint test | Dependency |
312312
|-----------|:----------:|
313313
| [`lint-python.py`](lint/lint-python.py) | [flake8](https://gitlab.com/pycqa/flake8)
314+
| [`lint-python.py`](lint/lint-python.py) | [lief](https://github.com/lief-project/LIEF)
314315
| [`lint-python.py`](lint/lint-python.py) | [mypy](https://github.com/python/mypy)
315316
| [`lint-python.py`](lint/lint-python.py) | [pyzmq](https://github.com/zeromq/pyzmq)
316317
| [`lint-python-dead-code.py`](lint/lint-python-dead-code.py) | [vulture](https://github.com/jendrikseipp/vulture)

test/lint/lint-python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import subprocess
1414
import sys
1515

16-
DEPS = ['flake8', 'mypy', 'pyzmq']
16+
DEPS = ['flake8', 'lief', 'mypy', 'pyzmq']
1717
MYPY_CACHE_DIR = f"{os.getenv('BASE_ROOT_DIR', '')}/test/.mypy_cache"
1818
FILES_ARGS = ['git', 'ls-files', '--','test/functional/*.py', 'contrib/devtools/*.py', ':(exclude)contrib/devtools/github-merge.py']
1919
EXCLUDE_DIRS = ['src/dashbls/',

0 commit comments

Comments
 (0)