fixing DQ issues
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
# scripts/setup_dev.py
|
||||
# !/usr/bin/env python3
|
||||
"""Development environment setup script"""
|
||||
"""Development environment setup script."""
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def run_command(command, description):
|
||||
"""Run a shell command and handle errors"""
|
||||
"""Run a shell command and handle errors."""
|
||||
print(f"Running: {description}")
|
||||
try:
|
||||
subprocess.run(command, shell=True, check=True)
|
||||
@@ -21,7 +20,7 @@ def run_command(command, description):
|
||||
|
||||
|
||||
def setup_alembic():
|
||||
"""Set up Alembic for database migrations"""
|
||||
"""Set up Alembic for database migrations."""
|
||||
alembic_dir = Path("alembic")
|
||||
|
||||
# Check if alembic directory exists and has necessary files
|
||||
@@ -103,7 +102,7 @@ else:
|
||||
|
||||
|
||||
def setup_environment():
|
||||
"""Set up the development environment"""
|
||||
"""Set up the development environment."""
|
||||
print("🚀 Setting up ecommerce API development environment...")
|
||||
|
||||
# Check Python version
|
||||
|
||||
Reference in New Issue
Block a user