Skip to content

Commit 8476cdc

Browse files
committed
[ci] Update linters
1 parent d59c43c commit 8476cdc

File tree

7 files changed

+19
-16
lines changed

7 files changed

+19
-16
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
repos:
22
- repo: https://github.com/pycqa/isort
3-
rev: 5.12.0
3+
rev: 5.13.2
44
hooks:
55
- id: isort
66
- repo: https://github.com/asottile/yesqa
77
rev: v1.5.0
88
hooks:
99
- id: yesqa
1010
- repo: https://github.com/asottile/pyupgrade
11-
rev: v3.15.0
11+
rev: v3.15.2
1212
hooks:
1313
- id: pyupgrade
1414
args: ["--py38-plus"]
1515
- repo: https://github.com/ambv/black
16-
rev: 23.11.0
16+
rev: 24.4.2
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/pycqa/flake8
20-
rev: 6.1.0
20+
rev: 7.0.0
2121
hooks:
2222
- id: flake8
2323
- repo: https://github.com/pre-commit/pre-commit-hooks
24-
rev: v4.5.0
24+
rev: v4.6.0
2525
hooks:
2626
- id: check-added-large-files
2727
- id: check-ast
@@ -41,12 +41,12 @@ repos:
4141
- id: requirements-txt-fixer
4242
- id: trailing-whitespace
4343
- repo: https://github.com/codespell-project/codespell
44-
rev: v2.2.6
44+
rev: v2.3.0
4545
hooks:
4646
- id: codespell
4747
exclude_types: [json]
4848
- repo: https://github.com/marco-c/taskcluster_yml_validator
49-
rev: v0.0.10
49+
rev: v0.0.11
5050
hooks:
5151
- id: taskcluster_yml
5252
- repo: https://github.com/MozillaSecurity/orion-ci

src/ffpuppet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"""FFPuppet module"""
21
# This Source Code Form is subject to the terms of the Mozilla Public
32
# License, v. 2.0. If a copy of the MPL was not distributed with this
43
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
"""FFPuppet module"""
55

66
from .core import Debugger, FFPuppet, Reason
77
from .exceptions import (

src/ffpuppet/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"""FFPuppet module main"""
21
# This Source Code Form is subject to the terms of the Mozilla Public
32
# License, v. 2.0. If a copy of the MPL was not distributed with this
43
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
"""FFPuppet module main"""
55

66
from .main import main
77

src/ffpuppet/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,9 @@ def launch(
776776
stdout=self._logs.get_fp("stdout"),
777777
)
778778
self._proc_tree = ProcessTree(proc)
779-
if memory_limit and is_windows:
779+
if (
780+
memory_limit and is_windows
781+
): # pylint: disable=possibly-used-before-assignment
780782
LOG.debug("configuring job object")
781783
# pylint: disable=no-member,protected-access
782784
config_job_object(

src/ffpuppet/job_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
THREAD_SUSPEND_RESUME = 0x0002
1717

18-
__all__ = ("config_job_object",)
18+
__all__ = ("config_job_object", "resume_suspended_process")
1919
__author__ = "Jesse Schwartzentruber"
2020

2121
LOG = getLogger(__name__)

src/ffpuppet/test_job_object.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def test_job_object_01():
2121
"""test config_job_object() set limit higher than usage"""
2222
with Popen([executable, "-c", "input()"], stdin=PIPE, stderr=PIPE) as proc:
23-
# pylint: disable=no-member,protected-access
23+
# pylint: disable=no-member,protected-access,possibly-used-before-assignment
2424
config_job_object(proc._handle, 1024 * 1024 * 1024)
2525
proc.communicate(input=b"a", timeout=10)
2626
assert proc.wait(10) == 0
@@ -33,7 +33,7 @@ def test_job_object_02():
3333
stdin=PIPE,
3434
stderr=PIPE,
3535
) as proc:
36-
# pylint: disable=no-member,protected-access
36+
# pylint: disable=no-member,protected-access,possibly-used-before-assignment
3737
config_job_object(proc._handle, 32 * 1024 * 1024)
3838
_, err = proc.communicate(input=b"a", timeout=10)
3939
assert proc.wait(10) == 1
@@ -53,12 +53,13 @@ def test_thread_resume():
5353
"run([sys.executable, '-c', "
5454
"\"input(); a = ['A' * 1024 * 1024 for _ in range(50)]\"], check=True)",
5555
],
56+
# pylint: disable=possibly-used-before-assignment
5657
creationflags=CREATE_SUSPENDED,
5758
stdin=PIPE,
5859
stderr=PIPE,
5960
) as proc:
6061
sleep(0.1)
61-
# pylint: disable=no-member,protected-access
62+
# pylint: disable=no-member,protected-access,possibly-used-before-assignment
6263
config_job_object(proc._handle, 32 * 1024 * 1024)
6364
resume_suspended_process(proc.pid)
6465
_, err = proc.communicate(input=b"a", timeout=10)

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ skip_install = true
4141
commands =
4242
mypy --install-types --non-interactive {posargs}
4343
deps =
44-
mypy==v1.7.1
44+
mypy==v1.10.0
4545
usedevelop = true
4646

4747
[testenv:pylint]
4848
commands =
4949
pylint -j 0 {posargs}
5050
deps =
51-
pylint==3.0.2
51+
pylint==3.2.3
5252
pytest-mock
5353
usedevelop = true
5454

0 commit comments

Comments
 (0)