Skip to content

Commit

Permalink
ci: update linters
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jan 28, 2025
1 parent 6bd7891 commit a609967
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 29 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
rev: v0.9.3
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/ambv/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -29,12 +29,12 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.0
hooks:
- id: codespell
exclude_types: [json]
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.11
rev: v0.0.12
hooks:
- id: taskcluster_yml
- repo: https://github.com/MozillaSecurity/orion-ci
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ disable = [
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-positional-arguments",
"too-many-statements",
"unspecified-encoding",
]
Expand Down
4 changes: 2 additions & 2 deletions src/grizzly/common/fuzzmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class CrashEntry:
RAW_FIELDS = frozenset({"rawCrashData", "rawStderr", "rawStdout"})

__slots__ = (
"_crash_id",
"_coll",
"_contents",
"_crash_id",
"_data",
"_storage",
"_sig_filename",
"_storage",
"_url",
)

Expand Down
2 changes: 1 addition & 1 deletion src/grizzly/common/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .utils import iter_entry_points # type: ignore


__all__ = ("load_plugin", "scan_plugins", "PluginLoadError")
__all__ = ("PluginLoadError", "load_plugin", "scan_plugins")


LOG = getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/grizzly/common/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class Report:
__slots__ = (
"_crash_info",
"_logs",
"_signature",
"_short_signature",
"_signature",
"_target_binary",
"is_hang",
"path",
Expand Down
4 changes: 2 additions & 2 deletions src/grizzly/common/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ..target import Result, Target, TargetLaunchError, TargetLaunchTimeout
from .storage import TestCase

__all__ = ("Runner", "RunResult")
__all__ = ("RunResult", "Runner")
__author__ = "Tyson Smith"
__credits__ = ["Tyson Smith"]

Expand All @@ -34,7 +34,7 @@ class _IdleChecker:
has elapsed.
"""

__slots__ = ("_check_cb", "_init_delay", "_poll_delay", "_threshold", "_next_poll")
__slots__ = ("_check_cb", "_init_delay", "_next_poll", "_poll_delay", "_threshold")

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion src/grizzly/common/stack_hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def from_line(cls, input_line: str) -> ValgrindStackFrame | None:


class Stack:
__slots__ = ("frames", "_height_limit", "_major", "_major_depth", "_minor")
__slots__ = ("_height_limit", "_major", "_major_depth", "_minor", "frames")

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion src/grizzly/common/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from .reporter import FuzzManagerReporter

__all__ = ("ReadOnlyStatus", "ReductionStatus", "Status", "SimpleStatus")
__all__ = ("ReadOnlyStatus", "ReductionStatus", "SimpleStatus", "Status")
__author__ = "Tyson Smith"
__credits__ = ["Tyson Smith"]

Expand Down
8 changes: 4 additions & 4 deletions src/grizzly/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
from collections.abc import Generator, Iterable

__all__ = (
"DEFAULT_TIME_LIMIT",
"HARNESS_FILE",
"TIMEOUT_DELAY",
"ConfigError",
"Exit",
"configure_logging",
"display_time_limits",
"DEFAULT_TIME_LIMIT",
"Exit",
"grz_tmp",
"HARNESS_FILE",
"iter_entry_points",
"package_version",
"time_limits",
"TIMEOUT_DELAY",
)
__author__ = "Tyson Smith"
__credits__ = ["Tyson Smith"]
Expand Down
2 changes: 1 addition & 1 deletion src/grizzly/reduce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""Grizzly reducer module.
"""

__all__ = ("ReduceManager", "ReduceArgs")
__all__ = ("ReduceArgs", "ReduceManager")

from .args import ReduceArgs
from .core import ReduceManager
2 changes: 1 addition & 1 deletion src/grizzly/replay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

__all__ = ("ReplayManager", "ReplayArgs", "ReplayResult")
__all__ = ("ReplayArgs", "ReplayManager", "ReplayResult")

from .args import ReplayArgs
from .replay import ReplayManager, ReplayResult
10 changes: 5 additions & 5 deletions src/grizzly/replay/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ class ReplayResult:

class ReplayManager:
__slots__ = (
"ignore",
"server",
"status",
"target",
"_any_crash",
"_harness",
"_signature",
"_relaunch",
"_signature",
"_unpacked",
"ignore",
"server",
"status",
"target",
)

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion src/grizzly/target/puppet_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class PuppetTarget(Target):
"XPCOM_DEBUG_BREAK",
)

__slots__ = ("use_valgrind", "_debugger", "_extension", "_prefs", "_puppet")
__slots__ = ("_debugger", "_extension", "_prefs", "_puppet", "use_valgrind")

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion src/sapphire/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

__all__ = (
"BLOCKED_PORTS",
"create_listening_socket",
"Sapphire",
"create_listening_socket",
)
__author__ = "Tyson Smith"
__credits__ = ["Tyson Smith"]
Expand Down
2 changes: 1 addition & 1 deletion src/sapphire/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class Job:
"_pending",
"_served",
"_wwwroot",
"auto_close",
"accepting",
"auto_close",
"exceptions",
"forever",
"server_map",
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ skip_install = true
commands =
mypy --install-types --non-interactive {posargs}
deps =
mypy==v1.11.2
mypy==v1.14.1
usedevelop = true

[testenv:pylint]
commands =
pylint -j 0 {posargs}
deps =
pylint==3.2.7
pylint==3.3.3
usedevelop = true

[testenv:pypi]
Expand Down

0 comments on commit a609967

Please sign in to comment.