Skip to content

Commit

Permalink
Merge pull request #5 from theislab/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
xinyuejohn authored Feb 15, 2024
2 parents 0740457 + ad9862d commit 4ab4cd7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
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

0 comments on commit 4ab4cd7

Please sign in to comment.