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

chore(deps): update pre-commit hooks #873

Merged
merged 4 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ repos:
args: [--include-version-classifiers, --min-py3-version=3.7, --max-py-version=3.12]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.282"
rev: "v0.0.285"
henryiii marked this conversation as resolved.
Show resolved Hide resolved
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
rev: v1.5.1
hooks:
- id: mypy
files: ^src
Expand Down
4 changes: 1 addition & 3 deletions examples/simple_log_weight.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
for idx, (lower, upper) in enumerate(h.axes[0]):
val = h[idx]
print(
"bin {} [{:g}, {:g}): {} +/- {}".format(
idx, lower, upper, val.value, val.variance**0.5
)
f"bin {idx} [{lower:g}, {upper:g}): {val.value} +/- {val.variance**0.5}"
)

# under- and overflow bin
Expand Down