fixed flake8 lint errors

This commit is contained in:
Илья Глазунов
2025-12-04 03:06:58 +03:00
parent cec6e927a7
commit 7662a7924a
17 changed files with 62 additions and 84 deletions
+7 -8
View File
@@ -3,7 +3,6 @@ pyserve init - Initialize a new pyserve project
"""
from pathlib import Path
from typing import Optional
import click
@@ -119,7 +118,7 @@ extensions:
port_range: [9000, 9999]
health_check_enabled: true
proxy_timeout: 60.0
apps:
# Example: FastAPI application
- name: api
@@ -136,7 +135,7 @@ extensions:
strip_path: true
env:
APP_ENV: "production"
# Example: Flask application (WSGI)
# - name: admin
# path: /admin
@@ -191,7 +190,7 @@ extensions:
- path: /api
app: myapp.api:app
# factory: false # Set to true if app is a factory function
# Starlette app mounted at /web
# - path: /web
# app: myapp.web:app
@@ -257,13 +256,13 @@ logging:
format:
type: standard
use_colors: false
# JSON logs for log aggregation
- path: ./logs/pyserve.json
level: INFO
format:
type: json
# Access logs
- path: ./logs/access.log
level: INFO
@@ -278,7 +277,7 @@ extensions:
port_range: [9000, 9999]
health_check_enabled: true
proxy_timeout: 60.0
apps:
- name: api
path: /api
@@ -384,7 +383,7 @@ def init_cmd(
pyserve init -t full # All features
pyserve init -o production.yaml # Custom output file
"""
from ..output import console, print_success, print_warning, print_info
from ..output import console, print_info, print_success, print_warning
if list_templates:
console.print("\n[bold]Available Templates:[/bold]\n")