alan-turing-institute / alan-turing-institute/sqlsynthgen

Add arbitrary import list option

Open
#92 0 comments 0 reactions 1 assignee Claimed by @Iain-S View on GitHub
Dominant language
Python
Stars
12
Forks
4
PR merge metrics
No merged PRs in 30d

Description

If we want to use e.g. `random.randint()` in ssg.py, we need to have imported `random`.
We could have an `imports` part of the config:

**config.yaml**

```yaml
imports: ["package1", "package2"]
```

which would translate to

**ssg.py**

```python
import package1
import package2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.