Skip to content

Commit 4bf16d2

Browse files
authored
CI pre-commit autoupdate (pandas-dev#51290)
* wip * fixup --------- Co-authored-by: MarcoGorelli <>
1 parent 4b65e2f commit 4bf16d2

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ci:
1616
autofix_prs: false
1717
repos:
1818
- repo: https://github.com/charliermarsh/ruff-pre-commit
19-
rev: v0.0.215
19+
rev: v0.0.244
2020
hooks:
2121
- id: ruff
2222
- repo: https://github.com/MarcoGorelli/absolufy-imports
@@ -25,7 +25,7 @@ repos:
2525
- id: absolufy-imports
2626
files: ^pandas/
2727
- repo: https://github.com/jendrikseipp/vulture
28-
rev: 'v2.6'
28+
rev: 'v2.7'
2929
hooks:
3030
- id: vulture
3131
entry: python scripts/run_vulture.py
@@ -38,7 +38,7 @@ repos:
3838
types_or: [python, rst, markdown]
3939
additional_dependencies: [tomli]
4040
- repo: https://github.com/MarcoGorelli/cython-lint
41-
rev: v0.10.1
41+
rev: v0.12.4
4242
hooks:
4343
- id: cython-lint
4444
- id: double-quote-cython-strings
@@ -71,12 +71,12 @@ repos:
7171
'--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size'
7272
]
7373
- repo: https://github.com/pycqa/pylint
74-
rev: v2.15.9
74+
rev: v2.16.1
7575
hooks:
7676
- id: pylint
7777
stages: [manual]
7878
- repo: https://github.com/pycqa/pylint
79-
rev: v2.15.9
79+
rev: v2.16.1
8080
hooks:
8181
- id: pylint
8282
alias: redefined-outer-name
@@ -101,7 +101,7 @@ repos:
101101
- id: pyupgrade
102102
args: [--py38-plus]
103103
- repo: https://github.com/pre-commit/pygrep-hooks
104-
rev: v1.9.0
104+
rev: v1.10.0
105105
hooks:
106106
- id: rst-backticks
107107
- id: rst-directive-colons

pandas/_libs/index.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class DatetimeEngine(Int64Engine): ...
5252
class TimedeltaEngine(DatetimeEngine): ...
5353
class PeriodEngine(Int64Engine): ...
5454
class BoolEngine(UInt8Engine): ...
55-
class MaskedBoolEngine(MaskedUInt8Engine): ...
5655
class MaskedFloat64Engine(MaskedIndexEngine): ...
5756
class MaskedFloat32Engine(MaskedIndexEngine): ...
5857
class MaskedComplex128Engine(MaskedIndexEngine): ...
@@ -65,6 +64,7 @@ class MaskedUInt64Engine(MaskedIndexEngine): ...
6564
class MaskedUInt32Engine(MaskedIndexEngine): ...
6665
class MaskedUInt16Engine(MaskedIndexEngine): ...
6766
class MaskedUInt8Engine(MaskedIndexEngine): ...
67+
class MaskedBoolEngine(MaskedUInt8Engine): ...
6868

6969
class BaseMultiIndexCodesEngine:
7070
levels: list[np.ndarray]

pandas/_libs/tslibs/np_datetime.pxd

+4-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ cpdef cnp.ndarray astype_overflowsafe(
108108
bint round_ok=*,
109109
bint is_coerce=*,
110110
)
111-
cdef int64_t get_conversion_factor(NPY_DATETIMEUNIT from_unit, NPY_DATETIMEUNIT to_unit) except? -1
111+
cdef int64_t get_conversion_factor(
112+
NPY_DATETIMEUNIT from_unit,
113+
NPY_DATETIMEUNIT to_unit,
114+
) except? -1
112115

113116
cdef bint cmp_dtstructs(npy_datetimestruct* left, npy_datetimestruct* right, int op)
114117
cdef get_implementation_bounds(

pyproject.toml

+15
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,20 @@ ignore = [
246246
"B023",
247247
# Functions defined inside a loop must not use variables redefined in the loop
248248
# "B301", # not yet implemented
249+
# Too many arguments to function call
250+
"PLR0913",
251+
# Too many returns
252+
"PLR0911",
253+
# Too many branches
254+
"PLR0912",
255+
# Too many statements
256+
"PLR0915",
249257

250258
# Additional checks that don't pass yet
251259
# Within an except clause, raise exceptions with ...
252260
"B904",
261+
# Magic number
262+
"PLR2004",
253263
]
254264

255265
exclude = [
@@ -266,6 +276,7 @@ exclude = [
266276
max-line-length = 88
267277
disable = [
268278
# intentionally turned off
279+
"bad-mcs-classmethod-argument",
269280
"broad-except",
270281
"c-extension-no-member",
271282
"comparison-with-itself",
@@ -301,6 +312,7 @@ disable = [
301312
"unsupported-assignment-operation",
302313
"unsupported-membership-test",
303314
"unused-import",
315+
"use-dict-literal",
304316
"use-implicit-booleaness-not-comparison",
305317
"use-implicit-booleaness-not-len",
306318
"wrong-import-order",
@@ -311,11 +323,13 @@ disable = [
311323
"no-value-for-parameter",
312324
"undefined-variable",
313325
"unpacking-non-sequence",
326+
"used-before-assignment",
314327

315328
# pylint type "C": convention, for programming standard violation
316329
"missing-class-docstring",
317330
"missing-function-docstring",
318331
"missing-module-docstring",
332+
"superfluous-parens",
319333
"too-many-lines",
320334
"unidiomatic-typecheck",
321335
"unnecessary-dunder-call",
@@ -335,6 +349,7 @@ disable = [
335349
"arguments-out-of-order",
336350
"arguments-renamed",
337351
"attribute-defined-outside-init",
352+
"broad-exception-raised",
338353
"comparison-with-callable",
339354
"dangerous-default-value",
340355
"deprecated-module",

0 commit comments

Comments
 (0)