[Add] Add global setting file
This commit is contained in:
parent
e25787536a
commit
b996285ffd
@ -3,7 +3,7 @@
|
||||
# A comma-separated list of package or module names from where C extensions may
|
||||
# be loaded. Extensions are loading into the active Python interpreter and may
|
||||
# run arbitrary code.
|
||||
extension-pkg-whitelist=
|
||||
extension-pkg-whitelist=PyQt5
|
||||
|
||||
# Add files or directories to the blacklist. They should be base names, not
|
||||
# paths.
|
||||
|
13
.style.yapf
13
.style.yapf
@ -2,3 +2,16 @@
|
||||
based_on_style = google
|
||||
split_before_logical_operator = true
|
||||
spaces_before_comment=2, 4
|
||||
|
||||
SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED = true
|
||||
SPLIT_ALL_COMMA_SEPARATED_VALUES = true
|
||||
SPLIT_BEFORE_BITWISE_OPERATOR = true
|
||||
SPLIT_BEFORE_CLOSING_BRACKET = true
|
||||
SPLIT_BEFORE_DICT_SET_GENERATOR = true
|
||||
SPLIT_BEFORE_DOT = true
|
||||
SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true
|
||||
SPLIT_BEFORE_FIRST_ARGUMENT = true
|
||||
SPLIT_BEFORE_LOGICAL_OPERATOR = true
|
||||
SPLIT_BEFORE_NAMED_ASSIGNS = true
|
||||
SPLIT_COMPLEX_COMPREHENSION = true
|
||||
DEDENT_CLOSING_BRACKETS = true
|
15
vnpy/trader/setting.py
Normal file
15
vnpy/trader/setting.py
Normal file
@ -0,0 +1,15 @@
|
||||
"""
|
||||
Global setting of VN Trader.
|
||||
"""
|
||||
|
||||
from logging import CRITICAL
|
||||
|
||||
SETTINGS = {
|
||||
"font.family": "Arial",
|
||||
"font.size": 12,
|
||||
|
||||
"log.active": True,
|
||||
"log.level": CRITICAL,
|
||||
"log.console": True,
|
||||
"log.file": True
|
||||
}
|
Loading…
Reference in New Issue
Block a user