mirror of
https://github.com/mtayfur/openwebui-memory-system.git
synced 2026-01-22 15:01:02 +01:00
Introduce a dev-check.sh script to automate code formatting and import sorting using Black and isort. Add a pyproject.toml file to configure Black and isort settings for consistent code style. Update requirements.txt to include Black and isort as development dependencies and remove version pinning for easier dependency management. These changes streamline the development workflow, enforce code style consistency, and make it easier for contributors to run formatting and import checks locally.
25 lines
567 B
Bash
Executable File
25 lines
567 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Development tools script for openwebui-memory-system
|
|
|
|
set -e
|
|
|
|
if [ -f "./.venv/bin/python" ]; then
|
|
PYTHON="./.venv/bin/python"
|
|
elif command -v python3 &> /dev/null; then
|
|
PYTHON="python3"
|
|
elif command -v python &> /dev/null; then
|
|
PYTHON="python"
|
|
else
|
|
echo "Python 3 is not installed. Please install Python 3 to proceed."
|
|
exit 1
|
|
fi
|
|
|
|
echo "🔧 Running development tools..."
|
|
|
|
echo "🎨 Formatting with Black..."
|
|
$PYTHON -m black .
|
|
echo "📦 Sorting imports with isort..."
|
|
$PYTHON -m isort .
|
|
|
|
echo "✅ All checks passed!" |