mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 07:07:45 +01:00
lint: fix custom mypy cache dir setting
This commit is contained in:
parent
1d4846a844
commit
f9047771d6
1 changed files with 4 additions and 1 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Reference in a new issue