feat: add Settings and Setup pages for user management
- Implemented Settings page for changing user passwords with validation and feedback. - Created Setup page for initial admin account setup with form handling and navigation. - Added API service layer for handling requests related to proxy hosts, remote servers, and import functionality. - Introduced mock data for testing purposes and set up testing framework with vitest. - Configured Tailwind CSS for styling and Vite for development and build processes. - Added scripts for Dockerfile validation, Python syntax checking, and Sourcery integration. - Implemented release and coverage scripts for better CI/CD practices.
This commit is contained in:
28
tools/sourcery_precommit_wrapper.sh
Executable file
28
tools/sourcery_precommit_wrapper.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Wrapper for Sourcery pre-commit hook.
|
||||
# Run Sourcery if the CLI is available or a token is provided.
|
||||
# This supports both interactive `sourcery login` and token-based CI usage.
|
||||
|
||||
if command -v sourcery >/dev/null 2>&1; then
|
||||
exec sourcery "$@"
|
||||
fi
|
||||
|
||||
# Try python -m sourcery as a fallback
|
||||
if python -m sourcery --version >/dev/null 2>&1; then
|
||||
exec python -m sourcery "$@"
|
||||
fi
|
||||
|
||||
# If CLI not found but token env var present, try to run via 'sourcery' anyway
|
||||
if [ -n "${SOURCERY_TOKEN:-}" ] || [ -n "${SOURCERY_API_TOKEN:-}" ] || [ -n "${SOURCERY_API_KEY:-}" ]; then
|
||||
if command -v sourcery >/dev/null 2>&1; then
|
||||
exec sourcery "$@"
|
||||
fi
|
||||
if python -m sourcery --version >/dev/null 2>&1; then
|
||||
exec python -m sourcery "$@"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Sourcery CLI not available and no token detected; skipping sourcery pre-commit check."
|
||||
exit 0
|
||||
Reference in New Issue
Block a user