diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94a0631..6e10e4a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.10.0 + rev: v2.12.0 hooks: - id: pyupgrade args: ["--py36-plus"] @@ -12,12 +12,12 @@ repos: args: ["--target-version", "py36"] - repo: https://github.com/PyCQA/isort - rev: 5.7.0 + rev: 5.8.0 hooks: - id: isort - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 + - repo: https://github.com/PyCQA/flake8 + rev: 3.9.0 hooks: - id: flake8 additional_dependencies: [flake8-2020, flake8-implicit-str-concat] diff --git a/tests/benchmark.py b/tests/benchmark.py index 8f41f7d..43ac31e 100644 --- a/tests/benchmark.py +++ b/tests/benchmark.py @@ -112,7 +112,7 @@ def results_output_table(): columns[0] = " encode".ljust(column_widths[0] + 2) for i, library in enumerate(LIBRARIES): if library in encodes: - columns[i + 1] = "{:,.0f} ".format(encodes[library]).rjust( + columns[i + 1] = f"{encodes[library]:,.0f} ".rjust( column_widths[i + 1] + 2 ) else: @@ -125,7 +125,7 @@ def results_output_table(): columns[0] = " decode".ljust(column_widths[0] + 2) for i, library in enumerate(LIBRARIES): if library in decodes: - columns[i + 1] = "{:,.0f} ".format(decodes[library]).rjust( + columns[i + 1] = f"{decodes[library]:,.0f} ".rjust( column_widths[i + 1] + 2 ) else: