Skip to content

Commit

Permalink
fix ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Jul 24, 2024
1 parent 666090d commit a52d16f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
rev: v0.5.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pre-commit = "^2.20.0"
jupyterlab = "^4.2.3"
ipykernel = "^6.29.4"
ipywidgets = "^8.1.2"
ruff = "^0.5.2"
ruff = "^0.5.4"
graphviz = "^0.20.3"
pytest-xdist = "^3.6.1"
onnxruntime = "^1.17.1"
Expand Down
4 changes: 2 additions & 2 deletions src/hssm/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ def show_defaults(model: SupportedModels, loglik_kind=Optional[LoglikKind]) -> s
output += _show_defaults_helper(model, loglik_kind)

else:
for loglik_kind in model_config["likelihoods"].keys():
output += _show_defaults_helper(model, loglik_kind)
for loglik_kind_ in model_config["likelihoods"]:
output += _show_defaults_helper(model, loglik_kind_)
output.append("")

output = output[:-1]
Expand Down

0 comments on commit a52d16f

Please sign in to comment.