forked from ZhuLinsen/daily_stock_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
32 lines (30 loc) · 914 Bytes
/
setup.cfg
File metadata and controls
32 lines (30 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[flake8]
max-line-length = 120
exclude =
.git,
__pycache__,
.env,
venv,
.venv,
build,
dist,
*.egg-info
# E501: 行太长(有些地方确实需要长行)
# W503: 运算符在换行前(与 black 冲突)
# E203: 切片前的空格(与 black 冲突)
# E402: 模块级导入不在文件顶部(有时需要先设置环境变量)
ignore = E501,W503,E203,E402
[tool:pytest]
testpaths = .
python_files = test_*.py
python_functions = test_*
addopts = -v --tb=short
markers =
unit: fast offline unit tests
integration: service-level integration tests without external network dependency
network: tests requiring external network or third-party services
[isort]
profile = black
line_length = 120
skip = .git,__pycache__,.env,venv,.venv
known_first_party = config,storage,analyzer,notification,scheduler,search_service,market_analyzer,stock_analyzer,data_provider