Skip to content

Commit

Permalink
style(FCL-343): run automated stylistic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonj04 committed Sep 26, 2024
1 parent 7072101 commit 0ad208e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/build_courts_list
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

from pathlib import Path

import yaml

print("Loading courts...")
Expand Down
4 changes: 3 additions & 1 deletion src/ds_caselaw_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from .courts import courts
from .neutral import neutral_url as neutral_url
from .neutral import neutral_url

__all__ = ["courts", "neutral_url"]
3 changes: 2 additions & 1 deletion src/ds_caselaw_utils/neutral.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import pathlib
import re
from typing import Optional

from ruamel.yaml import YAML

Expand All @@ -13,7 +14,7 @@
citation_data = yaml.load(f)


def neutral_url(citation):
def neutral_url(citation) -> Optional[str]:
"""Given a neutral citation such as `[2020] EAT 17`,
return a public-API URL like `/eat/2020/17`, or None
if no match is found.
Expand Down

0 comments on commit 0ad208e

Please sign in to comment.