-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start: code block indentation workarounds #2458
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,11 +90,11 @@ The command options used above mean the following: | |
but the idea is that the stage can depend on field values from a parameters | ||
file (`params.yaml` by default): | ||
|
||
```yaml | ||
prepare: | ||
split: 0.20 | ||
seed: 20170428 | ||
``` | ||
```yaml | ||
prepare: | ||
split: 0.20 | ||
seed: 20170428 | ||
``` | ||
|
||
- `-d src/prepare.py` and `-d data/data.xml` mean that the stage depends on | ||
these files to work. Notice that the source code itself is marked as a | ||
|
@@ -105,18 +105,18 @@ prepare: | |
two files in it. This is how the <abbr>workspace</abbr> should look like now: | ||
|
||
```git | ||
. | ||
├── data | ||
│ ├── data.xml | ||
│ ├── data.xml.dvc | ||
. | ||
├── data | ||
│ ├── data.xml | ||
│ ├── data.xml.dvc | ||
+│ └── prepared | ||
+│ ├── test.tsv | ||
Comment on lines
107
to
113
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here the workaround so it looks correct really makes the code looks broken. And the formatter doesn't catch this one. So I wonder if it's best to close this PR and focus on fixing #1509 instead. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WDYT @shcheklein ? BTW if so maybe I should remove all other workaround indentations that are currently in docs, e.g. in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to be honest looks like a minor problem, I would wait on the engine to fix this, for now broken it's fine to unindent code blocks |
||
+│ └── train.tsv | ||
+├── dvc.yaml | ||
+├── dvc.lock | ||
├── params.yaml | ||
└── src | ||
├── ... | ||
├── params.yaml | ||
└── src | ||
├── ... | ||
``` | ||
|
||
- The last line, `python src/prepare.py ...`, is the command to run in this | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to force commit this since Pretty doesn't like it (4-space indentation). Formatting check will prob. fail. But this looks correctly for now: