From 30cfb4caddb22eaf78ac9467e14b483d16ab8773 Mon Sep 17 00:00:00 2001 From: passthem Date: Mon, 10 Nov 2025 21:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Justfile=20=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=BA=93=EF=BC=8C=E7=AE=80=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- justfile | 4 ++++ poetry.lock | 32 +++++++++++++++++++++++++++++++- pyproject.toml | 6 ++++++ 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 justfile diff --git a/README.md b/README.md index a208c6f..1437dcc 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ code . 使用命令行手动启动 Bot: ```bash -poetry run watchfiles bot.main . --filter scripts.watch_filter.filter +poetry run just watch ``` 如果你不希望自动重载,只是想运行 Bot,可以直接运行: diff --git a/justfile b/justfile new file mode 100644 index 0000000..dcec9b6 --- /dev/null +++ b/justfile @@ -0,0 +1,4 @@ +watch: + poetry run watchfiles bot.main . --filter scripts.watch_filter.filter + + diff --git a/poetry.lock b/poetry.lock index 038f546..2ac05ad 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3544,6 +3544,36 @@ type = "legacy" url = "https://pypi.tuna.tsinghua.edu.cn/simple" reference = "mirrors" +[[package]] +name = "rust-just" +version = "1.43.0" +description = "" +optional = false +python-versions = ">=3.7" +groups = ["dev"] +files = [ + {file = "rust_just-1.43.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:b1da5ed623e3f06a5e1a9c6224131cf8cf2fc525e30433cfcb36c47c58867a39"}, + {file = "rust_just-1.43.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:220e02d2e4f96391c570f5f0512a07aecb1e821a79d891b49143447e84623df1"}, + {file = "rust_just-1.43.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b68813174921b1ddbdd9f7580054e351f7873c145c45143d2209f876e60f9928"}, + {file = "rust_just-1.43.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b43f3baf5171ffd87ee0d44b1163d145e2dacb0f0768476104c66a6ac147a896"}, + {file = "rust_just-1.43.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:10ef97e6eb822dfeec8f9cfcbfe04ffcaac0f2debef2ab36fb64fea6d805e4b2"}, + {file = "rust_just-1.43.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:19eba7954b25c4f9b458324c31b48dd3acf610657b45a2f1a14224f68a95bfea"}, + {file = "rust_just-1.43.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:670a30f9754f21433baeaf414991ffd8313232c2267c7f29da4c775819ae9ea6"}, + {file = "rust_just-1.43.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c1d89a734f74fbda49c1be8c916ec090d9ece7a81cec3b884d140a025c125c5a"}, + {file = "rust_just-1.43.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:bda375fd508d0cdd1326c48f6e9929244c77db203c328b94d475b3767de8234c"}, + {file = "rust_just-1.43.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8013cbc6fed0edefc5e465acf7e4d30021e97dd63a0230de57ba4c4ca1b58480"}, + {file = "rust_just-1.43.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:c45cf5f81de76ccb53069e247657cfb4a54b915799fdc79376ae6b395c3c5c7a"}, + {file = "rust_just-1.43.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:d9755908c74b54479a60284663d3eb6a15f980ecdbe23a25a87b68294a38798a"}, + {file = "rust_just-1.43.0-py3-none-win32.whl", hash = "sha256:70cd83bf6dcbca3f3fd8fd886e00a83fc75355c13443430b7cd642fee03de3b4"}, + {file = "rust_just-1.43.0-py3-none-win_amd64.whl", hash = "sha256:e7f98c68078f0cc129fdcd68e721fd6afc9dc55dda080bf29f6101ba097fd8a4"}, + {file = "rust_just-1.43.0.tar.gz", hash = "sha256:13802293226aa10371c9253484cfaa0326ee91cf941716cd21c4603fc5ad95be"}, +] + +[package.source] +type = "legacy" +url = "https://pypi.tuna.tsinghua.edu.cn/simple" +reference = "mirrors" + [[package]] name = "skia-python" version = "138.0" @@ -4459,4 +4489,4 @@ reference = "mirrors" [metadata] lock-version = "2.1" python-versions = ">=3.12,<4.0" -content-hash = "ce07952c63a0ab23a96443d94e5b140461dea3184e9b52a986be0b8e9e2b8418" +content-hash = "af9fc535dd8c4e33c2cac481839ba07bcb8014b9a9cbd6bd1b6f5942640ecefe" diff --git a/pyproject.toml b/pyproject.toml index 8ebb406..9d76256 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,3 +41,9 @@ url = "https://pypi.tuna.tsinghua.edu.cn/simple/" priority = "primary" [tool.poetry.dependencies] + + +[dependency-groups] +dev = [ + "rust-just (>=1.43.0,<2.0.0)" +]