Skip to content

Commit e08051e

Browse files
Update linters and minor versions
1 parent e0524cc commit e08051e

File tree

86 files changed

+142
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+142
-64
lines changed

.pre-commit-config.yaml

+7-7
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: 6.0.0
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.19.1
1212
hooks:
1313
- id: pyupgrade
1414
args: ['--py38-plus']
1515
- repo: https://github.com/ambv/black
16-
rev: 23.11.0
16+
rev: 25.1.0
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/pycqa/flake8
20-
rev: 6.1.0
20+
rev: 7.1.1
2121
hooks:
2222
- id: flake8
23-
- repo: https://github.com/jschwartzentruber/taskcluster_yml_validator
24-
rev: v0.0.11b
23+
- repo: https://github.com/marco-c/taskcluster_yml_validator
24+
rev: v0.0.12
2525
hooks:
2626
- id: taskcluster_yml
2727
- repo: meta
@@ -34,4 +34,4 @@ repos:
3434
entry: bash -c 'cd server/frontend && npm run lint'
3535
language: system
3636
files: ^server/frontend/.*\.(js|mjs|cjs|vue)$
37-
stages: [ commit ]
37+
stages: [ commit ]

.taskcluster.yml

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ tasks:
6666
version: "3.12"
6767
env:
6868
TOXENV: py312
69+
- name: tests python 3.13 (no django)
70+
version: "3.13"
71+
env:
72+
TOXENV: py313
6973
- name: linting
7074
version: "3.9"
7175
script:

Collector/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@contact: choller@mozilla.com
1616
"""
17+
1718
import sys
1819

1920
from .Collector import main

Collector/tests/test_Collector.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import json
1516
import os
1617
import platform
@@ -266,7 +267,7 @@ class response_t: # noqa
266267
with outzip_path.open("r+b") as fp:
267268
# corrupt the CRC field for the signature file in the zip
268269
fp.seek(0x42)
269-
fp.write(b"\xFF")
270+
fp.write(b"\xff")
270271
with outzip_path.open("rb") as fp:
271272

272273
class response_t: # noqa
@@ -344,7 +345,7 @@ class response2_t:
344345
status_code = requests.codes["ok"]
345346
headers = {"content-disposition": "foo"}
346347
text = "OK"
347-
content = b"testcase\xFF"
348+
content = b"testcase\xff"
348349

349350
# myget1 mocks requests.get to return the rest response to the crashentry get
350351
def myget1(url, headers=None):

CovReporter/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@contact: choller@mozilla.com
1616
"""
17+
1718
import sys
1819

1920
from .CovReporter import main

CovReporter/tests/test_CovReporter.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import json
1516
import os
1617
import tempfile

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USER node
66
WORKDIR /src
77

88
RUN npm install
9-
RUN npm run production
9+
RUN npm run build
1010

1111
FROM python:3.10-alpine as backend
1212

EC2Reporter/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@contact: choller@mozilla.com
1616
"""
17+
1718
import sys
1819

1920
from .EC2Reporter import main

FTB/ConfigurationFiles.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
@contact: choller@mozilla.com
1414
"""
15+
1516
import configparser
1617
import sys
1718

FTB/CoverageHelper.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import re
1516

1617

FTB/ProgramConfiguration.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@contact: choller@mozilla.com
1616
"""
17+
1718
import os
1819
import sys
1920

FTB/Running/AutoRunner.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
@contact: choller@mozilla.com
1414
"""
15+
1516
import os
1617
import re
1718
import shutil

FTB/Running/PersistentApplication.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
1818
@contact: choller@mozilla.com
1919
"""
20+
2021
import os
2122
import queue
2223
import signal

FTB/Running/StreamCollector.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import queue
1516
import threading
1617

FTB/Running/WaitpidMonitor.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
@contact: choller@mozilla.com
1414
"""
15+
1516
import os
1617
import threading
1718

FTB/Running/tests/test_shell.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import os
1516
import signal
1617
import sys

FTB/Signatures/CrashInfo.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@contact: choller@mozilla.com
1616
"""
17+
1718
import json
1819
import os
1920
import re

FTB/Signatures/JSONHelper.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1414
@contact: choller@mozilla.com
1515
"""
16+
1617
import numbers
1718

1819

FTB/Signatures/Matchers.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1414
@contact: choller@mozilla.com
1515
"""
16+
1617
import numbers
1718
import re
1819
from abc import ABCMeta, abstractmethod

FTB/Signatures/Symptom.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1414
@contact: choller@mozilla.com
1515
"""
16+
1617
import json
1718
from abc import ABCMeta, abstractmethod
1819

FTB/Signatures/tests/test_CrashInfo.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import json
1516
from pathlib import Path
1617

FTB/Signatures/tests/test_CrashSignature.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
@author: decoder
55
"""
6+
67
import json
78
from pathlib import Path
89

FTB/tests/test_AssertionHelper.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import re
1516
from pathlib import Path
1617

FTB/tests/test_CoverageHelper.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import json
1516

1617
from FTB import CoverageHelper

Reporter/Reporter.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import functools
1516
import logging
1617
import os

TaskStatusReporter/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@contact: jschwartzentruber@mozilla.com
1616
"""
17+
1718
import sys
1819

1920
from .TaskStatusReporter import main

conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
License, v. 2.0. If a copy of the MPL was not distributed with this
99
file, You can obtain one at http://mozilla.org/MPL/2.0/.
1010
"""
11+
1112
import importlib
1213
import sys
1314

misc/afl-libfuzzer/S3Manager.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
@contact: choller@mozilla.com
1313
"""
14+
1415
import hashlib
1516
import os
1617
import platform

misc/update_prices.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
p3.2xlarge,m4.2xlarge,f1.2xlarge,h1.2xlarge,x1e.2xlarge,m5d.2xlarge,t2.2xlarge
1111
"""
1212

13-
1413
import json
1514
import sys
1615

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools >= 43", "wheel", "setuptools_scm[toml] >= 3.4"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.black]
6-
target-version = ["py38"]
6+
target-version = ["py39"]
77

88
[tool.coverage.report]
99
exclude_lines = [

0 commit comments

Comments
 (0)