Files
semantica/scripts/format-code.sh
T
KaifAhmad1 03b84ab238 docs: Add comprehensive open source project improvements
- Add essential open source files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, CHANGELOG.md, CONTRIBUTORS.md)
- Add GitHub issue and PR templates
- Add CI/CD workflows (CI, docs, release, dependabot)
- Add pre-commit hooks configuration
- Add documentation enhancements (architecture, governance, contributing, community)
- Add developer experience scripts (setup-dev, run-tests, format-code, check-code)
- Add community features (SUPPORT.md, .all-contributorsrc)
- Enhance README badges and project metadata
- Update mkdocs.yml navigation structure
2025-11-24 13:30:49 +05:30

24 lines
413 B
Bash

#!/bin/bash
# Code formatting script for Semantica
set -e
echo "🎨 Formatting Semantica code..."
# Activate virtual environment if it exists
if [ -d "venv" ]; then
source venv/bin/activate
fi
# Format with black
echo "Formatting with black..."
black semantica/ tests/
# Sort imports with isort
echo "Sorting imports with isort..."
isort semantica/ tests/
echo ""
echo "✅ Code formatting complete!"