Skip to content

STYLE: upgrade codespell #48365

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

Closed
wants to merge 8 commits into from
Closed
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.1
hooks:
- id: codespell
types_or: [python, rst, markdown]
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def quantile(self, q=0.5, **kwargs):
Return a DataFrame, where the columns are the columns of self,
and the values are the quantiles.
DataFrameGroupBy.quantile
Return a DataFrame, where the coulmns are groupby columns,
Return a DataFrame, where the columns are groupby columns,
and the values are its quantiles.
"""
return self._downsample("quantile", q=q, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def to_latex(
``display_value`` with the default structure:
``\<command><options> <display_value>``.
Where there are multiple commands the latter is nested recursively, so that
the above example highlighed cell is rendered as
the above example highlighted cell is rendered as
``\cellcolor{red} \bfseries 4``.

Occasionally this format does not suit the applied command, or
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/parsers/python_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ def __next__(self) -> list[str]:
else:
line = next(self.f) # type: ignore[arg-type]
# Note: 'colspecs' is a sequence of half-open intervals.
return [line[fromm:to].strip(self.delimiter) for (fromm, to) in self.colspecs]
return [line[from:to].strip(self.delimiter) for (from, to) in self.colspecs]


class FixedWidthFieldParser(PythonParser):
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/arrays/categorical/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def test_constructor_str_unknown(self):
Categorical([1, 2], dtype="foo")

def test_constructor_np_strs(self):
# GH#31499 Hastable.map_locations needs to work on np.str_ objects
# GH#31499 Hashtable.map_locations needs to work on np.str_ objects
cat = Categorical(["1", "0", "1"], [np.str_("0"), np.str_("1")])
assert all(isinstance(x, np.str_) for x in cat.categories)

Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/arrays/string_/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def test_add_strings(dtype):
assert arr.__add__(df) is NotImplemented

result = arr + df
expected = pd.DataFrame([["at", "bu", "cv", "dw"]]).astype(dtype)
expected = pd.DataFrame([["at", "by", "cv", "dw"]]).astype(dtype)
tm.assert_frame_equal(result, expected)

result = df + arr
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/config/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setup_class(cls):
cls.cf = cf
cls.gc = deepcopy(getattr(cls.cf, "_global_config"))
cls.do = deepcopy(getattr(cls.cf, "_deprecated_options"))
cls.ro = deepcopy(getattr(cls.cf, "_registered_options"))
cls.to, row, rob, rod, roe, rot = deepcopy(getattr(cls.cf, "_registered_options"))

def setup_method(self):
setattr(self.cf, "_global_config", {})
Expand All @@ -33,7 +33,7 @@ def setup_method(self):
def teardown_method(self):
setattr(self.cf, "_global_config", self.gc)
setattr(self.cf, "_deprecated_options", self.do)
setattr(self.cf, "_registered_options", self.ro)
setattr(self.cf, "_registered_options", self.to, row, rob, rod, roe, rot)

def test_api(self):

Expand Down
2 changes: 1 addition & 1 deletion web/pandas/about/governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ interests include, but are not limited to:
All members of the Core Team, BDFL included, shall disclose to the rest of the
Core Team any conflict of interest they may have. Members with a conflict of
interest in a particular issue may participate in Core Team discussions on that
issue, but must recuse themselves from voting on the issue. If the BDFL has
issue, but must recurse themselves from voting on the issue. If the BDFL has
recused his/herself for a particular decision, they will appoint a substitute
BDFL for that decision.

Expand Down