fix: Apply black formatting to resolve CI formatting issues
Some checks failed
CI / test (3.10) (push) Failing after 1m21s
CI / test (3.11) (push) Failing after 1m19s
CI / test (3.9) (push) Failing after 1m22s
CI / lint (push) Failing after 43s

This commit is contained in:
CI Bot
2026-02-06 07:56:02 +00:00
parent 123a4f7d1d
commit d369d3b1f8
8 changed files with 75 additions and 39 deletions

View File

@@ -112,7 +112,7 @@ class MockServerGenerator:
spec_info = self.spec_parser.get_info()
compose_content = f'''version: '3.8'
compose_content = f"""version: '3.8'
services:
mock-server:
@@ -147,7 +147,7 @@ services:
volumes:
- ./:/app
restart: unless-stopped
'''
"""
output_path.write_text(compose_content)
return output_path
@@ -168,7 +168,7 @@ services:
spec_info = self.spec_parser.get_info()
dockerfile_content = f'''FROM stoplight/prism:latest
dockerfile_content = f"""FROM stoplight/prism:latest
LABEL maintainer="developer@example.com"
LABEL description="Mock server for {spec_info['title']} API"
@@ -180,7 +180,7 @@ COPY openapi.yaml .
EXPOSE {self.DEFAULT_PORT}
CMD ["mock", "--spec", "openapi.yaml", "--port", "{self.DEFAULT_PORT}", "--host", "0.0.0.0"]
'''
"""
output_path.write_text(dockerfile_content)
return output_path
@@ -199,7 +199,7 @@ CMD ["mock", "--spec", "openapi.yaml", "--port", "{self.DEFAULT_PORT}", "--host"
else:
output_path = self.output_dir / "start-mock-server.sh"
script_content = f'''#!/bin/bash
script_content = f"""#!/bin/bash
set -e
@@ -216,7 +216,7 @@ docker compose up -d mock-server
echo "Mock server started successfully!"
echo "To stop: docker compose down"
'''
"""
output_path.write_text(script_content)
output_path.chmod(0o755)