Skip to content

Commit

Permalink
Merge pull request #1262 from atlanhq/APP-4958
Browse files Browse the repository at this point in the history
APP-4958 Add additional whitespace and missing import to python renderer.
  • Loading branch information
cmgrote authored Jan 29, 2025
2 parents df991f9 + 372ac46 commit 2941d2f
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 2941d2f

Please sign in to comment.