[Add] Add global setting file

This commit is contained in:
vn.py 2019-01-08 20:42:47 +08:00
parent e25787536a
commit b996285ffd
3 changed files with 29 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# A comma-separated list of package or module names from where C extensions may # 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 # be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. # run arbitrary code.
extension-pkg-whitelist= extension-pkg-whitelist=PyQt5
# Add files or directories to the blacklist. They should be base names, not # Add files or directories to the blacklist. They should be base names, not
# paths. # paths.

View File

@ -2,3 +2,16 @@
based_on_style = google based_on_style = google
split_before_logical_operator = true split_before_logical_operator = true
spaces_before_comment=2, 4 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
View 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
}