Skip to content

Commit

Permalink
Add pandas as web dependency (#1235)
Browse files Browse the repository at this point in the history
Fixes #1234. More generally, since the web app imports from the cli
which in turn imports the linting code, dependencies for linting need to
be available in the Docker.
  • Loading branch information
bgyori authored Oct 28, 2024
1 parent 9310403 commit 7c5b9c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bioregistry/lint.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Linting functions."""

import click
import pandas as pd

from bioregistry.constants import CURATED_PAPERS_PATH
from bioregistry.schema import Publication
Expand Down Expand Up @@ -36,6 +35,9 @@ def lint():
read_contexts,
):
read_resource_func.cache_clear()
# Import here to avoid dependency in the context of
# web app / Docker
import pandas as pd

registry = read_registry()
for resource in registry.values():
Expand Down

0 comments on commit 7c5b9c3

Please sign in to comment.