File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,25 @@ repos:
13
13
exclude : ' setup.cfg'
14
14
- id : debug-statements
15
15
- repo : https://github.com/asottile/pyupgrade
16
- rev : ' v2.16.0 '
16
+ rev : ' v2.19.1 '
17
17
hooks :
18
18
- id : pyupgrade
19
19
args :
20
20
- --py36-plus
21
- - repo : https://github.com/pycqa /isort
21
+ - repo : https://github.com/PyCQA /isort
22
22
rev : ' 5.8.0'
23
23
hooks :
24
24
- id : isort
25
25
- repo : https://github.com/psf/black
26
- rev : ' 21.5b1 '
26
+ rev : ' 21.5b2 '
27
27
hooks :
28
28
- id : black
29
29
- repo : https://github.com/PyCQA/flake8
30
30
rev : ' 3.9.2'
31
31
hooks :
32
32
- id : flake8
33
- - repo : https://github.com/pycqa /pydocstyle
34
- rev : ' 6.0.0 '
33
+ - repo : https://github.com/PyCQA /pydocstyle
34
+ rev : ' 6.1.1 '
35
35
hooks :
36
36
- id : pydocstyle
37
37
exclude : |
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ class IgnoreConditions(IntFlag):
111
111
def __invert__ (self ):
112
112
# Compute the largest number of bits used to represent one of the flags
113
113
# so that we can XOR the appropriate number.
114
- max_bits = len (bin (max ([ elem .value for elem in type (self )] ))) - 2
114
+ max_bits = len (bin (max (elem .value for elem in type (self )))) - 2
115
115
return self .__class__ ((2 ** max_bits - 1 ) ^ self ._value_ )
116
116
117
117
NONE = 0
@@ -2687,7 +2687,7 @@ def print_status(
2687
2687
for hit in file_timing .iterHits ()
2688
2688
]
2689
2689
sorted_hits = reversed (sorted (hits , key = lambda hit : hit [2 ]))
2690
- total_num_hits = sum ([ hit [2 ] for hit in hits ] )
2690
+ total_num_hits = sum (hit [2 ] for hit in hits )
2691
2691
2692
2692
profiling_results = ["# Profiling:\n " ]
2693
2693
Original file line number Diff line number Diff line change @@ -2044,8 +2044,8 @@ def test_main_run(self):
2044
2044
assert not job .doc .get ("op2" , False )
2045
2045
assert not job .doc .get ("op3" , False )
2046
2046
2047
- even_sum = sum ([ job .sp .i for job in project if job .sp .i % 2 == 0 ] )
2048
- odd_sum = sum ([ job .sp .i for job in project if job .sp .i % 2 != 0 ] )
2047
+ even_sum = sum (job .sp .i for job in project if job .sp .i % 2 == 0 )
2048
+ odd_sum = sum (job .sp .i for job in project if job .sp .i % 2 != 0 )
2049
2049
2050
2050
self .call_subcmd (
2051
2051
"run -o agg_op1 agg_op1_different agg_op1_custom agg_op2 agg_op3 --show-traceback"
You can’t perform that action at this time.
0 commit comments