Skip to content

Commit

Permalink
[ci] Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jul 7, 2023
1 parent 57be8fa commit a75a858
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ repos:
hooks:
- id: isort
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.8.0
hooks:
- id: pyupgrade
args: ['--py38-plus']
- repo: https://github.com/ambv/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down Expand Up @@ -41,16 +41,16 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.5
hooks:
- id: codespell
exclude_types: [json]
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.9
rev: v0.0.10
hooks:
- id: taskcluster_yml
- repo: https://github.com/MozillaSecurity/orion
rev: v0.0.6
rev: v0.0.7
hooks:
- id: orion_ci
- repo: meta
Expand Down
1 change: 0 additions & 1 deletion grizzly/common/fuzzmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def _get_results(endpoint, params=None):
for crash in _get_results(
"crashes", params={"query": query, "include_raw": "0"}
):

if not crash["testcase"]:
LOG.warning("crash %d has no testcase, skipping", crash["id"])
continue
Expand Down
1 change: 0 additions & 1 deletion grizzly/common/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ def __init__(
life_time=REPORTS_EXPIRE,
report_limit=0,
):

super().__init__(pid, start_time)
assert life_time >= 0
assert report_limit >= 0
Expand Down
2 changes: 1 addition & 1 deletion grizzly/reduce/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def run_reliability_analysis(self):
# N.B. We only use `last_test_only` if `len(self.testcases) > 1` ..
# if `self.testcases` only has 1 entry to begin with, we don't need
# `last_test_only` to trim it
for (use_harness, last_test_only) in (
for use_harness, last_test_only in (
(True, True),
(True, False),
# only one of the two use_harness=False cases will run:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ skip_install = true

[testenv:pylint]
commands =
pylint {posargs}
pylint -j 0 {posargs}
deps =
pylint==2.15.10
usedevelop = true
Expand Down

0 comments on commit a75a858

Please sign in to comment.