Skip to content

Commit

Permalink
New signature for check
Browse files Browse the repository at this point in the history
  • Loading branch information
timgates42 committed Jan 24, 2020
1 parent 8a0c828 commit 51499f5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion app/meticulous/_process.py
Expand Up @@ -28,6 +28,13 @@
from meticulous._storage import get_json_value, prepare, set_json_value


def get_spelling_store_path(target):
"""
DB to store spelling stats
"""
return target / ".meticulous" / "spelling.db"


def make_simple_choice(choices, message="What do you want to do?"):
"""
Make a choice using a simple {key: key} list of choices
Expand Down Expand Up @@ -499,7 +506,13 @@ def add_one_new_repo(target):
print(f"Spelling output {spellpath}")
with io.open(spellpath, "w", encoding="utf-8") as fobj:
os.chdir(repodir)
check(True, True, None, fobj)
check(
display_context=True,
display_summary=True,
config=None,
storage_path=get_spelling_store_path(target),
fobj=fobj,
)
repository_map = get_json_value("repository_map", {})
repository_map[repo] = str(repodir)
set_json_value("repository_map", repository_map)
Expand Down

0 comments on commit 51499f5

Please sign in to comment.