shinnytech / tqsdk-python

天勤量化开发包, 期货量化, 实时行情/历史数据/实盘交易
https://doc.shinnytech.com/tqsdk/latest
Apache License 2.0
3.63k stars 650 forks source link

[Tqsdk-Ci] Update Version 3.5.7 #479

Closed shinny-hongyan closed 6 months ago

shinny-hongyan commented 6 months ago

Automated changes by create-pull-request GitHub action

coderabbitai[bot] commented 6 months ago
Walkthrough ## 概述 此次更新主要是对`tqsdk`包的版本号从3.5.6升级到3.5.7,并对相关文档和代码进行了相应的修改。其中包括修复了在特定时间范围内无数据时的错误处理,并优化了数据校验逻辑。 ## 变更 | 文件路径 | 变更摘要 | |----------------------------|-------------------------------------------------------| | PKG-INFO, setup.py, .../__version__.py | 将`tqsdk`包版本号从3.5.6更新至3.5.7 | | doc/conf.py, doc/version.rst | 更新文档中的版本号,并修复了数据获取函数的错误处理 | | .../data_series.py | 修改了断言语句,用于校验数据长度一致性 | > 🐰🎉 > 小兔快跳,版本升高, > 代码如梭,错误飘飘。 > 更新一新,乐悠悠, > 程序无忧,兔子偷偷笑。

Recent Review Details **Configuration used: CodeRabbit UI** **Review profile: CHILL**
Commits Files that changed from the base of the PR and between b72cb7c706f106131b10e432decf5fabc52f39d8 and 7c005f5c68a88a8e49891917f696efb863f4c161.
Files selected for processing (6) * PKG-INFO (1 hunks) * doc/conf.py (1 hunks) * doc/version.rst (1 hunks) * setup.py (1 hunks) * tqsdk/__version__.py (1 hunks) * tqsdk/data_series.py (1 hunks)
Files skipped from review due to trivial changes (4) * PKG-INFO * doc/conf.py * setup.py * tqsdk/__version__.py
Additional Context Used
Ruff (1)
tqsdk/data_series.py (1)
180-180: Local variable `e` is assigned to but never used
Additional comments not posted (2)
tqsdk/data_series.py (1)
`105-105`: 确保 `rangeset_id` 和 `rangeset_dt` 长度相等的断言已经修改,这是一个合理的改动,因为它简化了条件并清晰地表达了意图。
doc/version.rst (1)
`5-8`: 更新文档以反映 `TqApi.get_kline_data_series` 和 `TqApi.get_tick_data_series` 函数在指定时间段没有数据时的错误处理改进。
---
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.