Skip to content

Commit

Permalink
Update linters and minor versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwartzentruber committed Feb 11, 2025
1 parent e0524cc commit e08051e
Show file tree
Hide file tree
Showing 86 changed files with 142 additions and 64 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 6.0.0
hooks:
- id: isort
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: ['--py38-plus']
- repo: https://github.com/ambv/black
rev: 23.11.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/jschwartzentruber/taskcluster_yml_validator
rev: v0.0.11b
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.12
hooks:
- id: taskcluster_yml
- repo: meta
Expand All @@ -34,4 +34,4 @@ repos:
entry: bash -c 'cd server/frontend && npm run lint'
language: system
files: ^server/frontend/.*\.(js|mjs|cjs|vue)$
stages: [ commit ]
stages: [ commit ]
4 changes: 4 additions & 0 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ tasks:
version: "3.12"
env:
TOXENV: py312
- name: tests python 3.13 (no django)
version: "3.13"
env:
TOXENV: py313
- name: linting
version: "3.9"
script:
Expand Down
1 change: 1 addition & 0 deletions Collector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@contact: [email protected]
"""

import sys

from .Collector import main
Expand Down
5 changes: 3 additions & 2 deletions Collector/tests/test_Collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import json
import os
import platform
Expand Down Expand Up @@ -266,7 +267,7 @@ class response_t: # noqa
with outzip_path.open("r+b") as fp:
# corrupt the CRC field for the signature file in the zip
fp.seek(0x42)
fp.write(b"\xFF")
fp.write(b"\xff")
with outzip_path.open("rb") as fp:

class response_t: # noqa
Expand Down Expand Up @@ -344,7 +345,7 @@ class response2_t:
status_code = requests.codes["ok"]
headers = {"content-disposition": "foo"}
text = "OK"
content = b"testcase\xFF"
content = b"testcase\xff"

# myget1 mocks requests.get to return the rest response to the crashentry get
def myget1(url, headers=None):
Expand Down
1 change: 1 addition & 0 deletions CovReporter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@contact: [email protected]
"""

import sys

from .CovReporter import main
Expand Down
1 change: 1 addition & 0 deletions CovReporter/tests/test_CovReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import json
import os
import tempfile
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ USER node
WORKDIR /src

RUN npm install
RUN npm run production
RUN npm run build

FROM python:3.10-alpine as backend

Expand Down
1 change: 1 addition & 0 deletions EC2Reporter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@contact: [email protected]
"""

import sys

from .EC2Reporter import main
Expand Down
1 change: 1 addition & 0 deletions FTB/ConfigurationFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@contact: [email protected]
"""

import configparser
import sys

Expand Down
1 change: 1 addition & 0 deletions FTB/CoverageHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import re


Expand Down
1 change: 1 addition & 0 deletions FTB/ProgramConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@contact: [email protected]
"""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions FTB/Running/AutoRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@contact: [email protected]
"""

import os
import re
import shutil
Expand Down
1 change: 1 addition & 0 deletions FTB/Running/PersistentApplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@contact: [email protected]
"""

import os
import queue
import signal
Expand Down
1 change: 1 addition & 0 deletions FTB/Running/StreamCollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import queue
import threading

Expand Down
1 change: 1 addition & 0 deletions FTB/Running/WaitpidMonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@contact: [email protected]
"""

import os
import threading

Expand Down
1 change: 1 addition & 0 deletions FTB/Running/tests/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import os
import signal
import sys
Expand Down
1 change: 1 addition & 0 deletions FTB/Signatures/CrashInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@contact: [email protected]
"""

import json
import os
import re
Expand Down
1 change: 1 addition & 0 deletions FTB/Signatures/JSONHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@contact: [email protected]
"""

import numbers


Expand Down
1 change: 1 addition & 0 deletions FTB/Signatures/Matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@contact: [email protected]
"""

import numbers
import re
from abc import ABCMeta, abstractmethod
Expand Down
1 change: 1 addition & 0 deletions FTB/Signatures/Symptom.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@contact: [email protected]
"""

import json
from abc import ABCMeta, abstractmethod

Expand Down
1 change: 1 addition & 0 deletions FTB/Signatures/tests/test_CrashInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import json
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions FTB/Signatures/tests/test_CrashSignature.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@author: decoder
"""

import json
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions FTB/tests/test_AssertionHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import re
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions FTB/tests/test_CoverageHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import json

from FTB import CoverageHelper
Expand Down
1 change: 1 addition & 0 deletions Reporter/Reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import functools
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions TaskStatusReporter/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@contact: [email protected]
"""

import sys

from .TaskStatusReporter import main
Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,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/.
"""

import importlib
import sys

Expand Down
1 change: 1 addition & 0 deletions misc/afl-libfuzzer/S3Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@contact: [email protected]
"""

import hashlib
import os
import platform
Expand Down
1 change: 0 additions & 1 deletion misc/update_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
p3.2xlarge,m4.2xlarge,f1.2xlarge,h1.2xlarge,x1e.2xlarge,m5d.2xlarge,t2.2xlarge
"""


import json
import sys

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools >= 43", "wheel", "setuptools_scm[toml] >= 3.4"]
build-backend = "setuptools.build_meta"

[tool.black]
target-version = ["py38"]
target-version = ["py39"]

[tool.coverage.report]
exclude_lines = [
Expand Down
Loading

1 comment on commit e08051e

@community-tc-integration
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh oh! Looks like an error!

Taskcluster-GitHub attempted to create a task for this event with the following scopes:

["assume:repo:github.com/MozillaSecurity/FuzzManager-dev:branch:master","queue:route:statuses","queue:scheduler-id:taskcluster-github"]

The expansion of these scopes is not sufficient to create the task, leading to the following:

Client ID static/taskcluster/github does not have sufficient scopes and is missing the following scopes:

docker-worker:capability:privileged

This request requires the client to satisfy the following scope expression:

{
  "AllOf": [
    "docker-worker:capability:privileged",
    "queue:route:statuses",
    "queue:create-task:project:none",
    "queue:scheduler-id:taskcluster-github",
    {
      "AnyOf": [
        "queue:create-task:highest:proj-fuzzing/ci",
        "queue:create-task:very-high:proj-fuzzing/ci",
        "queue:create-task:high:proj-fuzzing/ci",
        "queue:create-task:medium:proj-fuzzing/ci",
        "queue:create-task:low:proj-fuzzing/ci",
        "queue:create-task:very-low:proj-fuzzing/ci",
        "queue:create-task:lowest:proj-fuzzing/ci"
      ]
    }
  ]
}

  • method: createTask
  • errorCode: InsufficientScopes
  • statusCode: 403
  • time: 2025-02-12T22:28:15.359Z

Please sign in to comment.