mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 13:24:18 +08:00
- pyproject.toml: add mypy overrides for pandas/tabulate/matplotlib stubs, disable strict checking for vendored MyTT library - config.py: use cast() for dict[str, Any] .get() returns - beichi.py: widen _calc_bi_force param to BI | XD, import XD - backtest/cli.py: split combo/single strategy into separate typed variables - backtest/combo.py: add bool_array() helper for numpy return types - chanlun/analyser.py: type ignore for pandas row access, fix dict type arg - unified.py: change fields param from object to Any - ex/mac_client.py: add type args to list literals - cli/cmd_offline.py: wrap int market as Market enum before API call - cli/cmd_chanlun.py: fix dict type arg - offline/write_*.py: explicit int() cast for struct.unpack returns - MyTT.py: fix line-too-long comments, UP038 isinstance syntax - tests: fix E712 (==False → ~mask), E741 (noqa), F841, import sorting - ruff format applied across codebase Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
88 lines
3.5 KiB
JSON
88 lines
3.5 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Skill(update-config)",
|
|
"Bash(echo '{\"tool_name\":\"Edit\",\"tool_input\":{\"file_path\":\"D:\\\\\\\\python\\\\\\\\xmtdx\\\\\\\\src\\\\\\\\xmtdx\\\\\\\\__init__.py\"}}')",
|
|
"Bash(python -c \"import sys,json,subprocess;d=json.load\\(sys.stdin\\);f=d.get\\('tool_input',{}\\).get\\('file_path',''\\);exec\\('' if not f.endswith\\(\\\\\\\\'.py\\\\\\\\'\\) else 'subprocess.run\\([\\\\\\\\'ruff\\\\\\\\',\\\\\\\\'check\\\\\\\\',\\\\\\\\'--fix\\\\\\\\',f],capture_output=True\\);subprocess.run\\([\\\\\\\\'ruff\\\\\\\\',\\\\\\\\'format\\\\\\\\',f],capture_output=True\\)'\\);print\\(f'done: {f}'\\)\")",
|
|
"Bash(python *)",
|
|
"Bash(ruff check *)",
|
|
"Bash(git add *)",
|
|
"Bash(git commit *)",
|
|
"Bash(git push *)",
|
|
"mcp__zread__get_repo_structure",
|
|
"Bash(pip install *)",
|
|
"mcp__web-reader__webReader",
|
|
"Bash(python3 *)",
|
|
"Bash(where mypy *)",
|
|
"Bash(pip list *)",
|
|
"Bash(uv run *)",
|
|
"Bash(git stash *)",
|
|
"Bash(dir /s /b src\\\\xmtdx)",
|
|
"Bash(git remote *)",
|
|
"Bash(uv --version)",
|
|
"Bash(git rm *)",
|
|
"mcp__plugin_context7_context7__resolve-library-id",
|
|
"mcp__plugin_context7_context7__query-docs",
|
|
"Bash(grep -E \"\\\\.py$\")",
|
|
"Bash(awk '{added+=$1; deleted+=$2} END {print \"+\" added \" -\" deleted}')",
|
|
"Bash(find D:/python/easty_tdx/examples/1[1-7]* -name \"*.py\")",
|
|
"Bash(easy-tdx ping *)",
|
|
"Bash(easy-tdx version *)",
|
|
"Bash(easy-tdx kline *)",
|
|
"Bash(easy-tdx quote *)",
|
|
"Bash(easy-tdx tick *)",
|
|
"Bash(easy-tdx transaction *)",
|
|
"Bash(easy-tdx auction *)",
|
|
"Bash(easy-tdx quote-list *)",
|
|
"Bash(easy-tdx board-list *)",
|
|
"Bash(easy-tdx board-members *)",
|
|
"Bash(easy-tdx belong-board *)",
|
|
"Bash(easy-tdx capital-flow *)",
|
|
"Bash(echo \"EXIT CODE: $?\")",
|
|
"Bash(easy-tdx unusual *)",
|
|
"Bash(easy-tdx market-stat *)",
|
|
"Bash(easy-tdx server-info *)",
|
|
"Bash(easy-tdx symbol-info *)",
|
|
"Bash(easy-tdx ex *)",
|
|
"WebSearch",
|
|
"mcp__zread__search_doc",
|
|
"mcp__zread__read_file",
|
|
"Bash(git status *)",
|
|
"Bash(pip show *)",
|
|
"Bash(git tag *)",
|
|
"Bash(twine upload *)",
|
|
"Bash(pip index *)",
|
|
"Bash(curl -s https://pypi.org/pypi/easy-tdx/json)",
|
|
"Bash(curl -sI \"https://files.pythonhosted.org/packages/py3/e/easy-tdx/easy_tdx-1.2.0-py3-none-any.whl\")",
|
|
"Bash(gh run *)",
|
|
"Bash(easy-tdx *)",
|
|
"mcp__web-search-prime__web_search_prime",
|
|
"mcp__plugin_compound-engineering_context7__resolve-library-id",
|
|
"mcp__plugin_compound-engineering_context7__query-docs",
|
|
"Bash(pip uninstall *)",
|
|
"Bash(xargs grep -l \"Command\\\\|Request\\\\|Response\")",
|
|
"Bash(quotes/stock_xdxr_info.go)",
|
|
"Bash(mypy src/)",
|
|
"Bash(ruff format *)",
|
|
"mcp__plugin_episodic-memory_episodic-memory__search",
|
|
"Bash(echo \"FK/\")",
|
|
"Bash(git pull *)",
|
|
"mcp__playwright__browser_navigate",
|
|
"mcp__playwright__browser_snapshot",
|
|
"Bash(gh auth *)",
|
|
"Bash(rm -rf easy_tdx.wiki)",
|
|
"Bash(gh repo *)",
|
|
"Bash(gh api *)",
|
|
"Bash(mypy src/easy_tdx/backtest/types.py)",
|
|
"Bash(mypy tests/unit/test_backtest_types.py)",
|
|
"Bash(mypy src/easy_tdx/backtest/types.py tests/unit/test_backtest_types.py)",
|
|
"Bash(mypy *)",
|
|
"Bash(git diff *)",
|
|
"Bash(echo \"exit: $?\")",
|
|
"Bash(where easy-tdx *)",
|
|
"mcp__zai-mcp-server__analyze_image",
|
|
"Bash(git ls-remote *)"
|
|
]
|
|
}
|
|
}
|