From b9314cd00e4d5123ae598e7a87bf4a0aefdb6636 Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Thu, 18 Jun 2026 16:41:19 -0400 Subject: [PATCH] Initial DABuild + interview walkthrough Mostly changing easy language changes and things DABuild found that are wrong / should be fixed. --- .../data/questions/small_claims.yml | 17 +++--- pyproject.toml | 6 +- setup.py | 59 ------------------- 3 files changed, 15 insertions(+), 67 deletions(-) delete mode 100644 setup.py diff --git a/docassemble/MATCSmallClaims/data/questions/small_claims.yml b/docassemble/MATCSmallClaims/data/questions/small_claims.yml index 59ef8df..2d9f8d7 100644 --- a/docassemble/MATCSmallClaims/data/questions/small_claims.yml +++ b/docassemble/MATCSmallClaims/data/questions/small_claims.yml @@ -317,11 +317,11 @@ question: | fields: - code: | attorneys[i].name_fields() - - "BBO number": attorneys[i].bbo_number + - "BBO number (required)": attorneys[i].bbo_number maxlength: 6 required: True under text: | - [Click here](https://www.massbbo.org/bbolookup.php) to look up your BBO number. + [Visit the Board of Bar Overseers site](https://www.massbbo.org/bbolookup.php) to look up your BBO number. --- sets: - attorneys[i].address.address @@ -355,7 +355,7 @@ subquestion: | fields: - Phone: attorneys[i].phone_number required: False - - Email: attorneys[i].email + - "Email (required)": attorneys[i].email required: True validation code: | if not attorneys[i].email and not attorneys[i].phone_number: @@ -703,7 +703,7 @@ mandatory: True question: | Would you consider mediation to resolve your case? subquestion: | - ${collapse_template(mediation_template)} + ${collapse_template(mediation_template)} fields: - "Would you like to try mediation?": plaintiffs1_willing_to_mediate datatype: yesnoradio @@ -711,9 +711,9 @@ fields: template: mediation_template subject: What is mediation? content: | - - Mediation is a way to settle your small claim without going to trial. - - During mediation, the parties in a lawsuit sit down with a neutral person, called a mediator, to talk out a solution to their legal problem. - - If you try mediation and it doesn't resolve your claim, you may still take your claim to trial later. + - Mediation is a way to settle your small claim without going to trial. + - During mediation, the parties in a lawsuit sit down with a neutral person, called a mediator, to talk out a solution to their legal problem. + - If you try mediation and it doesn't resolve your claim, you may still take your claim to trial later. --- sets: @@ -1065,6 +1065,7 @@ review: ${ signature_date } --- continue button field: users.revisit +id: edit plaintiffs question: | Edit plaintiffs subquestion: | @@ -1091,6 +1092,7 @@ edit: confirm: True --- continue button field: attorneys.revisit +id: edit attorneys question: | Edit attorneys subquestion: | @@ -1119,6 +1121,7 @@ edit: confirm: True --- continue button field: defendants.revisit +id: edit defendants question: | Edit defendants subquestion: | diff --git a/pyproject.toml b/pyproject.toml index 781ca45..8969ea0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,11 @@ authors = [ { name = "Suffolk Legal Innovation & Technology Lab (LIT Lab)", email = "litlab@suffolk.edu" }, ] dependencies = [ - "docassemble.AssemblyLine @ git+https://github.com/SuffolkLITLab/docassemble-AssemblyLine.git@main", + "docassemble.AssemblyLine", + "docassemble.MassAccess", + "docassemble.MATCTheme", + "docassemble.ALAffidavitOfIndigency", + "docassemble.MATCMilitaryAffidavit @ git+https://github.com/SuffolkLITLab/docassemble-MATCMilitaryAffidavit.git@main" ] [project.urls] diff --git a/setup.py b/setup.py deleted file mode 100644 index 32b3566..0000000 --- a/setup.py +++ /dev/null @@ -1,59 +0,0 @@ -import os -import sys -from setuptools import setup, find_namespace_packages -from fnmatch import fnmatchcase -from distutils.util import convert_path - -standard_exclude = ('*.pyc', '*~', '.*', '*.bak', '*.swp*') -standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') - -def find_package_data(where='.', package='', exclude=standard_exclude, exclude_directories=standard_exclude_directories): - out = {} - stack = [(convert_path(where), '', package)] - while stack: - where, prefix, package = stack.pop(0) - for name in os.listdir(where): - fn = os.path.join(where, name) - if os.path.isdir(fn): - bad_name = False - for pattern in exclude_directories: - if (fnmatchcase(name, pattern) - or fn.lower() == pattern.lower()): - bad_name = True - break - if bad_name: - continue - if os.path.isfile(os.path.join(fn, '__init__.py')): - if not package: - new_package = name - else: - new_package = package + '.' + name - stack.append((fn, '', new_package)) - else: - stack.append((fn, prefix + name + '/', package)) - else: - bad_name = False - for pattern in exclude: - if (fnmatchcase(name, pattern) - or fn.lower() == pattern.lower()): - bad_name = True - break - if bad_name: - continue - out.setdefault(package, []).append(prefix+name) - return out - -setup(name='docassemble.MATCSmallClaims', - version='1.0', - description=('Massachusetts small claims complaint'), - long_description='# docassemble.SmallClaims\r\n\r\nSmall Claims\r\n\r\n## Authors\r\n\r\nNava Ebadollahi\r\nMark Marotta\r\nNicole Dimitri\r\nSam Glover\r\nAry Ascencio\r\n\r\n### Transfer Memo 2025\r\n[2024–25 Project Transfer Memo](handoff/transfer_memo_2025.md)\r\n', - long_description_content_type='text/markdown', - author='Suffolk Legal Innovation & Technology Lab (LIT Lab)', - author_email='litlab@suffolk.edu', - license='', - url='https://courtformsonline.org', - packages=find_namespace_packages(), - install_requires=['docassemble.AssemblyLine @ git+https://github.com/SuffolkLITLab/docassemble-AssemblyLine.git@main'], - zip_safe=False, - package_data=find_package_data(where='docassemble/MATCSmallClaims/', package='docassemble.MATCSmallClaims'), - )