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

[pre-commit.ci] pre-commit autoupdate #65

Merged
merged 5 commits into from
Jan 17, 2025
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.7.4'
rev: 'v0.9.1'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -25,7 +25,7 @@ repos:
types_or: [python, jupyter]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
entry: python3 -m mypy --config-file pyproject.toml
Expand Down
9 changes: 9 additions & 0 deletions cycquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@
from cycquery.mimiciii import MIMICIIIQuerier
from cycquery.mimiciv import MIMICIVQuerier
from cycquery.omop import OMOPQuerier

__all__ = [
"DatasetQuerier",
"EICUQuerier",
"GEMINIQuerier",
"MIMICIIIQuerier",
"MIMICIVQuerier",
"OMOPQuerier",
]
2 changes: 1 addition & 1 deletion cycquery/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
)
from cycquery.utils.log import setup_logging


# Logging.
LOGGER = logging.getLogger(__name__)
setup_logging(print_level="INFO", logger=LOGGER)
Expand Down Expand Up @@ -113,6 +112,7 @@ def __init__(
database: str = "",
schemas: Optional[List[str]] = None,
) -> None:
"""Initialize the querier."""
config = DatasetQuerierConfig(
database=database,
user=user,
Expand Down
1 change: 0 additions & 1 deletion cycquery/eicu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from cycquery.base import DatasetQuerier
from cycquery.utils.log import setup_logging


# Logging.
LOGGER = logging.getLogger(__name__)
setup_logging(print_level="INFO", logger=LOGGER)
Expand Down
1 change: 0 additions & 1 deletion cycquery/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from cycquery.interface import QueryInterface
from cycquery.utils.log import setup_logging


# Logging.
LOGGER = logging.getLogger(__name__)
setup_logging(print_level="INFO", logger=LOGGER)
Expand Down
1 change: 0 additions & 1 deletion cycquery/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from cycquery.utils.file import save_dataframe
from cycquery.utils.log import setup_logging


# Logging.
LOGGER = logging.getLogger(__name__)
setup_logging(print_level="INFO", logger=LOGGER)
Expand Down
1 change: 0 additions & 1 deletion cycquery/mimiciii.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from cycquery.interface import QueryInterface
from cycquery.utils.log import setup_logging


# Logging.
LOGGER = logging.getLogger(__name__)
setup_logging(print_level="INFO", logger=LOGGER)
Expand Down
1 change: 0 additions & 1 deletion cycquery/mimiciv.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from cycquery.util import get_column
from cycquery.utils.log import setup_logging


# Logging.
LOGGER = logging.getLogger(__name__)
setup_logging(print_level="INFO", logger=LOGGER)
Expand Down
2 changes: 1 addition & 1 deletion cycquery/omop.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from cycquery.utils.common import to_list
from cycquery.utils.log import setup_logging


# Logging.
LOGGER = logging.getLogger(__name__)
setup_logging(print_level="INFO", logger=LOGGER)
Expand Down Expand Up @@ -66,6 +65,7 @@ def __init__(
port: int = 5432,
schema_name: str = "omop",
) -> None:
"""Initialize OMOP querier."""
super().__init__(
database=database,
user=user,
Expand Down
Loading
Loading