Skip to content

Commit 070bb81

Browse files
Feature templates bugfix (#175)
* wip * merged updates to master * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
1 parent c0bcbdc commit 070bb81

File tree

11 files changed

+434
-127
lines changed

11 files changed

+434
-127
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to the Databricks Labs Data Generator will be documented in
77

88
#### Changed
99
* Fixed use of logger in _version.py and in spark_singleton.py
10+
* Fixed template issues
1011
* Added use of prospector to build process to validate common code issues
1112

1213
### Version 0.3.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ details of use and many examples.
6262

6363
Release notes and details of the latest changes for this specific release
6464
can be found in the Github repository
65-
[here](https://github.com/databrickslabs/dbldatagen/blob/release/v0.3.2/CHANGELOG.md)
65+
[here](https://github.com/databrickslabs/dbldatagen/blob/release/v0.3.2post2/CHANGELOG.md)
6666

6767
# Installation
6868

dbldatagen/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_version(version):
3333
return version_info
3434

3535

36-
__version__ = "0.3.2" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion
36+
__version__ = "0.3.2post2" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion
3737
__version_info__ = get_version(__version__)
3838

3939

dbldatagen/text_generators.py

Lines changed: 127 additions & 120 deletions
Large diffs are not rendered by default.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
author = 'Databricks Inc'
2929

3030
# The full version, including alpha/beta/rc tags
31-
release = "0.3.2" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion
31+
release = "0.3.2post2" # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion
3232

3333

3434
# -- General configuration ---------------------------------------------------

docs/source/textdata.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ It uses the following special chars:
127127
Chars Meaning
128128
======== ======================================
129129
``\`` Apply escape to next char.
130-
0,1,..9 Use base value as an array of values and substitute the `nth` element ( 0 .. 9). Always escaped.
130+
v0,..v9 Use base value as an array of values and substitute the `nth` element ( 0 .. 9). Always escaped.
131131
x Insert a random lowercase hex digit
132132
X Insert an uppercase random hex digit
133133
d Insert a random lowercase decimal digit
@@ -149,7 +149,7 @@ It uses the following special chars:
149149
If the ``escapeSpecialChars`` option is set to True, then the following char only has its special
150150
meaning when preceded by an escape.
151151
152-
Some options must be always escaped for example ``\\0``, ``\\v``, ``\\n`` and ``\\w``.
152+
Some options must be always escaped for example ``\\v``, ``\\n`` and ``\\w``.
153153
154154
A special case exists for ``\\v`` - if immediately followed by a digit 0 - 9, the underlying base value
155155
is interpreted as an array of values and the nth element is retrieved where `n` is the digit specified.

prospector.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ ignore-paths:
1111
max-line-length: 120
1212

1313
pylint:
14+
options:
15+
bad-functions: print
16+
1417
disable:
1518
- too-many-instance-attributes
1619
- invalid-name

python/.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.2
2+
current_version = 0.3.2post2
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+){0,1}(?P<release>\D*)(?P<build>\d*)

python/dev_require.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pytest-cov
1919
pytest-timeout
2020
rstcheck
2121
prospector
22+
black
2223

2324
# The following packages are only required for building documentation and are not required at runtime
2425
sphinx==5.0.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
setuptools.setup(
3333
name="dbldatagen",
34-
version="0.3.2",
34+
version="0.3.2post2",
3535
author="Ronan Stokes, Databricks",
3636
description="Databricks Labs - PySpark Synthetic Data Generator",
3737
long_description=long_description,

0 commit comments

Comments
 (0)