Merge 8b44d01118 into merged_master (Bitcoin PR bitcoin/bitcoin#28184)

This commit is contained in:
Byron Hambly 2025-08-04 15:42:18 +02:00
commit 8ca4f285db
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697

View file

@ -9,14 +9,17 @@ Check for specified flake8 and mypy warnings in python files.
"""
import os
from pathlib import Path
import subprocess
import sys
from importlib.metadata import metadata, PackageNotFoundError
# Customize mypy cache dir via environment variable
cache_dir = Path(__file__).parent.parent / ".mypy_cache"
os.environ["MYPY_CACHE_DIR"] = str(cache_dir)
DEPS = ['flake8', 'lief', 'mypy', 'pyzmq']
MYPY_CACHE_DIR = f"{os.getenv('BASE_ROOT_DIR', '')}/test/.mypy_cache"
# All .py files, except those in src/ (to exclude subtrees there)
FLAKE_FILES_ARGS = ['git', 'ls-files', '*.py', ':!:src/*.py', ':!:test/bitcoin_functional/*.py'] # ELEMENTS: exclude this dir