Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP-4958 Add additional whitespace and missing import to python renderer. #1262

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion package-toolkit/config/src/main/resources/Renderers.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ const function getLoggingConfPy(): FileOutput = new FileOutput {
[formatter_jsonFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
class=pyatlan.utils.JsonFormatter

"""
}

Expand All @@ -322,15 +323,18 @@ const function getRequirementsPy(): FileOutput = new FileOutput {
opentelemetry-sdk==1.29.0
opentelemetry-instrumentation-logging==0.50b0
opentelemetry-exporter-otlp==1.29.0

"""
}

/// Render the baseline requirements-dev.txt for a Python custom package.
const function getRequirementsDevPy(): FileOutput = new FileOutput {
text = """
black
pytest
pytest-order
nanoid

"""
}

Expand All @@ -355,6 +359,7 @@ const function getDockerfilePy(pkgName: String): FileOutput = new FileOutput {

WORKDIR /app
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]

"""
}

Expand All @@ -373,7 +378,7 @@ const function getConfigClassPy(m: Config): FileOutput = new FileOutput {
validate_multiselect,
validate_connector_and_connection,
)
from typing import Any, Optional, Union, Dict
from typing import Any, Optional, Union, Dict, List
import logging.config

PARENT = Path(__file__).parent
Expand Down Expand Up @@ -472,6 +477,7 @@ const function getConfigClassPy(m: Config): FileOutput = new FileOutput {
if field_value := getattr(self, key):
ret_val[value["env"]] = field_value.json()
return ret_val

"""
}.join("\n")
}
Expand Down