Skip to content

Commit 394b4d5

Browse files
Merge pull request #960 from SuffolkLITLab/format-with-dayamlchecker
Reformat with DAYamlChecker (no ast changes)
2 parents 32ac4fc + 1e66a10 commit 394b4d5

8 files changed

Lines changed: 949 additions & 746 deletions

File tree

docassemble/ALWeaver/data/questions/assembly_line.yml

Lines changed: 384 additions & 238 deletions
Large diffs are not rendered by default.

docassemble/ALWeaver/data/questions/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ id: interview order
1818
mandatory: True
1919
code: |
2020
load_values
21-
intro
21+
intro
2222
---
2323
objects:
2424
- weaverdata: DAStore.using(base="docassemble.ALWeaver")
@@ -27,11 +27,13 @@ objects:
2727
- jurisdiction_choices: SettingsList.using(object_type=DAObject, there_are_any=True, complete_attribute="description", store=weaverdata)
2828
---
2929
code: |
30-
published_configuration_capabilities = weaverdata.get("published_configuration_capabilities") or {}
31-
30+
published_configuration_capabilities = (
31+
weaverdata.get("published_configuration_capabilities") or {}
32+
)
33+
3234
if weaverdata.get("jurisdiction_choices"):
3335
jurisdiction_choices = weaverdata.get("jurisdiction_choices")
34-
36+
3537
load_values = True
3638
---
3739
imports:

docassemble/ALWeaver/data/questions/feedback.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,23 @@ image sets:
4242
mandatory: True
4343
code: |
4444
intro
45-
if reason == 'bug':
45+
if reason == "bug":
4646
bug_details
4747
issue_template = bug_report
48-
elif reason == 'confusing':
48+
elif reason == "confusing":
4949
confusing_details
5050
issue_template = confusing_report
51-
elif reason == 'else':
51+
elif reason == "else":
5252
other_feedback
5353
issue_template = other_feedback_report
54-
elif reason == 'help':
54+
elif reason == "help":
5555
gentle_exit
5656
else:
57-
value(reason)
57+
value(reason)
5858
issue_template = generic_report[reason]
5959
send_to_github
6060
prevent_going_back()
61-
store_variables_snapshot(persistent=True) # this is mostly just for backup reasons
61+
store_variables_snapshot(persistent=True) # this is mostly just for backup reasons
6262
end_results
6363
---
6464
code: github_user = url_args.get('github_user', default_github_user_or_organization)
@@ -72,10 +72,10 @@ code: question_id = url_args.get('question_id')
7272
code: package_version = url_args.get('package_version')
7373
---
7474
code: |
75-
if not task_performed('sent to github', persistent=True):
75+
if not task_performed("sent to github", persistent=True):
7676
if github_user in allowed_github_users:
7777
issue_url = make_github_issue(github_user, github_repo, template=issue_template)
78-
mark_task_as_performed('sent to github', persistent=True)
78+
mark_task_as_performed("sent to github", persistent=True)
7979
send_to_github = True
8080
---
8181
if: |
@@ -162,11 +162,11 @@ fields:
162162
code: maturity_levels
163163
show if:
164164
code: |
165-
get_config('debug')
165+
get_config("debug")
166166
- Who are you? Just tell us your name or github username, not email. This will be public.: user_contact_info
167167
show if:
168168
code: |
169-
get_config('debug')
169+
get_config("debug")
170170
- label: |
171171
**Tell us the steps that you followed before you noticed the problem.** [BR]
172172
For example: 1. I opened the interview. 2. On the first page, I put in just my first name. 3. On the second page, I put in my phone number. 4. I pressed a button to go to the next page.
@@ -213,16 +213,16 @@ fields:
213213
field: page_title
214214
show if:
215215
code: |
216-
not question_id
216+
not question_id
217217
- When should this fix be implemented?: maturity_level
218218
code: maturity_levels
219219
show if:
220220
code: |
221-
get_config('debug')
221+
get_config("debug")
222222
- Who are you? Just tell us your name or github username, not email. This will be public.: user_contact_info
223223
show if:
224224
code: |
225-
get_config('debug')
225+
get_config("debug")
226226
- label: |
227227
**What was confusing or missing information? **
228228
field: confusing_details
@@ -255,7 +255,7 @@ fields:
255255
- Who are you? Just tell us your name or github username, not email. This will be public.: user_contact_info
256256
show if:
257257
code: |
258-
get_config('debug')
258+
get_config("debug")
259259
- Other (please specify): user_type
260260
show if:
261261
variable: user_type
@@ -276,16 +276,16 @@ fields:
276276
field: page_title
277277
show if:
278278
code: |
279-
not question_id
279+
not question_id
280280
- When should this fix be implemented?: maturity_level
281281
code: maturity_levels
282282
show if:
283283
code: |
284-
get_config('debug')
284+
get_config("debug")
285285
- Who are you? Just tell us your name or github username, not email. This will be public.: user_contact_info
286286
show if:
287287
code: |
288-
get_config('debug')
288+
get_config("debug")
289289
- label: |
290290
**What language fix is needed? **
291291
field: language
@@ -308,16 +308,16 @@ fields:
308308
field: page_title
309309
show if:
310310
code: |
311-
not question_id
311+
not question_id
312312
- When should this fix be implemented?: maturity_level
313313
code: maturity_levels
314314
show if:
315315
code: |
316-
get_config('debug')
316+
get_config("debug")
317317
- Who are you? Just tell us your name or github username, not email. This will be public.: user_contact_info
318318
show if:
319319
code: |
320-
get_config('debug')
320+
get_config("debug")
321321
- label: |
322322
**What logic fix is needed? **
323323
field: logic
@@ -338,11 +338,11 @@ fields:
338338
code: maturity_levels
339339
show if:
340340
code: |
341-
get_config('debug')
341+
get_config("debug")
342342
- Who are you? Just tell us your name or github username, not email. This will be public.: user_contact_info
343343
show if:
344344
code: |
345-
get_config('debug')
345+
get_config("debug")
346346
- label: |
347347
**What enhancement do you propose? **
348348
field: enhancement

0 commit comments

Comments
 (0)