Skip to content

Commit

Permalink
[ci] Update linters
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Sep 4, 2024
1 parent 7403b1c commit 7416fce
Show file tree
Hide file tree
Showing 5 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
Expand Up @@ -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.3
hooks:
- id: ruff
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/ffpuppet/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _benign_sanitizer_report(self, report: Path) -> bool:

def _crashreports(
self, skip_md: bool = False, skip_benign: bool = True
) -> Generator[Path, None, None]:
) -> Generator[Path]:
"""Collect crash logs/reports.
Args:
Expand Down Expand Up @@ -587,7 +587,7 @@ def close(self, force_close: bool = False) -> None:
LOG.debug("reason code: %s", r_code.name)
self.reason = r_code

def cpu_usage(self) -> Generator[tuple[int, float], None, None]:
def cpu_usage(self) -> Generator[tuple[int, float]]:
"""Collect percentage of CPU usage per process.
Args:
Expand Down
2 changes: 1 addition & 1 deletion src/ffpuppet/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def certutil_find(browser_bin: Path | None = None) -> str:
return CERTUTIL


def files_in_use(files: Iterable[Path]) -> Generator[tuple[Path, int, str], None, None]:
def files_in_use(files: Iterable[Path]) -> Generator[tuple[Path, int, str]]:
"""Check if any of the given files are open.
WARNING: This can be slow on Windows.
Expand Down
2 changes: 1 addition & 1 deletion src/ffpuppet/process_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(self, proc: Popen[bytes]) -> None:
self._proc = proc
self.parent: Process = Process(proc.pid)

def cpu_usage(self) -> Generator[tuple[int, float], None, None]:
def cpu_usage(self) -> Generator[tuple[int, float]]:
"""Collect percentage of CPU usage per process.
Note: the returned value can be > 100.0 in case of a process running multiple
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.10.0
mypy==v1.11.2
usedevelop = true

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

Expand Down

0 comments on commit 7416fce

Please sign in to comment.