Skip to content

Commit

Permalink
Merge pull request #220 from ssciwr/add_actinlint
Browse files Browse the repository at this point in the history
add actionlint pre-commit hook to lint github action workflows
  • Loading branch information
lkeegan committed Jun 20, 2023
2 parents 1649b3c + f33927e commit c37c276
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion tests/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c37c276

Please sign in to comment.