mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Rewrite pylint init-hook (#65193)
This commit is contained in:
parent
cc6b0cc843
commit
be5ff87171
@ -28,7 +28,16 @@ ignore = [
|
|||||||
# Use a conservative default here; 2 should speed up most setups and not hurt
|
# Use a conservative default here; 2 should speed up most setups and not hurt
|
||||||
# any too bad. Override on command line as appropriate.
|
# any too bad. Override on command line as appropriate.
|
||||||
jobs = 2
|
jobs = 2
|
||||||
init-hook='from pylint.config.find_default_config_files import find_default_config_files; from pathlib import Path; import sys; sys.path.append(str(Path(Path(list(find_default_config_files())[0]).parent, "pylint/plugins")))'
|
init-hook = """\
|
||||||
|
from pathlib import Path; \
|
||||||
|
import sys; \
|
||||||
|
|
||||||
|
from pylint.config import find_default_config_files; \
|
||||||
|
|
||||||
|
sys.path.append( \
|
||||||
|
str(Path(next(find_default_config_files())).parent.joinpath('pylint/plugins'))
|
||||||
|
) \
|
||||||
|
"""
|
||||||
load-plugins = [
|
load-plugins = [
|
||||||
"pylint.extensions.code_style",
|
"pylint.extensions.code_style",
|
||||||
"pylint.extensions.typing",
|
"pylint.extensions.typing",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user