Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: use POSIX shell syntax in pre-commit script (#16025)
QuantumGhost69fb0a4a288a
diff --git a/web/.husky/pre-commit b/web/.husky/pre-commitindex a0d7df1687e..9b78debadc3 100755--- a/web/.husky/pre-commit+++ b/web/.husky/pre-commit@@ -9,13 +9,17 @@ web_modified=falsefor file in $filesdo- if [[ $file == "api/"* && $file == *.py ]]; then- # set api_modified flag to true- api_modified=true- elif [[ $file == "web/"* ]]; then- # set web_modified flag to true- web_modified=true- fi+ # Use POSIX compliant pattern matching+ case "$file" in+ api/*.py)+ # set api_modified flag to true+ api_modified=true+ ;;+ web/*)+ # set web_modified flag to true+ web_modified=true+ ;;+ esacdone# run linters based on the modified modules@@ -24,7 +28,7 @@ if $api_modified; thenecho "Running Ruff linter on api module"# python style checks rely on `ruff` in path- if ! command -v ruff &> /dev/null; then+ if ! command -v ruff > /dev/null 2>&1; thenecho "Installing linting tools (Ruff, dotenv-linter ...) ..."poetry install -C api --only lintfi