Skip to content

Commit c723524

Browse files
authored
Fix toml examples in the README. (#11)
1 parent 3ff1a80 commit c723524

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ your project folder as well as your pytask configuration file. Then, the content
133133
look like this.
134134

135135
```toml
136-
[pytask]
136+
[tool.pytask.ini_options]
137137
julia_project = "."
138138
```
139139

@@ -245,12 +245,14 @@ def task_example():
245245
### Configuration
246246

247247
You can influence the default behavior of pytask-julia with some configuration values.
248+
Place them into a `pyproject.toml` file.
248249

249250
**`julia_serializer`**
250251

251252
Use this option to change the default serializer.
252253

253254
```toml
255+
[tool.pytask.ini_options]
254256
julia_serializer = "json"
255257
```
256258

@@ -260,6 +262,7 @@ Use this option to set the default suffix of the file which contains serialized
260262
dependencies and products and more.
261263

262264
```toml
265+
[tool.pytask.ini_options]
263266
julia_suffix = ".json"
264267
```
265268

@@ -268,6 +271,7 @@ julia_suffix = ".json"
268271
Use this option to set default options for each task which are separated by whitespace.
269272

270273
```toml
274+
[tool.pytask.ini_options]
271275
julia_options = ["--threads", 2]
272276
```
273277

@@ -279,13 +283,15 @@ and `Project.toml` is defined in the same directory as the configuration file
279283
`pyproject.toml`, just use a dot.
280284

281285
```toml
286+
[tool.pytask.ini_options]
282287
julia_project = "."
283288
```
284289

285290
If the environment files were in a folder next to the configuration file called
286291
`environment` use
287292

288293
```toml
294+
[tool.pytask.ini_options]
289295
julia_project = "environment"
290296
```
291297

0 commit comments

Comments
 (0)