diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 26a30d99..5a980a61 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: - "prettier-plugin-toml" - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.23.1 + rev: 0.23.2 hooks: - id: check-github-workflows - id: check-readthedocs @@ -47,7 +47,7 @@ repos: ] - repo: https://github.com/asottile/reorder-python-imports - rev: v3.9.0 + rev: v3.10.0 hooks: - id: reorder-python-imports @@ -58,3 +58,8 @@ repos: args: - "--max-line-length=88" - "--ignore=E501,W503,E203" + + - repo: https://github.com/rhysd/actionlint + rev: "v1.6.25" + hooks: + - id: actionlint diff --git a/tests/test_stats.py b/tests/test_stats.py index 8e17eed8..090ba500 100644 --- a/tests/test_stats.py +++ b/tests/test_stats.py @@ -38,7 +38,7 @@ def test_data_df(experiment_with_results: Experiment) -> None: def test_stats_df(experiment_with_results: Experiment) -> None: df = vstt.stats.stats_dataframe(experiment_with_results.trial_handler_with_results) - assert np.alltrue(np.isnan(df.loc[df.condition_index == 1]["to_center_time"])) + assert np.all(np.isnan(df.loc[df.condition_index == 1]["to_center_time"])) for destination, stat_label_units in vstt.stats.list_dest_stat_label_units(): for stat, label, unit in stat_label_units: assert stat in df.columns