1919 skip : [pylint, pyright, mypy]
2020repos :
2121- repo : https://github.com/astral-sh/ruff-pre-commit
22- rev : v0.1.13
22+ rev : v0.3.1
2323 hooks :
2424 - id : ruff
2525 args : [--exit-non-zero-on-fix]
@@ -30,6 +30,12 @@ repos:
3030 files : ^pandas
3131 exclude : ^pandas/tests
3232 args : [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix]
33+ - id : ruff
34+ name : ruff-use-pd_array-in-core
35+ alias : ruff-use-pd_array-in-core
36+ files : ^pandas/core/
37+ exclude : ^pandas/core/api\.py$
38+ args : [--select, "ICN001", --exit-non-zero-on-fix]
3339 - id : ruff-format
3440 exclude : ^scripts
3541- repo : https://github.com/jendrikseipp/vulture
7278 hooks :
7379 - id : pylint
7480 stages : [manual]
75- args : [--load-plugins=pylint.extensions.redefined_loop_name]
81+ args : [--load-plugins=pylint.extensions.redefined_loop_name, --fail-on=I0021 ]
7682 - id : pylint
7783 alias : redefined-outer-name
7884 name : Redefining name from outer scope
@@ -272,13 +278,6 @@ repos:
272278 language : python
273279 entry : python scripts/validate_unwanted_patterns.py --validation-type="nodefault_used_not_only_for_typing"
274280 types : [python]
275- - id : use-pd_array-in-core
276- name : Import pandas.array as pd_array in core
277- language : python
278- entry : python scripts/use_pd_array_in_core.py
279- files : ^pandas/core/
280- exclude : ^pandas/core/api\.py$
281- types : [python]
282281 - id : no-return-exception
283282 name : Use raise instead of return for exceptions
284283 language : pygrep
0 commit comments