File tree Expand file tree Collapse file tree
src/quant_platform_kit/longbridge Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 run : |
2222 set -euo pipefail
2323 python -m pip install --upgrade pip
24- python -m pip install -e . numpy pandas
24+ python -m pip install -e . numpy pandas ruff
25+
26+ - name : Run Ruff
27+ run : |
28+ set -euo pipefail
29+ ruff check .
2530
2631 - name : Run unit tests
2732 run : |
Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ package-dir = { "" = "src" }
1919
2020[tool .setuptools .packages .find ]
2121where = [" src" ]
22+
23+ [tool .ruff ]
24+ target-version = " py39"
Original file line number Diff line number Diff line change 22
33from typing import Any , Iterable
44
5+ from .market_data import fetch_last_price
6+
57
68def fetch_strategy_account_state (
79 q_ctx : Any ,
@@ -46,6 +48,3 @@ def fetch_strategy_account_state(
4648 "sellable_quantities" : sellable_quantities ,
4749 "total_strategy_equity" : available_cash + sum (market_values .values ()),
4850 }
49-
50-
51- from .market_data import fetch_last_price
You can’t perform that action at this time.
0 commit comments