Repository navigation
uv tool install lefthook - #16842
uv tool install lefthook#16842
Conversation
…epare.js) and the lefthook devDependency from web/package.json.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughDevelopment documentation now installs Changeslefthook migration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 7
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README_ar.md`:
- Around line 334-336: Update the setup instructions around `uv tool install
lefthook` to make uv’s tool bin directory available on PATH before running
`lefthook install`, using `uv tool update-shell` or an equivalent PATH export.
In `@README_fr.md`:
- Around line 325-327: Update the lefthook setup instructions in README_fr.md so
the binary installed by `uv tool install lefthook` is resolvable before invoking
`lefthook install`; add `$(uv tool dir --bin)` to PATH or instruct users to run
`uv tool update-shell` between those commands.
In `@README_id.md`:
- Around line 306-308: Add $(uv tool dir --bin) to PATH before invoking lefthook
in the setup snippet, or run the equivalent uv shell-path setup first. Ensure
the installed lefthook executable is discoverable in a fresh shell before
lefthook install runs.
In `@README_ko.md`:
- Around line 302-304: Update the Step 1 prerequisite text in README_ko.md to
reference lefthook, matching the installation and setup commands shown by the
lefthook flow; remove the obsolete pre-commit prerequisite and any
compatibility-only setup wording.
In `@README_tzh.md`:
- Around line 334-336: Update the setup instructions around “uv tool install
lefthook” to make the installed binary available before invoking “lefthook
install”; add the uv tool bin directory to PATH using the documented command, or
replace the invocation with uvx lefthook install.
In `@README_zh.md`:
- Around line 334-336: 在 README_zh.md 的安装命令流程中,于 lefthook install 之前补充将 uv tool
bin 目录加入当前 shell PATH 的步骤,可使用 uv tool update-shell 或等效的手动 PATH 配置;保留现有 uv tool
install lefthook 和 lefthook install 命令及其顺序。
In `@README.md`:
- Around line 337-339: Update the README setup instructions by adding the uv
tool bin directory to PATH after installing lefthook and before invoking
lefthook install, using uv tool dir --bin; mirror the same PATH export in the
setup sentence near the earlier referenced section.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 685ae71c-639b-4c6c-ba37-40a7e99d1e6c
⛔ Files ignored due to path filters (1)
web/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (12)
README.mdREADME_ar.mdREADME_fr.mdREADME_id.mdREADME_ja.mdREADME_ko.mdREADME_pt_br.mdREADME_tr.mdREADME_tzh.mdREADME_zh.mdweb/package.jsonweb/scripts/prepare.js
💤 Files with no reviewable changes (2)
- web/package.json
- web/scripts/prepare.js
| git config --local --unset core.hooksPath | ||
| uv tool install lefthook | ||
| lefthook install |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
uv tool install lefthook PATH update-shell executable not found current shell docs
💡 Result:
When you install a tool using uv tool install (such as lefthook), uv places the tool's executables into a dedicated directory [1][2]. For these tools to be accessible from your shell without invoking uv, this directory must be included in your system's PATH variable [1][3]. If you receive a warning that this directory is not in your PATH, you can run the following command to automatically update your shell configuration files: uv tool update-shell This command attempts to detect your current shell and append the necessary export command to your shell's configuration file (e.g.,.bashrc,.zshrc, or equivalent) [4][1]. After running this command, you will need to restart your shell or source your configuration file for the changes to take effect [5]. If for any reason uv tool update-shell does not automatically find or update your specific configuration, you can manually add the directory to your PATH. The default location for these executables is typically: - macOS/Linux: ~/.local/bin - Windows: %APPDATA%\uv\tools\bin (or similar based on your configuration) You can verify your current tool bin directory by checking the uv configuration or environment variables if you have customized them (e.g., UV_TOOL_BIN_DIR) [6].
Citations:
- 1: https://github.com/astral-sh/uv/blob/main/docs/concepts/tools.md
- 2: https://docs.astral.sh/uv/concepts/tools/?featured_on=talkpython
- 3: https://docs.astral.sh/uv/guides/tools/
- 4: https://docs.astral.sh/uv/concepts/tools/
- 5: https://docs.astral.sh/uv/getting-started/installation/?WT.mc_id=AI-MVP-5003172
- 6: How to
uv tool installwithout linking to bin? astral-sh/uv#12693
Add uv’s tool bin directory to PATH before lefthook install. uv tool install lefthook only makes the executable available once the uv tool bin directory is on PATH, so this step can fail in a fresh shell unless uv tool update-shell has been applied or the PATH is exported manually.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README_ar.md` around lines 334 - 336, Update the setup instructions around
`uv tool install lefthook` to make uv’s tool bin directory available on PATH
before running `lefthook install`, using `uv tool update-shell` or an equivalent
PATH export.
| git config --local --unset core.hooksPath | ||
| uv tool install lefthook | ||
| lefthook install |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Inspect the relevant README section with line numbers.
sed -n '310,340p' README_fr.md | cat -n
# Look for any earlier PATH setup or uv tool shell setup in the repo docs.
rg -n "uv tool dir|tool update-shell|PATH=.*uv|lefthook install|uv tool install lefthook" README_fr.md README*.md . -g '!**/.git/**' || trueRepository: infiniflow/ragflow
Length of output: 4798
🌐 Web query:
uv tool install path bin directory lefthook tool dir --bin update-shell docs
💡 Result:
To install and manage tools like Lefthook using uv, follow these guidelines based on official documentation: 1. Installation: You can install Lefthook as a system-wide tool using the following command [1][2]: uv tool install lefthook 2. Bin Directory: When you install a tool with uv, its executables are placed in a specific bin directory so they can be run directly from your shell [1][3]. To find the path to this directory, use: uv tool dir --bin [4][5] 3. Environment Configuration: For these tools to be accessible, this bin directory must be in your system PATH [1][6]. If it is not, uv will display a warning [1][6]. You can automatically add the directory to your shell configuration files by running: uv tool update-shell [1][5][7] 4. Advanced Customization: If you need to change the default location of the bin directory, you can set the UV_TOOL_BIN_DIR environment variable [4][8]. Similarly, the base directory for all uv tool environments can be changed using UV_TOOL_DIR [8][9]. Note: For most development tasks, using uvx (e.g., uvx lefthook) is often preferred over installation, as it runs the tool in an isolated, temporary environment without requiring permanent installation [1][10].
Citations:
- 1: https://docs.astral.sh/uv/concepts/tools/
- 2: https://github.com/astral-sh/uv/?tab=readme-ov-file
- 3: https://docs.astral.sh/uv/guides/tools/
- 4: https://docs.astral.sh/uv/reference/storage/
- 5: https://docs.astral.sh/uv/reference/cli/
- 6: https://github.com/astral-sh/uv/blob/main/docs/concepts/tools.md
- 7: https://docs.rs/uv-cli/latest/uv_cli/enum.ToolCommand.html
- 8: How to change where
uv tool installinstalls the binaries? astral-sh/uv#10593 - 9: Recommended way to install tool for all users on system astral-sh/uv#8431
- 10: https://docs.astral.sh/uv/concepts/tools/?featured_on=talkpython
🌐 Web query:
site:docs.astral.sh/uv/concepts/tools uv tool install executables PATH update-shell
💡 Result:
When you install tools using uv, they are placed in a dedicated executable directory [1]. For these tools to be accessible from your command line, this directory must be included in your system's PATH variable [1][2]. If your shell cannot locate the installed tools, uv will display a warning [1][2]. You can resolve this by running the following command: uv tool update-shell This command automatically adds the uv tool executable directory to your PATH by modifying common shell configuration files (such as.bashrc,.zshrc, or.profile) [3][1]. After running this command, you may need to restart your terminal or source your shell configuration file for the changes to take effect.
Citations:
- 1: https://docs.astral.sh/uv/concepts/tools/?featured_on=talkpython
- 2: https://docs.astral.sh/uv/concepts/tools/index.md
- 3: https://docs.astral.sh/uv/concepts/tools/
Make lefthook resolvable before running it.
uv tool install lefthook installs the binary into uv’s tool bin directory; add $(uv tool dir --bin) to PATH (or run uv tool update-shell) before lefthook install, otherwise the command can’t be found.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README_fr.md` around lines 325 - 327, Update the lefthook setup instructions
in README_fr.md so the binary installed by `uv tool install lefthook` is
resolvable before invoking `lefthook install`; add `$(uv tool dir --bin)` to
PATH or instruct users to run `uv tool update-shell` between those commands.
| git config --local --unset core.hooksPath | ||
| uv tool install lefthook | ||
| lefthook install |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'README_id.md lines 296-316:\n'
sed -n '296,316p' README_id.md
printf '\nRelevant PATH-related references in the repo:\n'
rg -n "tool install|update-shell|tool dir --bin|lefthook install|PATH" README_id.md .github docs . 2>/dev/null | head -n 80Repository: infiniflow/ragflow
Length of output: 7704
🌐 Web query:
uv tool install PATH tool bin update-shell lefthook install documentation
💡 Result:
To install and manage tools like Lefthook using uv, follow this workflow: 1. Install the tool: Use uv tool install to install a package into a persistent, isolated environment [1][2]. For example, to install Lefthook: uv tool install lefthook [3] 2. Manage PATH and shell configuration: When you install a tool, uv places its executables in a bin directory [4][1]. For these tools to be callable from your terminal, this directory must be in your system PATH [1]. If the installation process detects it is not in your PATH, it will display a warning [1]. You can automatically add the directory to your shell configuration files (e.g.,.bashrc,.zshrc) by running: uv tool update-shell [5][4] 3. Initialize the tool: After the tool is installed and accessible via your PATH, you can run its specific initialization commands as required. For Lefthook, this involves navigating to your project repository and running: lefthook install [3] Alternatively, if you prefer not to install the tool globally, you can use uvx (an alias for uv tool run) to execute it directly without a permanent installation [2]: uvx lefthook install [3]
Citations:
- 1: https://github.com/astral-sh/uv/blob/main/docs/concepts/tools.md
- 2: https://astral-sh-uv.mintlify.app/guides/tools
- 3: https://numpy.org/numtype/dev/
- 4: https://docs.astral.sh/uv/guides/tools/
- 5: https://docs.astral.sh/uv/concepts/tools/
Add $(uv tool dir --bin) to PATH before calling lefthook uv tool install puts the executable in uv’s tool bin directory, but this snippet never exports that directory or runs uv tool update-shell, so a fresh shell can fail at lefthook install.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README_id.md` around lines 306 - 308, Add $(uv tool dir --bin) to PATH before
invoking lefthook in the setup snippet, or run the equivalent uv shell-path
setup first. Ensure the installed lefthook executable is discoverable in a fresh
shell before lefthook install runs.
| git config --local --unset core.hooksPath | ||
| uv tool install lefthook | ||
| lefthook install |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Update the stale pre-commit prerequisite.
Step 1 still says to install pre-commit, while this flow now installs and uses lefthook. Update that prerequisite text to mention lefthook instead, or remove the obsolete pre-commit reference.
As per coding guidelines, remove stale documentation and compatibility-only setup text.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README_ko.md` around lines 302 - 304, Update the Step 1 prerequisite text in
README_ko.md to reference lefthook, matching the installation and setup commands
shown by the lefthook flow; remove the obsolete pre-commit prerequisite and any
compatibility-only setup wording.
Source: Coding guidelines
| git config --local --unset core.hooksPath | ||
| uv tool install lefthook | ||
| lefthook install |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Inspect the relevant README section with line numbers.
sed -n '320,345p' README_tzh.md | cat -n
# Look for any earlier PATH / uv shell setup in the repo.
rg -n "uv tool update-shell|uv tool dir|PATH=|core.hooksPath|lefthook install|uv tool install lefthook" README_tzh.md . -g '!**/node_modules/**' -g '!**/dist/**' -g '!**/build/**'
# Fetch the current uv tool docs snippet for PATH behavior.
python3 - <<'PY'
import urllib.request
url = "https://docs.astral.sh/uv/concepts/tools/"
try:
with urllib.request.urlopen(url, timeout=20) as r:
text = r.read().decode("utf-8", "replace")
for needle in ["tool update-shell", "tool dir", "PATH", "install"]:
idx = text.find(needle)
print(f"NEEDLE={needle} IDX={idx}")
if idx != -1:
print(text[max(0, idx-300):idx+900])
print("\n---\n")
except Exception as e:
print("FETCH_ERROR:", e)
PYRepository: infiniflow/ragflow
Length of output: 6832
🌐 Web query:
uv tool install PATH update-shell uv tools docs
💡 Result:
When you use uv tool install to install a Python tool, uv places the tool's executables into a specific directory [1][2]. For these tools to be accessible from your command line, this directory must be included in your system's PATH environment variable [1][2]. If the directory is not in your PATH, uv will display a warning upon installation [1][3]. To resolve this, you can use the command: uv tool update-shell This command automatically detects your shell configuration files and adds the necessary executable directory to your PATH [1][2]. Alternatively, you can manually add the directory to your PATH by following the instructions provided in the warning message (typically by adding an export PATH="..." line to your shell configuration file) [4][5]. Once updated, you may need to restart your shell or source your configuration file for the changes to take effect.
Citations:
- 1: https://docs.astral.sh/uv/concepts/tools/
- 2: https://github.com/astral-sh/uv/blob/main/docs/concepts/tools.md
- 3: https://astral-sh-uv.mintlify.app/guides/tools
- 4: How to
uv tool installwithout linking to bin? astral-sh/uv#12693 - 5: https://bbs.archlinux.org/viewtopic.php?id=306879
🌐 Web query:
lefthook install PATH uv tool install shell setup
💡 Result:
To install and set up Lefthook using uv, follow these steps: 1. Install Lefthook as a tool via uv: Run the following command to install Lefthook in an isolated environment and ensure its executable is available in your PATH [1]: uv tool install lefthook Alternatively, if you prefer to use the tool without permanent installation, you can use uvx [1]: uvx lefthook 2. Initialize and Install Hooks: Once Lefthook is installed, navigate to the root directory of your Git repository and run the install command to generate the configuration file and set up the Git hooks [2][3][4]: lefthook install If you installed via uvx, you can run this as: uvx lefthook install After running lefthook install, a lefthook.yml file will be created in your project root if it does not already exist [2][4]. Lefthook will automatically read this configuration file every time a Git hook is triggered; you do not need to reinstall the hooks when you modify the configuration [2].
Citations:
- 1: https://docs.astral.sh/uv/concepts/tools/
- 2: https://lefthook.dev/usage/commands/install/
- 3: https://github.com/evilmartians/lefthook?tab=readme-ov-file
- 4: https://lefthook.dev/usage/
Export uv’s tool bin before lefthook install. uv tool install lefthook doesn’t make the binary available in the current shell by itself, so this step can fail on a fresh setup. Add export PATH="$(uv tool dir --bin):$PATH" before lefthook install (or use uvx lefthook install).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README_tzh.md` around lines 334 - 336, Update the setup instructions around
“uv tool install lefthook” to make the installed binary available before
invoking “lefthook install”; add the uv tool bin directory to PATH using the
documented command, or replace the invocation with uvx lefthook install.
| git config --local --unset core.hooksPath | ||
| uv tool install lefthook | ||
| lefthook install |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Inspect the surrounding README context
file="README_zh.md"
sed -n '325,342p' "$file" | cat -n
# Search for any nearby uv/tool/path guidance in the repo
rg -n "uv tool install|uv tool update-shell|tool dir --bin|lefthook install|PATH" README_zh.md README.md . || trueRepository: infiniflow/ragflow
Length of output: 50378
🌐 Web query:
uv tool install lefthook PATH update-shell official docs
💡 Result:
To install and use Lefthook as a global tool with uv, follow these steps: 1. Install the tool: Run the command uv tool install lefthook [1][2]. This creates an isolated virtual environment for Lefthook [1][3]. 2. Add to PATH: After installation, the executables provided by the package must be in your system's PATH to be accessible from the shell [3][4][2]. If your installation directory is not already in your PATH, uv will typically display a warning [4][5][6]. 3. Update shell configuration: You can automatically add the necessary directory to your shell configuration files by running the command: uv tool update-shell [4][7][2] This command identifies common shell configuration files and appends the required PATH entry, ensuring the installed tools are available in future sessions [4]. Alternatively, you can manually add the directory to your shell profile (e.g.,.bashrc,.zshrc, or.profile) by adding an export PATH="...:$PATH" statement, where the path points to the directory containing the installed tool executables [4][6].
Citations:
- 1: https://docs.astral.sh/uv/concepts/tools/
- 2: https://astral-sh-uv.mintlify.app/guides/tools
- 3: https://github.com/astral-sh/uv/blob/main/docs/concepts/tools.md
- 4: https://github.com/astral-sh/uv/blob/4eef8fa3/docs/concepts/tools.md
- 5: https://bbs.archlinux.org/viewtopic.php?id=306879
- 6: How to
uv tool installwithout linking to bin? astral-sh/uv#12693 - 7: https://mac.install.guide/python/install-uv
在 lefthook install 前补上 PATH 说明。
uv tool install lefthook 只会安装工具,不保证当前 shell 里能直接找到 lefthook;这里应先把 uv 的 tool bin 目录加入 PATH(例如 uv tool update-shell,或手动 export PATH="$(uv tool dir --bin):$PATH"),再执行 lefthook install。
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README_zh.md` around lines 334 - 336, 在 README_zh.md 的安装命令流程中,于 lefthook
install 之前补充将 uv tool bin 目录加入当前 shell PATH 的步骤,可使用 uv tool update-shell 或等效的手动
PATH 配置;保留现有 uv tool install lefthook 和 lefthook install 命令及其顺序。
| git config --local --unset core.hooksPath | ||
| uv tool install lefthook | ||
| lefthook install |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
set -euo pipefail
# Locate relevant lines and surrounding context
nl -ba README.md | sed -n '310,350p'
# Search for related references
rg -n "lefthook|uv tool|update-shell|tool dir --bin|core.hooksPath" README.mdRepository: infiniflow/ragflow
Length of output: 196
🌐 Web query:
uv tool install lefthook PATH current shell uv tool update-shell docs.astral.sh tool dir --bin
💡 Result:
To install Lefthook as a tool using uv and ensure it is available in your shell, follow these steps. 1. Install Lefthook: Run the following command to install Lefthook as an isolated tool [1]: uv tool install lefthook 2. Verify and Add to PATH: For the tool to be executable from your shell, the uv tool bin directory must be in your PATH [2]. You can identify the current bin directory path by running [3][4]: uv tool dir --bin To automatically add this directory to your shell configuration files (such as.bashrc,.zshrc, etc.), run [3][2]: uv tool update-shell After running the update command, restart your shell or source your configuration file to apply the changes. Once the bin directory is correctly in your PATH, you can run lefthook directly from the command line [1][2]. For more information, you can refer to the official uv documentation on tools [1][5].
Citations:
- 1: https://docs.astral.sh/uv/concepts/tools/
- 2: https://github.com/astral-sh/uv/blob/main/docs/concepts/tools.md
- 3: https://docs.astral.sh/uv/reference/cli/
- 4: https://docs.astral.sh/uv/reference/storage/
- 5: https://docs.astral.sh/uv/guides/tools/
🏁 Script executed:
set -euo pipefail
# Read the relevant README ranges with portable tools
sed -n '318,345p' README.md | cat -n
# Show all lefthook/uv-tool references in the README with line numbers
grep -nE 'lefthook|uv tool|update-shell|tool dir --bin|core.hooksPath' README.mdRepository: infiniflow/ragflow
Length of output: 1566
Add the uv tool bin to PATH before invoking lefthook
uv tool install lefthook doesn’t make the binary callable in a fresh shell on its own. Add export PATH="$(uv tool dir --bin):$PATH" before lefthook install, and mirror that in the setup sentence at line 323.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README.md` around lines 337 - 339, Update the README setup instructions by
adding the uv tool bin directory to PATH after installing lefthook and before
invoking lefthook install, using uv tool dir --bin; mirror the same PATH export
in the setup sentence near the earlier referenced section.
The prepare.js bootstrap was removed, so the Dockerfile no longer needs
to stage web/scripts before 'npm install'. The COPY web/scripts step now
fails ('/web/scripts: not found') since the directory is gone. npm install
no longer runs a prepare lifecycle script, so the copy is unnecessary.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16842 +/- ##
==========================================
- Coverage 94.56% 93.16% -1.40%
==========================================
Files 10 10
Lines 717 717
Branches 118 118
==========================================
- Hits 678 668 -10
- Misses 25 29 +4
- Partials 14 20 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
No description provided.