Skip to content

Conversation

@hannahTao
Copy link

…ded JSON files for testing

@mergify
Copy link

mergify bot commented Oct 15, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 Enforce conventional commit

This rule is failing.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|release)(?:\(.+\))?:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both this file and the case metadata used for testing should be moved into the test/ directory.


def is_appellate_court(court_name):
lowered_name = court_name.lower()
exceptions = ["pennsylvania superior court", "pennsylvania commonwealth court"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please document this. Why are these exceptions and how are they handled?



def get_court_from_case(case_name, folder_path):
files = os.listdir(folder_path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Operate over strings, not files, in the stdlib.

Copy link
Contributor

@jakelorocco jakelorocco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hannahTao; can you please make sure you also have the pre-commit hooks installed. You should just need to run pre-commit install (maybe uv pip install pre-commit first as well). You should see some issues when committing because we have requirements for docstrings and things like that.

For your case metadata, this should also be moved to the test directory. However, can you please move it to test/data/legal/nj_case_metadata/*?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants