From 5a0cc7747ec5a1f62082762f071872e2057afc42 Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Wed, 11 Sep 2024 13:17:21 -0700 Subject: [PATCH] [ci] Update linters --- .pre-commit-config.yaml | 8 ++++---- grizzly/args.py | 2 +- grizzly/common/status_reporter.py | 8 ++++---- tox.ini | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb06c1da..b0771b33 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,16 +4,16 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.16.0 hooks: - id: pyupgrade args: ['--py38-plus'] - repo: https://github.com/ambv/black - rev: 24.4.2 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.1 + rev: v0.6.4 hooks: - id: ruff - repo: https://github.com/pre-commit/pre-commit-hooks @@ -46,7 +46,7 @@ repos: hooks: - id: taskcluster_yml - repo: https://github.com/MozillaSecurity/orion-ci - rev: v0.0.8 + rev: v0.0.10 hooks: - id: orion_ci - repo: meta diff --git a/grizzly/args.py b/grizzly/args.py index 3d7f0734..e7b58885 100644 --- a/grizzly/args.py +++ b/grizzly/args.py @@ -283,7 +283,7 @@ def parse_args(self, argv: list[str] | None = None) -> Namespace: def sanity_check(self, args: Namespace) -> None: if not args.binary.is_file(): - self.parser.error(f"file not found: '{args.binary!s}'") + self.parser.error(f"file not found: '{args.binary}'") # fuzzmanager reporter related checks if args.fuzzmanager: diff --git a/grizzly/common/status_reporter.py b/grizzly/common/status_reporter.py index 0479a03b..65686b2b 100644 --- a/grizzly/common/status_reporter.py +++ b/grizzly/common/status_reporter.py @@ -905,11 +905,11 @@ def summary( ( str, # name # duration/successes/attempts are % of total/last - partial(_format_duration, total=report.total.duration), - partial(_format_number, total=report.total.successes), - partial(_format_number, total=report.total.attempts), + partial(_format_duration, total=report.total.duration or 0), + partial(_format_number, total=report.total.successes or 0), + partial(_format_number, total=report.total.attempts or 0), # size is % of init/1st - partial(_format_number, total=report.original.size), + partial(_format_number, total=report.original.size or 0), None, # iterations (hidden) ), ) diff --git a/tox.ini b/tox.ini index 999208e6..13ff94e6 100644 --- a/tox.ini +++ b/tox.ini @@ -41,14 +41,14 @@ skip_install = true commands = mypy --install-types --non-interactive {posargs} deps = - mypy==v1.10.0 + mypy==v1.11.2 usedevelop = true [testenv:pylint] commands = pylint -j 0 {posargs} deps = - pylint==3.2.3 + pylint==3.2.7 usedevelop = true [testenv:pypi]