mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
lint: stop ignoring LIEF imports
Type stubs are now available as of 0.13.0. See https://github.com/lief-project/LIEF/issues/650.
This commit is contained in:
parent
7d33ae755d
commit
015cc5e588
6 changed files with 6 additions and 4 deletions
|
@ -35,6 +35,7 @@ fi
|
||||||
|
|
||||||
${CI_RETRY_EXE} pip3 install codespell==2.2.1
|
${CI_RETRY_EXE} pip3 install codespell==2.2.1
|
||||||
${CI_RETRY_EXE} pip3 install flake8==5.0.4
|
${CI_RETRY_EXE} pip3 install flake8==5.0.4
|
||||||
|
${CI_RETRY_EXE} pip3 install lief==0.13.1
|
||||||
${CI_RETRY_EXE} pip3 install mypy==0.971
|
${CI_RETRY_EXE} pip3 install mypy==0.971
|
||||||
${CI_RETRY_EXE} pip3 install pyzmq==24.0.1
|
${CI_RETRY_EXE} pip3 install pyzmq==24.0.1
|
||||||
${CI_RETRY_EXE} pip3 install vulture==2.6
|
${CI_RETRY_EXE} pip3 install vulture==2.6
|
||||||
|
|
|
@ -10,7 +10,7 @@ Otherwise the exit status will be 1 and it will log which executables failed whi
|
||||||
import sys
|
import sys
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import lief #type:ignore
|
import lief
|
||||||
|
|
||||||
def check_ELF_RELRO(binary) -> bool:
|
def check_ELF_RELRO(binary) -> bool:
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -13,7 +13,7 @@ Example usage:
|
||||||
import sys
|
import sys
|
||||||
from typing import List, Dict
|
from typing import List, Dict
|
||||||
|
|
||||||
import lief #type:ignore
|
import lief
|
||||||
|
|
||||||
# Debian 10 (Buster) EOL: 2024. https://wiki.debian.org/LTS
|
# Debian 10 (Buster) EOL: 2024. https://wiki.debian.org/LTS
|
||||||
#
|
#
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
'''
|
'''
|
||||||
Test script for security-check.py
|
Test script for security-check.py
|
||||||
'''
|
'''
|
||||||
import lief #type:ignore
|
import lief
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
|
@ -331,6 +331,7 @@ Use the `-v` option for verbose output.
|
||||||
| Lint test | Dependency |
|
| Lint test | Dependency |
|
||||||
|-----------|:----------:|
|
|-----------|:----------:|
|
||||||
| [`lint-python.py`](lint/lint-python.py) | [flake8](https://gitlab.com/pycqa/flake8)
|
| [`lint-python.py`](lint/lint-python.py) | [flake8](https://gitlab.com/pycqa/flake8)
|
||||||
|
| [`lint-python.py`](lint/lint-python.py) | [lief](https://github.com/lief-project/LIEF)
|
||||||
| [`lint-python.py`](lint/lint-python.py) | [mypy](https://github.com/python/mypy)
|
| [`lint-python.py`](lint/lint-python.py) | [mypy](https://github.com/python/mypy)
|
||||||
| [`lint-python.py`](lint/lint-python.py) | [pyzmq](https://github.com/zeromq/pyzmq)
|
| [`lint-python.py`](lint/lint-python.py) | [pyzmq](https://github.com/zeromq/pyzmq)
|
||||||
| [`lint-python-dead-code.py`](lint/lint-python-dead-code.py) | [vulture](https://github.com/jendrikseipp/vulture)
|
| [`lint-python-dead-code.py`](lint/lint-python-dead-code.py) | [vulture](https://github.com/jendrikseipp/vulture)
|
||||||
|
|
|
@ -13,7 +13,7 @@ import pkg_resources
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
DEPS = ['flake8', 'mypy', 'pyzmq']
|
DEPS = ['flake8', 'lief', 'mypy', 'pyzmq']
|
||||||
MYPY_CACHE_DIR = f"{os.getenv('BASE_ROOT_DIR', '')}/test/.mypy_cache"
|
MYPY_CACHE_DIR = f"{os.getenv('BASE_ROOT_DIR', '')}/test/.mypy_cache"
|
||||||
|
|
||||||
# All .py files, except those in src/ (to exclude subtrees there)
|
# All .py files, except those in src/ (to exclude subtrees there)
|
||||||
|
|
Loading…
Add table
Reference in a new issue