Skip to content

Commit

Permalink
Merge pull request #546 from Ktyby21/feature/add-numpydoc-hook
Browse files Browse the repository at this point in the history
Add numpydoc validation hook and fix f-string syntax
  • Loading branch information
andrewtavis authored Jan 8, 2025
2 parents 8073210 + dfbbcf7 commit 015b423
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
repos:
- repo: https://github.com/numpy/numpydoc
rev: v1.8.0
hooks:
- id: numpydoc-validation
files: ^src/
exclude: ^tests/

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand Down
4 changes: 2 additions & 2 deletions src/scribe_data/load/send_dbs_to_scribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@
)
language_db_dict["translation"]["full_path_to_scribe_ios_db"] = (
PATH_TO_SCRIBE_DATA_ROOT.parent
/ f"{language_db_dict["translation"]['scribe_ios_db_path']}"
/ f"{language_db_dict['translation']['scribe_ios_db_path']}"
)
language_db_dict["translation"]["scribe_android_db_path"] = (
get_android_data_path() / "TranslationData.sqlite"
)
language_db_dict["translation"]["full_path_to_scribe_android_db"] = (
PATH_TO_SCRIBE_DATA_ROOT.parent
/ f"{language_db_dict["translation"]['scribe_android_db_path']}"
/ f"{language_db_dict['translation']['scribe_android_db_path']}"
)

for language in language_db_dict:
Expand Down

0 comments on commit 015b423

Please sign in to comment.