Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1712)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v2.3.0 → v4.3.0](pre-commit/pre-commit-hooks@v2.3.0...v4.3.0)
- [github.com/psf/black: 21.9b0 → 22.8.0](psf/black@21.9b0...22.8.0)
- [github.com/pycqa/isort: 5.9.3 → 5.10.1](PyCQA/isort@5.9.3...5.10.1)
- [github.com/alessandrojcm/commitlint-pre-commit-hook: v2.2.0 → v9.1.0](alessandrojcm/commitlint-pre-commit-hook@v2.2.0...v9.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Sep 13, 2022
1 parent c5ab270 commit a9076dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [text, jupyter]
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 21.9b0
rev: 22.8.0
hooks:
- id: black
additional_dependencies: ['click==8.0.4']

- repo: https://github.com/pycqa/isort
rev: 5.9.3
rev: 5.10.1
hooks:
- id: isort

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.0
rev: v9.1.0
hooks:
- id: commitlint
stages: [commit-msg]
Expand Down
12 changes: 6 additions & 6 deletions src/rubrix/server/services/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@

def size(bytes):
system = [
(1024 ** 5, "P"),
(1024 ** 4, "T"),
(1024 ** 3, "G"),
(1024 ** 2, "M"),
(1024 ** 1, "K"),
(1024 ** 0, "B"),
(1024**5, "P"),
(1024**4, "T"),
(1024**3, "G"),
(1024**2, "M"),
(1024**1, "K"),
(1024**0, "B"),
]

factor, suffix = None, None
Expand Down

0 comments on commit a9076dc

Please sign in to comment.