Skip to content

CI pre-commit autoupdate #51290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ci:
autofix_prs: false
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.215
rev: v0.0.244
hooks:
- id: ruff
- repo: https://github.com/MarcoGorelli/absolufy-imports
Expand All @@ -25,7 +25,7 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.6'
rev: 'v2.7'
hooks:
- id: vulture
entry: python scripts/run_vulture.py
Expand All @@ -38,7 +38,7 @@ repos:
types_or: [python, rst, markdown]
additional_dependencies: [tomli]
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.10.1
rev: v0.12.4
hooks:
- id: cython-lint
- id: double-quote-cython-strings
Expand Down Expand Up @@ -71,12 +71,12 @@ repos:
'--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size'
]
- repo: https://github.com/pycqa/pylint
rev: v2.15.9
rev: v2.16.1
hooks:
- id: pylint
stages: [manual]
- repo: https://github.com/pycqa/pylint
rev: v2.15.9
rev: v2.16.1
hooks:
- id: pylint
alias: redefined-outer-name
Expand All @@ -101,7 +101,7 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
- id: rst-backticks
- id: rst-directive-colons
Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/index.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class DatetimeEngine(Int64Engine): ...
class TimedeltaEngine(DatetimeEngine): ...
class PeriodEngine(Int64Engine): ...
class BoolEngine(UInt8Engine): ...
class MaskedBoolEngine(MaskedUInt8Engine): ...
class MaskedFloat64Engine(MaskedIndexEngine): ...
class MaskedFloat32Engine(MaskedIndexEngine): ...
class MaskedComplex128Engine(MaskedIndexEngine): ...
Expand All @@ -65,6 +64,7 @@ class MaskedUInt64Engine(MaskedIndexEngine): ...
class MaskedUInt32Engine(MaskedIndexEngine): ...
class MaskedUInt16Engine(MaskedIndexEngine): ...
class MaskedUInt8Engine(MaskedIndexEngine): ...
class MaskedBoolEngine(MaskedUInt8Engine): ...

class BaseMultiIndexCodesEngine:
levels: list[np.ndarray]
Expand Down
5 changes: 4 additions & 1 deletion pandas/_libs/tslibs/np_datetime.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ cpdef cnp.ndarray astype_overflowsafe(
bint round_ok=*,
bint is_coerce=*,
)
cdef int64_t get_conversion_factor(NPY_DATETIMEUNIT from_unit, NPY_DATETIMEUNIT to_unit) except? -1
cdef int64_t get_conversion_factor(
NPY_DATETIMEUNIT from_unit,
NPY_DATETIMEUNIT to_unit,
) except? -1

cdef bint cmp_dtstructs(npy_datetimestruct* left, npy_datetimestruct* right, int op)
cdef get_implementation_bounds(
Expand Down
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,20 @@ ignore = [
"B023",
# Functions defined inside a loop must not use variables redefined in the loop
# "B301", # not yet implemented
# Too many arguments to function call
"PLR0913",
# Too many returns
"PLR0911",
# Too many branches
"PLR0912",
# Too many statements
"PLR0915",

# Additional checks that don't pass yet
# Within an except clause, raise exceptions with ...
"B904",
# Magic number
"PLR2004",
]

exclude = [
Expand All @@ -266,6 +276,7 @@ exclude = [
max-line-length = 88
disable = [
# intentionally turned off
"bad-mcs-classmethod-argument",
"broad-except",
"c-extension-no-member",
"comparison-with-itself",
Expand Down Expand Up @@ -301,6 +312,7 @@ disable = [
"unsupported-assignment-operation",
"unsupported-membership-test",
"unused-import",
"use-dict-literal",
"use-implicit-booleaness-not-comparison",
"use-implicit-booleaness-not-len",
"wrong-import-order",
Expand All @@ -311,11 +323,13 @@ disable = [
"no-value-for-parameter",
"undefined-variable",
"unpacking-non-sequence",
"used-before-assignment",

# pylint type "C": convention, for programming standard violation
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"superfluous-parens",
"too-many-lines",
"unidiomatic-typecheck",
"unnecessary-dunder-call",
Expand All @@ -335,6 +349,7 @@ disable = [
"arguments-out-of-order",
"arguments-renamed",
"attribute-defined-outside-init",
"broad-exception-raised",
"comparison-with-callable",
"dangerous-default-value",
"deprecated-module",
Expand Down