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 #5

Merged
merged 14 commits into from
Feb 15, 2024
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ default_stages:
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/psf/black
rev: "23.11.0"
rev: "24.2.0"
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
rev: v4.0.0-alpha.8
hooks:
- id: prettier
# Newer versions of node don't work on systems that have an older version of GLIBC
Expand All @@ -25,7 +25,7 @@ repos:
# https://github.com/jupyterlab/jupyterlab/issues/12675
language_version: "17.9.1"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.2.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
8 changes: 5 additions & 3 deletions ehrdata/io/_omop.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@ def from_dataframe(adata, feature: str, df):
# Creating the array more efficiently
ak_array = ak.Array(
[
grouped.get_group(visit_occurrence_id)[columns_in_ak_array].to_dict(orient="list")
if visit_occurrence_id in feature_ids
else empty_entry
(
grouped.get_group(visit_occurrence_id)[columns_in_ak_array].to_dict(orient="list")
if visit_occurrence_id in feature_ids
else empty_entry
)
for visit_occurrence_id in unique_visit_occurrence_ids
]
)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pytest

import ehrdata as ehr
import pytest


def test_package_has_version():
Expand Down
Loading