Skip to content

Releases

v1.0.5

Choose a tag to compare

@xming521 xming521 released this 05 Dec 14:46
d3001cf

🎉 What's Changed

WeClone 1.0.5 reads your WhatsApp chats, and Telegram exports can now be uploaded right in the web UI!

WhatsApp and Telegram

  • WhatsApp is a new data source. Export chats one by one on an iPhone or Android phone, or use a full Android backup, which gives every one-to-one chat at once with its 64-digit key. Import your phone's contacts (.vcf) with the backup to show contact names.
  • Telegram Desktop exports, of a chat or your whole account, can be uploaded on the Build portrait page, with no setup in settings.jsonc. WeClone works out which sender is you and asks when it can't tell.
  • The upload box starts with where the chats come from: WhatsApp, Telegram or generic CSV, each showing how many of its chats are uploaded. An upload replaces only the chats from the same source, so chats from several apps go into one build.
  • weclone-cli import-whatsapp turns WhatsApp chats into the generic CSV format for build-profile --csv-folder.

Builds

  • A new request goes out as soon as one returns, instead of each batch waiting for its slowest answer.
  • A build whose requests keep failing stops within seconds, and the page tells an empty balance or an invalid key apart from other failures.
  • When the requests for a part of the chats fail twice, that part is left out and the build goes on. The page shows how many requests failed, and building again sends only those.

Portrait review

  • Every entry you did not reject is used for the portrait summary, assistants and the AI clone, reviewed or not, and the review page now says so.
  • Saving an edited or added entry adopts it, and saving an edited summary confirms it. The separate “Save and adopt” button is gone.

Web UI

  • Choosing the AI clone on the Build portrait page asks first, since that build gives the portrait and the speaking style but no clone to talk to yet.
  • Page titles match the menu items that open them, and the text across the pages is shorter and plainer.

⚠️ Upgrade Notes

  • Reading WhatsApp backups needs a new dependency: run uv pip install -e . again after updating.

🐛 Bug fix

  • A bad key or an empty balance kept a build retrying for hours. Only failures a resend can clear are retried now, and a request that timed out is not sent again, since the provider bills it anyway (#262).
  • Telegram chats with round video messages or other media WeClone didn't know failed to read. Such messages are kept as files now.

Full Changelog: v1.0.4...v1.0.5

😊 更新内容

WeClone 1.0.5 支持 WhatsApp 聊天记录,Telegram 导出的记录也能直接在网页上传了!

WhatsApp 和 Telegram

  • 新增 WhatsApp 数据源。可以在 iPhone 或 Android 手机上逐个导出聊天,也可以用 Android 完整备份,凭 64 位密钥一次读取所有一对一聊天。和备份一起导入手机通讯录(.vcf),就能显示联系人名字。
  • Telegram 桌面版导出的单个聊天或整个账号,都可以在「构建画像」页上传,不用再改 settings.jsonc。WeClone 会自动判断哪个发送者是你,判断不出来时会问你。
  • 上传框先选聊天来源:WhatsApp、Telegram 或通用 CSV,每个来源显示已上传的聊天数。每次上传只替换同一来源的聊天,几个应用的聊天可以放进同一次构建。
  • 命令行 weclone-cli import-whatsapp 可以把 WhatsApp 聊天转成通用 CSV 格式,供 build-profile --csv-folder 读取。

构建

  • 一个请求返回后马上发出下一个,不再每批等最慢的回答。
  • 请求持续失败时,构建会在几秒内停下,页面会区分余额用完、Key 无效和其他失败。
  • 某部分聊天的请求失败两次后会被跳过,构建继续进行。页面会显示失败的请求数,重新构建时只补发这些请求。

画像审核

  • 除了不采纳的,其余记忆都会用于画像总结、助手接入和 AI 分身,还没审核的也算在内,审核页现在会说明这一点。
  • 修改或手动添加的记忆,保存后就算已采纳;改过的画像总结,保存后就算已确认。原来单独的「保存并采纳」按钮去掉了。

网页

  • 在「构建画像」页选 AI 分身时会先提示:这次构建只生成画像和语言风格,还不能和分身对话。
  • 页面标题和打开它的菜单项一致,各页的文字也更简短、平实。画像里的一条信息统一叫作「记忆」。

升级说明

  • 读取 WhatsApp 备份需要新的依赖,更新后重新运行一次 uv pip install -e .。

问题修复

  • Key 无效或余额用完时,构建会反复重试好几个小时。现在只重试重发能解决的失败;请求超时也不再重发,因为服务商照样会计费(#262)。
  • Telegram 聊天里有圆形视频消息或其他 WeClone 不认识的媒体时会读取失败,现在这类消息按文件保留。

v1.0.4

Choose a tag to compare

@xming521 xming521 released this 09 Nov 16:50
c9b346c

🎉 What's Changed

WeClone 1.0.4 tells you what a build will cost and how long it will take, before you start!

Cost and time estimate

  • The confirm step of the Build portrait page estimates a build's cost, time and number of requests. A trial sends about 10 real requests to the model service to measure them, and the build reuses their answers.
  • Known providers such as DeepSeek are priced at their official rates, other services at the common price across providers. For a service with off-peak prices, the estimate follows the hours a build started now would run in.
  • With Codex, the estimate shows tokens and time, since Codex uses your subscription quota.
  • A build starts after a trial of the saved model settings. The page tells you what is still missing before you can start.
  • While a build runs, the page shows what it has spent and the time and cost still ahead, and warns you when spending runs far past the estimate. The finished page shows what the build spent.

Build portrait page

  • Every new build starts from its own upload. Opening the page clears chats uploaded earlier, and a successful build clears the chats it used.
  • When Codex reaches its usage limit, the build stops and keeps the answers it already got. Build again once the quota is back.

Personal assistants

  • The Assistants and Portrait summary pages explain how cloud assistants such as dots, Muse and Grok Bot can use your portrait: import the exported summary into their memory or custom instructions, or send it and ask them to remember it.

Logs

  • In encrypted mode, build logs now show the numbers of chats, requests and tokens, still without any chat text.

⚠️ Upgrade Notes

  • A build started from the web UI reads only the chats uploaded on the Build portrait page. The csv_folder in settings.jsonc is still read by build-profile on the command line.

🐛 Bug fix

  • With deepseek-v4-pro, about a quarter of extraction requests were rejected and sent again because the model wrote sample IDs as #0. These answers are accepted now (#262).

Full Changelog: v1.0.3...v1.0.4

😊 更新内容

WeClone 1.0.4 在开始构建前就能告诉你大概要花多少钱、多长时间!

费用和用时估算

  • 「构建画像」页的确认步骤会估算这次构建的费用、用时和请求次数。试算会向模型服务发送约 10 次真实请求来测量,这些回答构建时直接沿用。
  • DeepSeek 等已知服务商按官方价格计算,其他服务按各家服务商的常见价格估算。有错峰价格的服务,按现在开始构建会经过的时段计算。
  • 使用 Codex 时显示 token 用量和用时,因为 Codex 用的是订阅额度。
  • 开始构建前需要先用保存的模型设置试算一次,页面会提示还差哪些步骤。
  • 构建过程中会显示已经花了多少、还需要多长时间和多少钱,实际花费远超估算时会提醒。构建完成后显示这次一共花了多少。

构建画像页

  • 每次新建构建都从重新上传开始。打开页面时会清掉之前上传的聊天记录,构建成功后也会清掉这次用过的。
  • Codex 额度用完时构建会停下,已经拿到的回答都会保留,额度恢复后重新构建即可。

个人助手

  • 「助手接入」和「画像总结」页说明了 dots、Muse、Grok Bot 等云端助手怎么使用画像:把导出的画像总结导入助手的记忆或自定义指令,或者直接发给它,请它记住。

日志

  • 加密模式下,构建日志也会记录聊天、请求和 token 的数量,仍然不含任何聊天内容。

升级说明

  • 从网页开始的构建只读取在「构建画像」页上传的聊天记录。settings.jsonc 里的 csv_folder 仍供命令行 build-profile 读取。

问题修复

  • 使用 deepseek-v4-pro 时,模型把样本编号写成 #0 这样的形式,约四分之一的抽取请求因此被判为失败并重发。现在这类回答也能正常识别(#262)。

v1.0.3

Choose a tag to compare

@xming521 xming521 released this 08 Nov 13:48
5e8264c

🎉 What's Changed

WeClone 1.0.3 lets you build your life portrait from start to finish in the web UI!

Build portrait page

  • A new Build portrait page checks your setup and lists anything missing with how to fix it. The build then runs in the background with progress for each stage. You can cancel it, and closing the page does not stop it.
  • Chat records in the generic CSV format can be uploaded on the page as folders or zip files. In encrypted mode they are stored encrypted.
  • The model service is chosen on the same page: the Codex model and effort, or for the API a provider, a key and a model from the list the service offers.
  • Chat files are processed in parallel up to batch_size, so builds finish sooner.
  • build-profile --csv-folder <dir> reads any folder of generic CSV chats.

Settings

  • Model service: choose the backend and fill in its settings. Test connection checks the Codex sign-in, or lists the service's models and fills in the answer format and context window the service supports. Saving keeps the comments and order of settings.jsonc.
  • Portrait versions: every build is listed. You can switch between them at any time and delete the ones you no longer need.

API backend

  • New agent_distill_args options: context_window, reasoning_effort, extra_body and structured_output.
  • The input limit follows the model's context window, 95% of it and 128K by default, so --max-context-tokens is no longer needed.

Web UI

  • Error messages say what to do next, with the original error under Error details.

⚠️ Upgrade Notes

  • DeepSeek is no longer detected by its address. For DeepSeek or another service that does not support json_schema, set structured_output to json_object. Choosing DeepSeek on the Settings page or running Test connection fills it in.
  • If your API model's context window is smaller than 128K, set it under Settings → Model service.
  • After updating, sign in to the web UI once more. Sign-in length under Settings returns to its default.

🐛 Bug fix

  • Dropdowns now follow the page's theme and are readable in dark mode.
  • A SOCKS proxy set in ALL_PROXY now works for the API backend. Run uv pip install -e . again after updating.

Full Changelog: v1.0.1...v1.0.3

😊 更新内容

WeClone 1.0.3 可以在网页上从头到尾完成人生画像的构建了!

构建画像页

  • 新增「构建画像」页,先检查配置,列出缺少的设置和改法,然后在后台构建并显示每个阶段的进度。构建可以取消,关掉网页也不会停止。
  • 通用 CSV 格式的聊天记录可以在这个页面以文件夹或 zip 上传,加密模式下加密存储。
  • 模型服务也在这个页面选择:Codex 填模型和思考强度,API 选服务商、填 Key,再从服务列出的模型里选一个。
  • 多个聊天文件按 batch_size 并行处理,构建更快。
  • build-profile --csv-folder <目录> 可以读取任意通用 CSV 格式的聊天目录。

设置

  • 模型服务:选择模型后端并填写设置。测试连接会检查 Codex 是否已登录,或列出服务的模型,并填好服务支持的回答格式和上下文长度。保存时保留 settings.jsonc 里的注释和顺序。
  • 画像版本:列出每一次构建,可以随时切换,不要的版本可以删除。

API 后端

  • agent_distill_args 新增 context_window、reasoning_effort、extra_body 和 structured_output。
  • 输入上限按模型上下文长度的 95% 计算,默认 128K,不再需要 --max-context-tokens。

网页

  • 报错信息会说明下一步怎么做,原始报错放在「错误详情」里。

升级说明

  • 不再按接口地址识别 DeepSeek。DeepSeek 等不支持 json_schema 的服务需要把 structured_output 设为 json_object,在设置页选择 DeepSeek 或点测试连接会自动填好。
  • API 模型的上下文长度小于 128K 时,请在「设置 → 模型服务」里填写。
  • 升级后需要重新登录一次网页,登录有效期设置恢复为默认值。

问题修复

  • 下拉菜单跟随网页主题,深色模式下也能正常阅读。
  • API 后端支持 ALL_PROXY 里设置的 SOCKS 代理,升级后请重新运行 uv pip install -e .。

v1.0.1

Choose a tag to compare

@xming521 xming521 released this 05 Nov 14:32
be80e6c

🎉 What's Changed

WeClone 1.0 is here! WeClone grows from fine-tuned clones into building a complete personal model of you. You can now distill a life portrait from your chat history, review it, and serve it over MCP as long-term memory for AI assistants or AI clones. The original fine-tuning workflow remains fully supported.

Life portrait

  • weclone-cli build-profile builds your life portrait in one command, using Codex or any OpenAI-compatible API.
  • The portrait is organized by domain and topic. Every fact has a privacy level and a time scope, and traces back to the chats it came from.
  • Speaking style analysis: 179 style features in ten categories.
  • The portrait is currently extracted in Chinese, and English chats have not been tested yet.

Assistant access

  • Claude Code, Codex and other assistants read your portrait and domain summaries over MCP. You decide which domains and privacy levels they can read.

Web UI

  • Review your portrait fact by fact, confirm domain summaries, view your speaking style, and manage access for assistants and chat bots.
  • A new design with light and dark themes, available in Chinese and English.
  • weclone-cli server --demo shows a demo portrait before you build your own.

Privacy

  • Data is encrypted locally by default, with one password for the web UI and the command line.

Fine-tuned clone

  • Chat bots such as AstrBot and LangBot connect to your clone with a token.
  • Quantization settings now take effect in training and inference by @xhrxgr in #218
  • GPUs without bfloat16, such as T4 and V100, are supported through the dtype option by @octo-patch in #212
  • test-model asks you to start the server first when it is not running by @octo-patch in #213
  • Generated training data is saved to the dataset set in the config by @Iams4kura in #229

⚠️ Upgrade Notes

  • Update your settings.jsonc against the new settings.template.jsonc.
  • New configs store data encrypted by default. Existing configs without security_args stay in plaintext.
  • The life portrait, web UI and assistant access need only uv pip install -e .. Fine-tuning still needs --group main.

🐛 Bug fix

fix #85 fix #115

New Contributors

Full Changelog: v0.3.03...v1.0.1

😊 更新内容

WeClone 1.0 正式发布!WeClone 现在从微调分身走向完整的个人模型建模。现在可以从聊天记录中总结出人生画像,经过审核后通过 MCP 作为长期记忆提供给 AI 助理或 AI 分身,原有的微调流程也会完整保留。

人生画像

  • weclone-cli build-profile 一条命令生成人生画像,支持 Codex 或任意 OpenAI 兼容 API。
  • 画像按板块与主题组织,每条事实标注隐私级别和时间范围,并可追溯原文。
  • 语言风格分析:十大类、179 项风格特征。

助手接入

  • Claude Code、Codex 等助手可通过 MCP 读取你的画像与板块总结,能读哪些板块、读到哪个隐私级别由你设定。

网页

  • 逐条审核画像,确认板块总结,查看语言风格,管理助手和聊天机器人的接入。
  • 全新设计,支持浅色和深色主题,提供中英文界面。
  • weclone-cli server --demo 可以在生成自己的画像前先查看示例画像。

隐私

  • 数据默认在本地加密存储,网页和命令行共用一个密码。

微调分身

  • AstrBot、LangBot 等聊天机器人通过令牌接入分身。
  • 量化配置在训练和推理中正确生效(@xhrxgr,#218)。
  • 通过 dtype 选项支持 T4、V100 等不支持 bfloat16 的显卡(@octo-patch,#212)。
  • test-model 在服务未启动时提示先启动服务(@octo-patch,#213)。
  • 生成的训练数据保存到配置指定的数据集(@Iams4kura,#229)。

升级说明

  • 请对照新的 settings.template.jsonc 更新 settings.jsonc。
  • 新配置默认加密存储,未设置 security_args 的旧配置仍为明文。
  • 人生画像、网页和助手接入只需 uv pip install -e .,微调仍需 --group main。

v0.3.03

Choose a tag to compare

@xming521 xming521 released this 04 Jan 14:40
0379096

🎉 What's Changed

The key highlights of this update include an upgrade to Python 3.12 and optimization of the dataset pipeline.

Dependency and Environment Updates:

  • Upgraded the required Python version to 3.12 in pyproject.toml and development settings, and updated the target version for linting and type checking to Python 3.12. [1] [2] [3]
  • Updated dependencies: switched from a git-based install of llamafactory to a fixed version, added torchdata and torchaudio with CUDA 12.6 support, and refined platform-specific dependency markers for PyTorch packages. [1] [2]

Data

  • Added the "<begin_chat>" marker in user messages, allowing for improved context in conversation flows.
  • Updated the qa_generator.py to include a new mechanism for managing chat member relationships, allowing the addition of contextual information about the relationship between users in conversations.
  • Refactored the CSV loading function to support loading user relationship data from a users.json file, improving the context provided during QA generation.
  • Added a new configuration option add_relation to the dataset settings, enabling users to toggle this feature.

others

  • Introduces OnlineLLM with thread‑pooled batch chat and optional JSON‑guided decoding; unifies JSON parsing across vLLM and OpenAI results.

New Contributors

Full Changelog: v0.3.02...v0.3.03

😊 更新内容

本次更新核心亮点包括升级至Python 3.12以及数据集管线优化。

依赖与环境更新:

  • 在pyproject.toml和开发配置中将Python版本升级至3.12。
  • 依赖项更新:将llamafactory从基于git的安装方式改为固定版本,新增支持CUDA 12.6的torchdata和torchaudio,并优化了PyTorch包的平台特定依赖标记。

数据处理

  • 新增"<begin_chat>"标记,以提升对话流程的上下文连贯性
  • 更新qa_generator.py,新增聊天成员关系管理机制,支持在对话中添加用户间关系的上下文信息
  • 重构CSV加载函数,支持从users.json文件加载用户关系数据,增强问答生成时的上下文信息
  • 在数据集配置中新增add_relation选项,允许用户自主启用/禁用此功能

其他

  • 引入支持线程池批量聊天和可选JSON引导解码的OnlineLLM;统一了vLLM与OpenAI结果的JSON解析流程。

v0.3.02

Choose a tag to compare

@xming521 xming521 released this 17 Aug 07:26
a96996f

🎉 What's Changed

Enable configurable thinking in offline cleaning, improve image and gif handling in QA processing, refactor configuration models for cleaner dataset naming, and bump versions and dependencies for release v0.3.02

New Features:

  • Introduce enable_thinking flag in LLMCleanConfig to control offline cleaning behavior
  • Supporting scoring and cleaning of datasets containing images (assigning the highest score to QA pairs that include images).

Enhancements:

  • Refactor cleaned_dataset_name to derive dynamically from original dataset
  • Pass enable_thinking through vLLM inference pipeline and adjust repetition_penalty and max_new_tokens accordingly
  • Implement CommonMethods to parse dataset names with modality-based suffixes and remove deprecated config fields

Build:

  • Bump project version to 0.3.02 and config_version to 0.3.02
  • Update dependencies: openai to 1.87.0, vllm to 0.10.0, torch to 2.7.1, add torchvision, transformers to 4.53.2, and triton to 3.3.1

Full Changelog: v0.3.01...v0.3.02

😊 更新内容

在离线清理中启用可配置的“思考”功能,改进问答处理中的图像和 GIF 处理,重构配置模型以实现更清晰的数据集命名,并为发布 v0.3.02 提升版本和依赖项。

新功能:

  • 引入 enable_thinking 以控制离线清理行为
  • 支持对含有图片的数据集打分清洗(含有图片的qa对赋值最高分)

改进:

  • 重构 cleaned_dataset_name 以从原始数据集动态派生
  • 将 enable_thinking 传递给 vLLM 推理管道,并相应调整 repetition_penalty 和 max_new_tokens
  • 实现 CommonMethods 以解析带有模态后缀的数据集名称,并移除已弃用的配置字段

构建:

  • 将项目版本提升至 0.3.02,配置版本提升至 0.3.02
  • 更新依赖项:openai 至 1.87.0,vllm 至 0.10.0,torch 至 2.7.1,添加 torchvision,transformers 至 4.53.2,以及 triton 至 3.3.1

CI:

  • 将 pre-commit-hooks 升级至 v6.0.0,ruff 升级至 v0.12.8

v0.3.01

Choose a tag to compare

@xming521 xming521 released this 17 Jul 07:23
d65784f

🎉 What's Changed

New Features:

  • Added retry_on_http_error and retry_openai_api decorators with backoff strategy to implement automatic retry mechanism for online LLM calls
  • feat(dataset): Enhance training data by including time-related options.

Enhancements:

  • performance(PII): add batch PII detection to improve performance
  • refactor: unifies combined content separator \n
  • feat(PII): enhance PII detection for Chinese

Fix:

  • Fix Regarding deepspeed version #184
  • fix(dataset): Data processing results have no images.

Tests:

  • Implement test for PII filtering in dataset generation
  • Refactor test fixtures in test_full_pipe, add setup_data_environment and blocked word/image tag assertions

Full Changelog: v0.3.0...v0.3.01

🥲更新内容

新功能:

  • 新增退避策略的retry_on_http_error和retry_openai_api装饰器,增加LLM在线调用自动重试机制
  • feat(dataset):训练数据增加包含时间的选项

功能优化:

  • performance(PII):新增批量PII检测以提升性能
  • refactor:统一group内容分隔符为\n
  • feat(PII):增强中文PII检测能力

问题修复:

  • 修复关于deepspeed版本的#184问题
  • fix(dataset):数据处理结果缺失图像

测试相关:

  • 新增PII过滤测试脚本
  • test_full_pipe新增setup_data_environment及禁用词/图片标签断言检查

v0.3.0

Choose a tag to compare

@xming521 xming521 released this 05 Jul 07:49
3de74ac

🎉 What's Changed

  • Support fine-tuning of Telegram chat logs
  • Utilize presidio for privacy filtering
  • Added multilingual support configuration
  • Optimized vllm inference and decoding parsing
  • Optimized the logging system, hooked other dependency logging, and added log level configuration
  • Translated log printing and code comments to English
  • Migrated commentjson dependency to pyjson5
  • Added/Updated CLI commands
  • Other (e.g., examples, tests, README)
    Version upgraded with some text updates for consistency and clarity.

🐛 Bug fix

fix #172 fix #170

Full Changelog: v0.2.24...v0.3.0

🥰 更新内容

  • 支持Telegram聊天记录微调
  • 使用presidio进行隐私过滤
  • 添加多语种支持配置;
  • 优化vllm推理、解码解析
  • 优化日志系统,hook其他依赖logging,添加日志等级配置
  • 日志打印、代码注释翻译为英文
  • 迁移commentjson依赖为pyjson5
  • 添加/更新了CLI命令
  • 其他(例如示例、测试、README)
    版本升级并进行了一些文本更新以保持一致性和清晰性。

v0.2.24

Choose a tag to compare

@xming521 xming521 released this 19 Jun 10:07
dda773a

🥰 What's Changed

  • Update torch version to 2.7.0 and vllm version to 0.9.1, switch offline inference to chat-style invocation
  • Add test_model_args and vllm_args configuration items to allow custom test dataset files
  • Add config file path option in CLI, support setting WECLONE_CONFIG_PATH environment variable
  • Update max_new_tokens and enable_thinking parameters in data cleaning strategy to optimize inference
  • Partial feature adaptation for qwen3

🐛 Bug fix

fix #158 fix #83 fix #77 fix #69

Full Changelog: v0.2.23...v0.2.24

🥰 更新内容

  • 更新torch版本至2.7.0,vllm版本到0.9.1,离线推理改为chat方式调用
  • 添加test_model_args and vllm_args配置项,允许自定义测试集文件
  • CLI中添加配置文件路径选项,支持设置WECLONE_CONFIG_PATH环境变量
  • 更新数据清理策略中的max_new_tokens和enable_thinking参数以优化推理过程
  • 部分功能适配qwen3

v0.2.23

Choose a tag to compare

@xming521 xming521 released this 13 Jun 08:01
2defd56

🥰 What's Changed

  • Refactoring settings, and add an image modality test script. by @xming521 in #153
    • Refactoring the entire settings-related functionality using pydantic
    • add an image modality test script
    • Unified dataset : chat-sft.
    • Pure text model fine-tuning data switched to ShareGPT format, defaulting to carrying chat history context
    • Upgrade dependencies to support qwen3
  • feat(dataset): Add ImageToText by integrate vision API and refactor clean strategy by @BAIKEMARK in #156
  • Add pre-commit, format code with ruff, update .gitignore, update pyproject.toml, update README.md. by @xming521 in #149

Full Changelog: v0.2.22...v0.2.23

🥰 更新内容

  • 重构配置项,并新增图像模态测试脚本。由 @xming521 提交于 #153
    • 使用 pydantic 重构全部配置相关功能
    • 新增图像模态测试脚本
    • 统一数据集格式:chat-sft
    • 纯文本模型微调数据切换为 ShareGPT 格式,默认携带聊天历史上下文
    • 升级依赖以支持 qwen3
  • feat(dataset): 添加图像转文本功能,重构清洗策略 由 @BAIKEMARK 提交于 #156
  • 新增 pre-commit,使用 ruff 格式化代码,更新 .gitignore,更新 pyproject.toml,更新 README.md。由 @xming521 提交于 #149