Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Decouple parsing the taxonomy and writing the taxonomy to the database #317

Merged
merged 12 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.9"
services:
neo4j:
restart: ${RESTART_POLICY:-no}
image: neo4j:5.3.0-community
image: neo4j:5.14.0-community
ports:
# admin console
- "${NEO4J_ADMIN_EXPOSE:-127.0.0.1:7474}:7474"
Expand Down
2 changes: 1 addition & 1 deletion parser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ quality:

tests:
cd .. && docker compose up -d neo4j
pytest .
poetry run pytest .
# we do not shutdown neo4j

checks: quality tests
2 changes: 1 addition & 1 deletion parser/openfoodfacts_taxonomy_parser/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import unidecode


def normalizing(line, lang="default", char="-"):
def normalizing(line: str, lang="default", char="-"):
"""Normalize a string depending on the language code"""
line = unicodedata.normalize("NFC", line)

Expand Down
Loading