Skip to content

Commit 6a271a2

Browse files
committed
⬆️ UPGRADE: Autoupdate pre-commit config
1 parent 67c9385 commit 6a271a2

Some content is hidden

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

84 files changed

+666
-968
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: absolufy-imports
1010
files: ^pandas/
1111
- repo: https://github.com/python/black
12-
rev: 20.8b1
12+
rev: 21.5b0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/codespell-project/codespell
@@ -35,7 +35,7 @@ repos:
3535
exclude: ^pandas/_libs/src/(klib|headers)/
3636
args: [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--filter=-readability/casting,-runtime/int,-build/include_subdir']
3737
- repo: https://gitlab.com/pycqa/flake8
38-
rev: 3.9.1
38+
rev: 3.9.2
3939
hooks:
4040
- id: flake8
4141
additional_dependencies:
@@ -56,7 +56,7 @@ repos:
5656
hooks:
5757
- id: isort
5858
- repo: https://github.com/asottile/pyupgrade
59-
rev: v2.12.0
59+
rev: v2.15.0
6060
hooks:
6161
- id: pyupgrade
6262
args: [--py37-plus]
@@ -71,7 +71,7 @@ repos:
7171
types: [text] # overwrite types: [rst]
7272
types_or: [python, rst]
7373
- repo: https://github.com/asottile/yesqa
74-
rev: v1.2.2
74+
rev: v1.2.3
7575
hooks:
7676
- id: yesqa
7777
additional_dependencies:

pandas/_config/config.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def get_default_val(pat: str):
189189

190190

191191
class DictWrapper:
192-
""" provide attribute-style access to a nested dict"""
192+
"""provide attribute-style access to a nested dict"""
193193

194194
def __init__(self, d: dict[str, Any], prefix: str = ""):
195195
object.__setattr__(self, "d", d)
@@ -571,7 +571,7 @@ def _get_root(key: str) -> tuple[dict[str, Any], str]:
571571

572572

573573
def _is_deprecated(key: str) -> bool:
574-
""" Returns True if the given option has been deprecated """
574+
"""Returns True if the given option has been deprecated"""
575575
key = key.lower()
576576
return key in _deprecated_options
577577

@@ -643,7 +643,7 @@ def _warn_if_deprecated(key: str) -> bool:
643643

644644

645645
def _build_option_description(k: str) -> str:
646-
""" Builds a formatted description of a registered option and prints it """
646+
"""Builds a formatted description of a registered option and prints it"""
647647
o = _get_registered_option(k)
648648
d = _get_deprecated_option(k)
649649

@@ -667,7 +667,7 @@ def _build_option_description(k: str) -> str:
667667

668668

669669
def pp_options_list(keys: Iterable[str], width=80, _print: bool = False):
670-
""" Builds a concise listing of available options, grouped by prefix """
670+
"""Builds a concise listing of available options, grouped by prefix"""
671671
from itertools import groupby
672672
from textwrap import wrap
673673

0 commit comments

Comments
 (0)