Skip to content

Commit

Permalink
chore(deps): update deps with minor upgrades to v6.1.0 (#218)
Browse files Browse the repository at this point in the history
* chore(deps): update deps with minor upgrades to v6.1.0

* Satisfy new pre-commit rule

* Remove type annotation for removed parameter (Unrelated)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: kieferro <81773954+kieferro@users.noreply.github.com>
  • Loading branch information
renovate[bot] and kieferro authored Jul 29, 2023
1 parent fdf2f2d commit 65de176
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: "6.0.0"
rev: "6.1.0"
hooks:
- id: flake8

Expand Down
2 changes: 0 additions & 2 deletions coverage_comment/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ def commit_operations(
Git actor
branch : str
branch on which to store the files
initial_file : files.Operation
In case the branch didn't exist, initialize it with this initial file.
"""
with checked_out_branch(git=git, branch=branch):
for op in operations:
Expand Down
2 changes: 1 addition & 1 deletion coverage_comment/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def read_template_file(template: str) -> str:


def pct(val: decimal.Decimal | float) -> str:
if type(val) == decimal.Decimal:
if isinstance(val, decimal.Decimal):
val *= decimal.Decimal("100")
return f"{val.quantize(decimal.Decimal('0.01'), rounding=decimal.ROUND_DOWN).normalize():f}%"
else:
Expand Down
26 changes: 13 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 65de176

Please sign in to comment.