Skip to content

Commit d74531b

Browse files
Feature doc change generating text (#218)
* wip * wip * wip * updated running of prospector
1 parent 250f92a commit d74531b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

docs/source/textdata.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ Here are some examples of its use to generate dummy email addresses, ip addresse
118118
119119
The implementation of the template expansion uses the underlying `TemplateGenerator` class.
120120

121+
.. note ::
122+
The ``template`` option is shorthand for ``text=dg.TemplateGenerator(template=...)``
123+
124+
This can be specified in multiple modes - see the `TemplateGenerator` documentation for more details.
125+
126+
121127
TemplateGenerator options
122128
---------------------------------------------
123129

@@ -162,6 +168,9 @@ It uses the following special chars:
162168

163169
The ``escapeSpecialChars`` is set to False by default for backwards compatibility.
164170

171+
To use the ``escapeSpecialChars`` option, use the variant
172+
``text=dg.TemplateGenerator(template=...), escapeSpecialChars=True``
173+
165174
In all other cases, the char itself is used.
166175

167176
The setting of the ``escapeSpecialChars`` determines how templates generate data.

makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ dev-test:
8989

9090
dev-lint-report:
9191
@echo "$(OK_COLOR)=> Running Prospector lint reporting $(PWD) $(NO_COLOR)"
92-
prospector --profile prospector.yaml > prospector_report.txt
92+
prospector --profile prospector.yaml dbldatagen > prospector_report.txt
93+
prospector --profile prospector.yaml tests >> prospector_report.txt
9394

9495
dev-lint:
9596
@echo "$(OK_COLOR)=> Running Prospector lint reporting $(PWD) $(NO_COLOR)"
96-
prospector --profile prospector.yaml
97+
prospector --profile prospector.yaml dbldatagen
98+
prospector --profile prospector.yaml tests
9799

98100
dev-test-with-html-report:
99101
@echo "$(OK_COLOR)=> Running unit tests with HTML test coverage report$(NO_COLOR)"

0 commit comments

Comments
 (0)