⬆️ UPGRADE: Autoupdate pre-commit config
State: closed

<!-- START pr-commits -->
<!-- END pr-commits -->

## Base PullRequest

default branch (https://github.com/pandas-dev/pandas/tree/master)

## Command results
<details>
<summary>Details: </summary>

<details>
<summary><em>add path</em></summary>

```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/bin
```



</details>
<details>
<summary><em>pip install pre-commit</em></summary>

```Shell
Collecting pre-commit
  Downloading pre_commit-2.10.0-py2.py3-none-any.whl (185 kB)
Collecting pyyaml>=5.1
  Downloading PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Collecting virtualenv>=20.0.8
  Downloading virtualenv-20.4.1-py2.py3-none-any.whl (7.2 MB)
Collecting toml
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting cfgv>=2.0.0
  Using cached cfgv-3.2.0-py2.py3-none-any.whl (7.3 kB)
Collecting identify>=1.0.0
  Downloading identify-1.5.13-py2.py3-none-any.whl (97 kB)
Collecting nodeenv>=0.11.1
  Using cached nodeenv-1.5.0-py2.py3-none-any.whl (21 kB)
Collecting six<2,>=1.9.0
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting distlib<1,>=0.3.1
  Using cached distlib-0.3.1-py2.py3-none-any.whl (335 kB)
Collecting appdirs<2,>=1.4.3
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting filelock<4,>=3.0.0
  Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Installing collected packages: six, filelock, distlib, appdirs, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
Successfully installed appdirs-1.4.4 cfgv-3.2.0 distlib-0.3.1 filelock-3.0.12 identify-1.5.13 nodeenv-1.5.0 pre-commit-2.10.0 pyyaml-5.4.1 six-1.15.0 toml-0.10.2 virtualenv-20.4.1
```

### stderr:

```Shell
WARNING: You are using pip version 20.3.4; however, version 21.0.1 is available.
You should consider upgrading via the '/opt/hostedtoolcache/Python/3.9.1/x64/bin/python -m pip install --upgrade pip' command.
```

</details>
<details>
<summary><em>pre-commit autoupdate || (exit 0);</em></summary>

```Shell
Updating https://github.com/python/black ... already up to date.
Updating https://gitlab.com/pycqa/flake8 ... already up to date.
Updating https://github.com/PyCQA/isort ... [INFO] Initializing environment for https://github.com/PyCQA/isort.
already up to date.
Updating https://github.com/asottile/pyupgrade ... [INFO] Initializing environment for https://github.com/asottile/pyupgrade.
updating v2.7.4 -> v2.8.0.
Updating https://github.com/pre-commit/pygrep-hooks ... already up to date.
Updating https://github.com/asottile/yesqa ... already up to date.
Updating https://github.com/pre-commit/pre-commit-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
already up to date.
Updating https://github.com/codespell-project/codespell ... [INFO] Initializing environment for https://github.com/codespell-project/codespell.
already up to date.
Updating https://github.com/MarcoGorelli/no-string-hints ... [INFO] Initializing environment for https://github.com/MarcoGorelli/no-string-hints.
updating v0.1.6 -> v0.1.7.
```



</details>
<details>
<summary><em>pre-commit run -a || (exit 0);</em></summary>

```Shell
[INFO] Installing environment for https://github.com/python/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/yesqa.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/MarcoGorelli/no-string-hints.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
black..................................................................................................Passed
flake8.................................................................................................Passed
flake8 (cython)........................................................................................Passed
flake8 (cython template)...............................................................................Passed
isort..................................................................................................Passed
pyupgrade..............................................................................................Failed
- hook id: pyupgrade
- exit code: 1
- files were modified by this hook

Rewriting pandas/plotting/_core.py
Rewriting pandas/io/excel/_base.py
Rewriting pandas/core/algorithms.py
Rewriting pandas/core/indexes/datetimes.py
Rewriting pandas/core/reshape/melt.py
Rewriting pandas/plotting/_matplotlib/core.py
Rewriting pandas/core/reshape/merge.py
Rewriting pandas/tests/extension/arrow/test_timestamp.py
Rewriting pandas/core/reshape/reshape.py
Rewriting pandas/core/resample.py
Rewriting pandas/core/arrays/string_arrow.py
Rewriting pandas/io/stata.py
Rewriting pandas/core/indexes/multi.py
Rewriting pandas/core/tools/datetimes.py
Rewriting pandas/core/internals/managers.py
Rewriting pandas/core/frame.py
Rewriting pandas/core/arrays/timedeltas.py
Rewriting pandas/core/computation/ops.py
Rewriting pandas/core/dtypes/base.py
Rewriting pandas/core/dtypes/dtypes.py
Rewriting pandas/io/excel/_openpyxl.py
Rewriting pandas/core/arrays/base.py
Rewriting pandas/core/apply.py
Rewriting pandas/tests/extension/decimal/array.py
Rewriting pandas/core/missing.py
Rewriting pandas/core/generic.py
Rewriting pandas/core/sorting.py
Rewriting pandas/io/formats/format.py
Rewriting pandas/io/sas/sasreader.py
Rewriting pandas/core/arrays/interval.py
Rewriting pandas/core/internals/array_manager.py
Rewriting pandas/core/arrays/masked.py
Rewriting pandas/core/window/rolling.py
Rewriting pandas/core/arrays/datetimes.py
Rewriting pandas/io/json/_normalize.py
Rewriting pandas/core/groupby/grouper.py
Rewriting pandas/io/formats/csvs.py
Rewriting pandas/core/groupby/groupby.py
Rewriting pandas/io/pytables.py
Rewriting pandas/plotting/_matplotlib/timeseries.py
Rewriting pandas/core/series.py
Rewriting pandas/plotting/_matplotlib/style.py
Rewriting pandas/core/construction.py
Rewriting pandas/core/indexes/base.py
Rewriting pandas/core/aggregation.py
Rewriting pandas/core/internals/blocks.py
Rewriting pandas/core/internals/ops.py
Rewriting pandas/core/ops/__init__.py
Rewriting pandas/core/groupby/ops.py
Rewriting pandas/core/reshape/concat.py
Rewriting pandas/tests/extension/json/array.py
Rewriting pandas/core/arrays/_mixins.py
Rewriting pandas/core/indexes/period.py
Rewriting pandas/core/arrays/categorical.py
Rewriting pandas/io/formats/info.py
Rewriting pandas/io/parquet.py
Rewriting pandas/core/arrays/string_.py
Rewriting pandas/core/indexes/range.py
Rewriting pandas/_testing/__init__.py
Rewriting pandas/core/arrays/floating.py
Rewriting pandas/core/arrays/datetimelike.py
Rewriting pandas/core/computation/scope.py
Rewriting pandas/tests/extension/arrow/arrays.py
Rewriting pandas/plotting/_matplotlib/__init__.py
Rewriting pandas/tests/extension/list/array.py
Rewriting pandas/core/computation/align.py
Rewriting pandas/core/dtypes/cast.py
Rewriting pandas/core/reshape/pivot.py
Rewriting pandas/plotting/_matplotlib/tools.py
Rewriting pandas/core/arrays/sparse/dtype.py
Rewriting pandas/core/window/ewm.py
Rewriting pandas/core/internals/concat.py
Rewriting pandas/core/internals/construction.py
Rewriting pandas/core/arrays/numeric.py
Rewriting pandas/core/arrays/boolean.py
Rewriting pandas/plotting/_matplotlib/misc.py
Rewriting pandas/core/arrays/period.py
Rewriting pandas/tests/plotting/common.py
Rewriting pandas/io/common.py
Rewriting pandas/core/arrays/numpy_.py
Rewriting pandas/core/arrays/integer.py
Rewriting pandas/core/indexing.py
Rewriting pandas/core/arrays/sparse/array.py
Rewriting pandas/io/formats/style.py
Rewriting pandas/core/describe.py
Rewriting pandas/compat/pickle_compat.py
Rewriting pandas/io/gbq.py
Rewriting pandas/core/computation/pytables.py
Rewriting pandas/core/groupby/generic.py
Rewriting pandas/core/indexes/interval.py
Rewriting pandas/io/orc.py

rst ``code`` is two backticks..........................................................................Passed
rst directives end with two colons.....................................................................Passed
rst ``inline code`` next to normal text................................................................Passed
Generate pip dependency from conda.....................................................................Passed
flake8-rst.............................................................................................Passed
Check for non-standard imports.........................................................................Passed
Check for non-standard numpy.random-related imports excluding pandas/_testing.py.......................Passed
Check for non-standard imports in test suite...........................................................Passed
Check for incorrect code block or IPython directives...................................................Passed
Check for use of not concatenated strings..............................................................Passed
Check for strings with wrong placed spaces.............................................................Passed
Check for import of private attributes across modules..................................................Passed
Check for use of private functions across modules......................................................Passed
Check for use of bare pytest raises....................................................................Passed
Check for inconsistent use of pandas namespace in tests................................................Passed
Check for use of Union[Series, DataFrame] instead of FrameOrSeriesUnion alias..........................Passed
Check for use of foo.__class__ instead of type(foo)....................................................Passed
Check for outdated annotation syntax and missing error codes...........................................Passed
Check for use of np.bool instead of np.bool_...........................................................Passed
Check code for instances of os.remove..................................................................Passed
Check code for instances of pd.api.types...............................................................Passed
Strip unnecessary `# noqa`s............................................................................Passed
Fix End of Files.......................................................................................Passed
Trim Trailing Whitespace...............................................................................Passed
codespell..............................................................................................Passed
no-string-hints........................................................................................Passed
```



</details>

</details>

## Changed files
<details>
<summary>Changed 92 files: </summary>

- .pre-commit-config.yaml
- pandas/_testing/__init__.py
- pandas/compat/pickle_compat.py
- pandas/core/aggregation.py
- pandas/core/algorithms.py
- pandas/core/apply.py
- pandas/core/arrays/_mixins.py
- pandas/core/arrays/base.py
- pandas/core/arrays/boolean.py
- pandas/core/arrays/categorical.py
- pandas/core/arrays/datetimelike.py
- pandas/core/arrays/datetimes.py
- pandas/core/arrays/floating.py
- pandas/core/arrays/integer.py
- pandas/core/arrays/interval.py
- pandas/core/arrays/masked.py
- pandas/core/arrays/numeric.py
- pandas/core/arrays/numpy_.py
- pandas/core/arrays/period.py
- pandas/core/arrays/sparse/array.py
- pandas/core/arrays/sparse/dtype.py
- pandas/core/arrays/string_.py
- pandas/core/arrays/string_arrow.py
- pandas/core/arrays/timedeltas.py
- pandas/core/computation/align.py
- pandas/core/computation/ops.py
- pandas/core/computation/pytables.py
- pandas/core/computation/scope.py
- pandas/core/construction.py
- pandas/core/describe.py
- pandas/core/dtypes/base.py
- pandas/core/dtypes/cast.py
- pandas/core/dtypes/dtypes.py
- pandas/core/frame.py
- pandas/core/generic.py
- pandas/core/groupby/generic.py
- pandas/core/groupby/groupby.py
- pandas/core/groupby/grouper.py
- pandas/core/groupby/ops.py
- pandas/core/indexes/base.py
- pandas/core/indexes/datetimes.py
- pandas/core/indexes/interval.py
- pandas/core/indexes/multi.py
- pandas/core/indexes/period.py
- pandas/core/indexes/range.py
- pandas/core/indexing.py
- pandas/core/internals/array_manager.py
- pandas/core/internals/blocks.py
- pandas/core/internals/concat.py
- pandas/core/internals/construction.py
- pandas/core/internals/managers.py
- pandas/core/internals/ops.py
- pandas/core/missing.py
- pandas/core/ops/__init__.py
- pandas/core/resample.py
- pandas/core/reshape/concat.py
- pandas/core/reshape/melt.py
- pandas/core/reshape/merge.py
- pandas/core/reshape/pivot.py
- pandas/core/reshape/reshape.py
- pandas/core/series.py
- pandas/core/sorting.py
- pandas/core/tools/datetimes.py
- pandas/core/window/ewm.py
- pandas/core/window/rolling.py
- pandas/io/common.py
- pandas/io/excel/_base.py
- pandas/io/excel/_openpyxl.py
- pandas/io/formats/csvs.py
- pandas/io/formats/format.py
- pandas/io/formats/info.py
- pandas/io/formats/style.py
- pandas/io/gbq.py
- pandas/io/json/_normalize.py
- pandas/io/orc.py
- pandas/io/parquet.py
- pandas/io/pytables.py
- pandas/io/sas/sasreader.py
- pandas/io/stata.py
- pandas/plotting/_core.py
- pandas/plotting/_matplotlib/__init__.py
- pandas/plotting/_matplotlib/core.py
- pandas/plotting/_matplotlib/misc.py
- pandas/plotting/_matplotlib/style.py
- pandas/plotting/_matplotlib/timeseries.py
- pandas/plotting/_matplotlib/tools.py
- pandas/tests/extension/arrow/arrays.py
- pandas/tests/extension/arrow/test_timestamp.py
- pandas/tests/extension/decimal/array.py
- pandas/tests/extension/json/array.py
- pandas/tests/extension/list/array.py
- pandas/tests/plotting/common.py

</details>

<hr>

[:octocat: Repo](https://github.com/technote-space/create-pr-action) | [:memo: Issues](https://github.com/technote-space/create-pr-action/issues) | [:department_store: Marketplace](https://github.com/marketplace/actions/create-pr-action)

Labels:

Comments:
I don't know why the `pre-commit` CI job doesn't trigger during this weekly pull request - it was skipped last week too. It only seems to happen for his weekly job

For now I'll close this and split it up into other tasks, but I'll look into this