Skip to content

Commit fe85cbf

Browse files
authored
STYLE upgrade black formatter (#51348)
upgrade black formatter Co-authored-by: MarcoGorelli <>
1 parent b196a09 commit fe85cbf

File tree

471 files changed

+43
-1655
lines changed

Some content is hidden

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

471 files changed

+43
-1655
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ repos:
125125
language: python
126126
require_serial: true
127127
types_or: [python, pyi]
128-
additional_dependencies: [black==22.10.0]
128+
additional_dependencies: [black==23.1.0]
129129
- id: pyright
130130
# note: assumes python env is setup and activated
131131
name: pyright

asv_bench/benchmarks/algorithms.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
class Factorize:
18-
1918
params = [
2019
[True, False],
2120
[True, False],
@@ -65,7 +64,6 @@ def time_factorize(self, unique, sort, dtype):
6564

6665

6766
class Duplicated:
68-
6967
params = [
7068
[True, False],
7169
["first", "last", False],
@@ -96,7 +94,6 @@ def time_duplicated(self, unique, keep, dtype):
9694

9795

9896
class DuplicatedMaskedArray:
99-
10097
params = [
10198
[True, False],
10299
["first", "last", False],

asv_bench/benchmarks/algos/isin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313

1414
class IsIn:
15-
1615
params = [
1716
"int64",
1817
"uint64",
@@ -183,7 +182,6 @@ def time_isin(self, dtype, M, offset_factor):
183182

184183

185184
class IsInFloat64:
186-
187185
params = [
188186
[np.float64, "Float64"],
189187
["many_different_values", "few_different_values", "only_nans_values"],

asv_bench/benchmarks/arithmetic.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ def time_op_same_blocks(self, op, shape):
173173

174174

175175
class Ops:
176-
177176
params = [[True, False], ["default", 1]]
178177
param_names = ["use_numexpr", "threads"]
179178

@@ -257,7 +256,6 @@ def time_frame_series_dot(self):
257256

258257

259258
class Timeseries:
260-
261259
params = [None, "US/Eastern"]
262260
param_names = ["tz"]
263261

@@ -316,7 +314,6 @@ def time_categorical_op(self, op):
316314

317315

318316
class IndexArithmetic:
319-
320317
params = ["float", "int"]
321318
param_names = ["dtype"]
322319

@@ -387,7 +384,6 @@ def time_add_timedeltas(self, df):
387384

388385

389386
class AddOverflowScalar:
390-
391387
params = [1, -1, 0]
392388
param_names = ["scalar"]
393389

@@ -455,7 +451,6 @@ def time_add_overflow_both_arg_nan(self):
455451

456452

457453
class OffsetArrayArithmetic:
458-
459454
params = offsets
460455
param_names = ["offset"]
461456

asv_bench/benchmarks/array.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def time_from_list(self):
7272

7373

7474
class ArrowStringArray:
75-
7675
params = [False, True]
7776
param_names = ["multiple_chunks"]
7877

@@ -107,7 +106,6 @@ def time_tolist(self, multiple_chunks):
107106

108107

109108
class ArrowExtensionArray:
110-
111109
params = [
112110
[
113111
"boolean[pyarrow]",

asv_bench/benchmarks/attrs_caching.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def time_set_index(self):
2222

2323

2424
class SeriesArrayAttribute:
25-
2625
params = [["numeric", "object", "category", "datetime64", "datetime64tz"]]
2726
param_names = ["dtype"]
2827

asv_bench/benchmarks/categoricals.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ def time_concat_non_overlapping_index(self):
143143

144144

145145
class ValueCounts:
146-
147146
params = [True, False]
148147
param_names = ["dropna"]
149148

@@ -254,7 +253,6 @@ def time_categorical_contains(self):
254253

255254

256255
class CategoricalSlicing:
257-
258256
params = ["monotonic_incr", "monotonic_decr", "non_monotonic"]
259257
param_names = ["index"]
260258

asv_bench/benchmarks/ctors.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def list_of_lists_with_none(arr):
4949

5050

5151
class SeriesConstructors:
52-
5352
param_names = ["data_fmt", "with_index", "dtype"]
5453
params = [
5554
[
@@ -124,7 +123,6 @@ def time_multiindex_from_iterables(self):
124123

125124
class DatetimeIndexConstructor:
126125
def setup(self):
127-
128126
N = 20_000
129127
dti = date_range("1900-01-01", periods=N)
130128

asv_bench/benchmarks/dtypes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def time_pandas_dtype_invalid(self, dtype):
4949

5050

5151
class SelectDtypes:
52-
5352
try:
5453
params = [
5554
tm.ALL_INT_NUMPY_DTYPES

asv_bench/benchmarks/eval.py

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

1010

1111
class Eval:
12-
1312
params = [["numexpr", "python"], [1, "all"]]
1413
param_names = ["engine", "threads"]
1514

0 commit comments

Comments
 (0)