Skip to content

Commit 499b7f5

Browse files
authored
Merge pull request #2661 from raoatifshad/black-2.6.0-formatting
Format Python code with black 26.1.0 (excluding archive/ folder)
2 parents f793b90 + 6263c2f commit 499b7f5

31 files changed

+45
-68
lines changed

DMWM/AggregatePylint.py

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

77
usage = "usage: %prog [options] message"
88
parser = OptionParser(usage)
9-
(options, args) = parser.parse_args()
9+
options, args = parser.parse_args()
1010
if len(args) != 1:
1111
parser.error("You must supply a label")
1212

DMWM/IdentifyPythonFiles.py

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

88
usage = "usage: %prog [options] list_of_files.txt"
99
parser = OptionParser(usage)
10-
(options, args) = parser.parse_args()
10+
options, args = parser.parse_args()
1111
if len(args) != 1:
1212
parser.error("You must supply a file with a list of files to check")
1313

DMWM/IssueMessage.py

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

88
usage = "usage: %prog [options] message"
99
parser = OptionParser(usage)
10-
(options, args) = parser.parse_args()
10+
options, args = parser.parse_args()
1111
if len(args) != 1:
1212
parser.error("You must supply a message.")
1313

RelValArgs.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,15 @@
100100
RELVAL_ARGS = []
101101
RELVAL_ARGS.append({})
102102
# For SLHC releases
103-
RELVAL_ARGS[len(RELVAL_ARGS) - 1][
104-
"_SLHC(DEV|)_"
105-
] = """
103+
RELVAL_ARGS[len(RELVAL_ARGS) - 1]["_SLHC(DEV|)_"] = """
106104
@USE_INPUT@
107105
@WORKFLOWS@
108106
"""
109107
RELVAL_ARGS[len(RELVAL_ARGS) - 1]["CMSSW_4_2_"] = ""
110108

111109
RELVAL_ARGS.append({})
112110
# For rleease cycles >= 7
113-
RELVAL_ARGS[len(RELVAL_ARGS) - 1][
114-
"CMSSW_([1-9][0-9]|[7-9])_"
115-
] = """
111+
RELVAL_ARGS[len(RELVAL_ARGS) - 1]["CMSSW_([1-9][0-9]|[7-9])_"] = """
116112
@USE_INPUT@
117113
@JOB_REPORT@
118114
--command "
@@ -128,9 +124,7 @@
128124

129125
RELVAL_ARGS.append({})
130126
# For all other releases
131-
RELVAL_ARGS[len(RELVAL_ARGS) - 1][
132-
".+"
133-
] = """
127+
RELVAL_ARGS[len(RELVAL_ARGS) - 1][".+"] = """
134128
@USE_INPUT@
135129
"""
136130

buildLogAnalyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Created by Andreas Pfeiffer on 2008-08-05.
55
Copyright (c) 2008 CERN. All rights reserved.
66
"""
7+
78
from __future__ import print_function
89
import sys, os, re, time
910
import getopt

compareTriggerResults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Script to compare the content of edm::TriggerResults collections in EDM files across multiple workflows
44
- CMSSW dependencies: edmDumpEventContent, hltDiff
55
"""
6+
67
from __future__ import print_function
78
import argparse
89
import os

compareTriggerResultsSummary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Script to summarise the outputs of compareTriggerResults
44
(i.e. the outputs of hltDiff in .json format)
55
"""
6+
67
from __future__ import print_function
78
import argparse
89
import os

comparisons/analyzeFWComparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
help="Generate the thresholds for the relmon comparisons",
4747
default=False,
4848
)
49-
(options, args) = parser.parse_args()
49+
options, args = parser.parse_args()
5050
5151
# -----------------------------------------------------------------------------------
5252
# ---- Review of arguments

comparisons/compare-maxmem-summary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Script to summarise the outputs of compare-maxmem.py
44
"""
5+
56
from __future__ import print_function
67
import argparse
78
import os

comparisons/resources-diff.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ def diff_from(metrics, data, data_total, dest, dest_total, res):
2929

3030

3131
if len(sys.argv) == 1:
32-
print(
33-
"""Usage: resources-diff.py IB_FILE PR_FILE
34-
Diff the content of two "resources.json" files and print the result to standard output."""
35-
)
32+
print("""Usage: resources-diff.py IB_FILE PR_FILE
33+
Diff the content of two "resources.json" files and print the result to standard output.""")
3634
sys.exit(1)
3735

3836
with open(sys.argv[1]) as f:

0 commit comments

Comments
 (0)