Skip to content

Commit b576736

Browse files
committed
Update pre-commit repositories and fix some new linting issues
1 parent 91b5478 commit b576736

File tree

12 files changed

+8
-19
lines changed

12 files changed

+8
-19
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ repos:
44
hooks:
55
- id: isort
66
- repo: https://github.com/psf/black
7-
rev: 22.10.0
7+
rev: 23.9.1
88
hooks:
99
- id: black
1010
- repo: https://github.com/pycqa/flake8
11-
rev: 5.0.4
11+
rev: 6.1.0
1212
hooks:
1313
- id: flake8
1414
additional_dependencies:
1515
- "flake8-coding==1.3.2"
16-
- "flake8-copyright==0.2.3"
16+
- "flake8-copyright==0.2.4"
1717
- "flake8-debugger==4.1.2"
1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v4.4.0
19+
rev: v4.5.0
2020
hooks:
2121
- id: check-ast
2222
- id: check-docstring-first
@@ -33,21 +33,21 @@ repos:
3333
- id: requirements-txt-fixer
3434
- id: check-vcs-permalinks
3535
- repo: https://github.com/codespell-project/codespell
36-
rev: v2.2.2
36+
rev: v2.2.6
3737
hooks:
3838
- id: codespell
3939
exclude_types: [json]
4040
args: [-L connexion]
4141
- repo: https://github.com/marco-c/taskcluster_yml_validator
42-
rev: v0.0.9
42+
rev: v0.0.10
4343
hooks:
4444
- id: taskcluster_yml
4545
- repo: https://github.com/asottile/yesqa
46-
rev: v1.4.0
46+
rev: v1.5.0
4747
hooks:
4848
- id: yesqa
4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v0.991
50+
rev: v1.6.0
5151
hooks:
5252
- id: mypy
5353
name: mypy-backend

backend/code_coverage_backend/gcp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ def find_closest_report(
224224
if not os.path.exists(report.path):
225225
self.ingest_report(report)
226226
else:
227-
228227
# Lookup push from HGMO (slow)
229228
push_id, _ = hgmo_revision_details(repository, changeset)
230229

backend/code_coverage_backend/report.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def __repr__(self):
5151
return self.name
5252

5353
def __eq__(self, other):
54-
5554
return isinstance(other, Report) and (
5655
self.base_dir,
5756
self.repository,

backend/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ def _test_rev(request):
150150
return (200, headers, json.dumps(resp))
151151

152152
def _changesets(push_id):
153-
154153
# random changesets
155154
changesets = [uuid.uuid4().hex for _ in range(random.randint(2, 20))]
156155

bot/code_coverage_bot/commit_coverage.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def analyze_changeset(changeset_to_analyze: str) -> None:
129129
with ThreadPoolExecutorResult(
130130
initializer=_init_thread, initargs=(repo_dir,)
131131
) as executor:
132-
133132
futures = [
134133
executor.submit(analyze_changeset, changeset)
135134
for changeset in changesets_to_analyze

bot/code_coverage_bot/hgmo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class HGMO(object):
13-
1413
PID_FILE = "hgmo.pid"
1514
SERVER_ADDRESS = "http://localhost:8000"
1615

bot/code_coverage_bot/hooks/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def build_reports(self, only=None):
135135
(platform, suite),
136136
artifacts,
137137
) in self.artifactsHandler.get_combinations().items():
138-
139138
if only is not None and (platform, suite) not in only:
140139
continue
141140

bot/code_coverage_bot/hooks/cron.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class CronHook(Hook):
2222
"""
2323

2424
def __init__(self, *args, **kwargs):
25-
2625
# Retrieve latest ingested revision
2726
try:
2827
revision = uploader.gcp_latest("mozilla-central")[0]["revision"]

bot/code_coverage_bot/zero_coverage.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class ZeroCov(object):
16-
1716
DATE_FORMAT = "%Y-%m-%d"
1817

1918
def __init__(self, repo_dir):

events/code_coverage_events/workflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def __init__(self):
182182
self.pulse.register(self.bus)
183183

184184
def run(self):
185-
186185
consumers = [
187186
# Code coverage main workflow
188187
self.workflow.run(),

0 commit comments

Comments
 (0)