Skip to content

⬆️ UPGRADE: Autoupdate pre-commit config #51707

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
Mar 1, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 1, 2023

Base PullRequest

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

Command results

Details:
add path
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/build/src/bin
pip install pre-commit
Defaulting to user installation because normal site-packages is not writeable
Collecting pre-commit
  Downloading pre_commit-3.1.1-py2.py3-none-any.whl (202 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 202.3/202.3 KB 4.0 MB/s eta 0:00:00
Collecting identify>=1.0.0
  Downloading identify-2.5.18-py2.py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.8/98.8 KB 6.9 MB/s eta 0:00:00
Collecting virtualenv>=20.10.0
  Downloading virtualenv-20.20.0-py3-none-any.whl (8.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.7/8.7 MB 23.0 MB/s eta 0:00:00
Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from pre-commit) (5.4.1)
Collecting nodeenv>=0.11.1
  Downloading nodeenv-1.7.0-py2.py3-none-any.whl (21 kB)
Collecting cfgv>=2.0.0
  Downloading cfgv-3.3.1-py2.py3-none-any.whl (7.3 kB)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nodeenv>=0.11.1->pre-commit) (59.6.0)
Collecting distlib<1,>=0.3.6
  Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.5/468.5 KB 49.7 MB/s eta 0:00:00
Collecting filelock<4,>=3.4.1
  Downloading filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting platformdirs<4,>=2.4
  Downloading platformdirs-3.0.0-py3-none-any.whl (14 kB)
Installing collected packages: distlib, platformdirs, nodeenv, identify, filelock, cfgv, virtualenv, pre-commit
Successfully installed cfgv-3.3.1 distlib-0.3.6 filelock-3.9.0 identify-2.5.18 nodeenv-1.7.0 platformdirs-3.0.0 pre-commit-3.1.1 virtualenv-20.20.0
pre-commit autoupdate || (exit 0);
Updating https://github.com/charliermarsh/ruff-pre-commit ... [INFO] Initializing environment for https://github.com/charliermarsh/ruff-pre-commit.
updating v0.0.244 -> v0.0.253.
Updating https://github.com/jendrikseipp/vulture ... [INFO] Initializing environment for https://github.com/jendrikseipp/vulture.
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/cython-lint ... [INFO] Initializing environment for https://github.com/MarcoGorelli/cython-lint.
updating v0.12.4 -> v0.12.5.
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/cpplint/cpplint ... [INFO] Initializing environment for https://github.com/cpplint/cpplint.
already up to date.
Updating https://github.com/pycqa/pylint ... [INFO] Initializing environment for https://github.com/pycqa/pylint.
updating v2.16.1 -> v2.16.2.
Updating https://github.com/pycqa/pylint ... updating v2.16.1 -> v2.16.2.
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.
already up to date.
Updating https://github.com/pre-commit/pygrep-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks.
already up to date.
Updating https://github.com/sphinx-contrib/sphinx-lint ... [INFO] Initializing environment for https://github.com/sphinx-contrib/sphinx-lint.
already up to date.
pre-commit run -a || (exit 0);
[INFO] Initializing environment for local:black==23.1.0.
[INFO] Initializing environment for https://github.com/codespell-project/codespell:tomli.
[INFO] Initializing environment for local:[email protected].
[INFO] Initializing environment for local:flake8-rst==0.7.0,flake8==3.7.9.
[INFO] Initializing environment for local.
[INFO] Initializing environment for local:tomli,pyyaml.
[INFO] Initializing environment for local:flake8==5.0.4,flake8-pyi==22.8.1.
[INFO] Initializing environment for local:autotyping==22.9.0,libcst==0.4.7.
[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/charliermarsh/ruff-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/jendrikseipp/vulture.
[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/cython-lint.
[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/cpplint/cpplint.
[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 https://github.com/sphinx-contrib/sphinx-lint.
[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 local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
black...................................................................................................Passed
ruff....................................................................................................Failed
- hook id: ruff
- exit code: 1

doc/source/conf.py:104:17: PLW2901 Outer for loop variable `fname` overwritten by inner assignment target
pandas/_config/config.py:163:15: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/_config/config.py:769:5: PLW0603 Using the global statement to update `register_option` is discouraged
pandas/_config/config.py:769:5: PLW0603 Using the global statement to update `get_option` is discouraged
pandas/_config/config.py:769:5: PLW0603 Using the global statement to update `set_option` is discouraged
pandas/_config/config.py:781:5: PLW0603 Using the global statement to update `set_option` is discouraged
pandas/_config/config.py:782:5: PLW0603 Using the global statement to update `get_option` is discouraged
pandas/_config/config.py:783:5: PLW0603 Using the global statement to update `register_option` is discouraged
pandas/_config/display.py:22:5: PLW0603 Using the global statement to update `_initial_defencoding` is discouraged
pandas/core/algorithms.py:870:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/apply.py:1377:13: PLW2901 Outer for loop variable `fun` overwritten by inner assignment target
pandas/core/apply.py:1423:13: PLW2901 Outer for loop variable `aggfunc` overwritten by inner assignment target
pandas/core/arraylike.py:399:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/arrays/boolean.py:215:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/arrays/boolean.py:219:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/arrays/interval.py:1248:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/arrays/masked.py:225:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/arrays/masked.py:1295:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/arrays/masked.py:1377:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/arrays/period.py:1118:13: PLW2901 Outer for loop variable `y` overwritten by inner assignment target
pandas/core/arrays/string_arrow.py:297:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/computation/eval.py:324:9: PLW2901 Outer for loop variable `expr` overwritten by inner assignment target
pandas/core/computation/expressions.py:44:5: PLW0603 Using the global statement to update `USE_NUMEXPR` is discouraged
pandas/core/computation/expressions.py:49:5: PLW0603 Using the global statement to update `_where` is discouraged
pandas/core/computation/expressions.py:49:5: PLW0603 Using the global statement to update `_evaluate` is discouraged
pandas/core/computation/expressions.py:266:5: PLW0603 Using the global statement to update `_TEST_RESULT` is discouraged
pandas/core/computation/expressions.py:266:5: PLW0603 Using the global statement to update `_TEST_MODE` is discouraged
pandas/core/computation/expressions.py:280:5: PLW0603 Using the global statement to update `_TEST_RESULT` is discouraged
pandas/core/computation/pytables.py:566:21: PLW2901 Outer for loop variable `w` overwritten by inner assignment target
pandas/core/dtypes/cast.py:391:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/dtypes/cast.py:801:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/dtypes/common.py:263:5: PLW0603 Using the global statement to update `_is_scipy_sparse` is discouraged
pandas/core/dtypes/common.py:267:13: PLW0603 Using the global statement to update `_is_scipy_sparse` is discouraged
pandas/core/dtypes/dtypes.py:1275:17: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/core/dtypes/missing.py:299:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/dtypes/missing.py:314:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/frame.py:3964:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/frame.py:6761:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/frame.py:10415:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/generic.py:291:17: PLW2901 Outer for loop variable `axe` overwritten by inner assignment target
pandas/core/generic.py:996:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/generic.py:5322:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/generic.py:6901:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/generic.py:6957:25: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/generic.py:7388:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/groupby/grouper.py:378:21: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/groupby/grouper.py:976:32: PLW2901 Outer for loop variable `gpr` overwritten by inner assignment target
pandas/core/groupby/grouper.py:983:26: PLW2901 Outer for loop variable `level` overwritten by inner assignment target
pandas/core/groupby/grouper.py:983:33: PLW2901 Outer for loop variable `gpr` overwritten by inner assignment target
pandas/core/groupby/ops.py:292:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/groupby/ops.py:930:13: PLW2901 Outer for loop variable `codes` overwritten by inner assignment target
pandas/core/indexers/utils.py:395:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/base.py:3246:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/base.py:4240:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/base.py:4243:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/base.py:4741:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/base.py:6453:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/datetimelike.py:742:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/interval.py:1131:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/multi.py:1296:17: PLW2901 Outer for loop variable `level_codes` overwritten by inner assignment target
pandas/core/indexes/multi.py:1885:21: PLW2901 Outer for loop variable `lev` overwritten by inner assignment target
pandas/core/indexes/multi.py:1890:21: PLW2901 Outer for loop variable `level_codes` overwritten by inner assignment target
pandas/core/indexes/multi.py:1971:17: PLW2901 Outer for loop variable `level_codes` overwritten by inner assignment target
pandas/core/indexes/multi.py:1974:17: PLW2901 Outer for loop variable `lev` overwritten by inner assignment target
pandas/core/indexes/multi.py:3376:17: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/core/indexes/multi.py:3381:17: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/core/indexes/multi.py:3508:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexes/multi.py:3721:17: PLW2901 Outer for loop variable `level` overwritten by inner assignment target
pandas/core/indexes/range.py:512:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/indexing.py:2301:25: PLW2901 Outer for loop variable `ix` overwritten by inner assignment target
pandas/core/internals/array_manager.py:284:25: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/internals/array_manager.py:290:17: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/core/internals/array_manager.py:293:17: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/core/internals/array_manager.py:301:13: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/core/internals/array_manager.py:307:17: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/core/internals/array_manager.py:941:13: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/core/internals/array_manager.py:1130:13: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/core/internals/concat.py:93:13: PLW2901 Outer for loop variable `mgr` overwritten by inner assignment target
pandas/core/internals/concat.py:100:13: PLW2901 Outer for loop variable `mgr` overwritten by inner assignment target
pandas/core/internals/concat.py:308:13: PLW2901 Outer for loop variable `mgr` overwritten by inner assignment target
pandas/core/internals/construction.py:208:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/internals/construction.py:218:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/internals/construction.py:565:17: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/core/internals/construction.py:569:17: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/core/internals/construction.py:574:13: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/core/internals/construction.py:584:21: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/core/internals/construction.py:587:21: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/core/internals/construction.py:588:17: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/core/internals/construction.py:590:13: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/core/internals/managers.py:2186:17: PLW2901 Outer for loop variable `dtype` overwritten by inner assignment target
pandas/core/methods/selectn.py:147:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/nanops.py:69:5: PLW0603 Using the global statement to update `_USE_BOTTLENECK` is discouraged
pandas/core/nanops.py:208:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/nanops.py:213:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/nanops.py:672:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/nanops.py:1447:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/ops/mask_ops.py:65:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/resample.py:1615:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/reshape/concat.py:540:21: PLW2901 Outer for loop variable `obj` overwritten by inner assignment target
pandas/core/reshape/concat.py:795:9: PLW2901 Outer for loop variable `hlevel` overwritten by inner assignment target
pandas/core/reshape/merge.py:1166:21: PLW2901 Outer for loop variable `lk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1169:25: PLW2901 Outer for loop variable `rk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1175:25: PLW2901 Outer for loop variable `rk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1187:25: PLW2901 Outer for loop variable `rk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1195:29: PLW2901 Outer for loop variable `lk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1201:25: PLW2901 Outer for loop variable `rk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1206:25: PLW2901 Outer for loop variable `lk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1216:21: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/core/reshape/merge.py:1222:21: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/core/reshape/merge.py:1237:21: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/core/reshape/merge.py:1243:21: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/core/reshape/merge.py:1277:13: PLW2901 Outer for loop variable `lk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1278:13: PLW2901 Outer for loop variable `rk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1288:17: PLW2901 Outer for loop variable `lk` overwritten by inner assignment target
pandas/core/reshape/merge.py:1289:17: PLW2901 Outer for loop variable `rk` overwritten by inner assignment target
pandas/core/reshape/pivot.py:148:17: PLW2901 Outer for loop variable `x` overwritten by inner assignment target
pandas/core/reshape/pivot.py:384:17: PLW2901 Outer for loop variable `piece` overwritten by inner assignment target
pandas/core/reshape/reshape.py:255:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/reshape/reshape.py:748:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/reshape/tile.py:452:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/series.py:1661:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/series.py:5592:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/sorting.py:161:13: PLW2901 Outer for loop variable `lab` overwritten by inner assignment target
pandas/core/sorting.py:161:18: PLW2901 Outer for loop variable `size` overwritten by inner assignment target
pandas/core/sorting.py:356:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/strings/accessor.py:3315:17: PLW2901 Outer for loop variable `subject_key` overwritten by inner assignment target
pandas/core/strings/accessor.py:3319:21: PLW2901 Outer for loop variable `match_tuple` overwritten by inner assignment target
pandas/core/strings/object_array.py:138:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/strings/object_array.py:340:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/util/numba_.py:24:5: PLW0603 Using the global statement to update `GLOBAL_USE_NUMBA` is discouraged
pandas/core/window/common.py:158:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/core/window/rolling.py:485:17: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/io/clipboard/__init__.py:146:5: PLW0603 Using the global statement to update `QApplication` is discouraged
pandas/io/clipboard/__init__.py:151:9: PLW0603 Using the global statement to update `QApplication` is discouraged
pandas/io/clipboard/__init__.py:154:13: PLW0603 Using the global statement to update `QApplication` is discouraged
pandas/io/clipboard/__init__.py:323:5: PLW0603 Using the global statement to update `LPCSTR` is discouraged
pandas/io/clipboard/__init__.py:323:5: PLW0603 Using the global statement to update `DWORD` is discouraged
pandas/io/clipboard/__init__.py:323:5: PLW0603 Using the global statement to update `HGLOBAL` is discouraged
pandas/io/clipboard/__init__.py:323:5: PLW0603 Using the global statement to update `INT` is discouraged
pandas/io/clipboard/__init__.py:323:5: PLW0603 Using the global statement to update `LPVOID` is discouraged
pandas/io/clipboard/__init__.py:324:5: PLW0603 Using the global statement to update `HANDLE` is discouraged
pandas/io/clipboard/__init__.py:324:5: PLW0603 Using the global statement to update `HWND` is discouraged
pandas/io/clipboard/__init__.py:324:5: PLW0603 Using the global statement to update `HMENU` is discouraged
pandas/io/clipboard/__init__.py:324:5: PLW0603 Using the global statement to update `HINSTANCE` is discouraged
pandas/io/clipboard/__init__.py:324:5: PLW0603 Using the global statement to update `UINT` is discouraged
pandas/io/clipboard/__init__.py:324:5: PLW0603 Using the global statement to update `BOOL` is discouraged
pandas/io/clipboard/__init__.py:515:5: PLW0603 Using the global statement to update `AppKit` is discouraged
pandas/io/clipboard/__init__.py:515:5: PLW0603 Using the global statement to update `Foundation` is discouraged
pandas/io/clipboard/__init__.py:515:5: PLW0603 Using the global statement to update `qtpy` is discouraged
pandas/io/clipboard/__init__.py:515:5: PLW0603 Using the global statement to update `PyQt5` is discouraged
pandas/io/clipboard/__init__.py:515:5: PLW0603 Using the global statement to update `PyQt4` is discouraged
pandas/io/common.py:1245:17: PLW2901 Outer for loop variable `col` overwritten by inner assignment target
pandas/io/common.py:1247:17: PLW2901 Outer for loop variable `col` overwritten by inner assignment target
pandas/io/excel/_base.py:793:25: PLW2901 Outer for loop variable `row` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:142:13: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:220:13: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:222:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:292:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:294:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:334:13: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:336:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:372:13: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:374:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/excel/_openpyxl.py:376:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/formats/css.py:282:17: PLW2901 Outer for loop variable `val` overwritten by inner assignment target
pandas/io/formats/css.py:384:13: PLW2901 Outer for loop variable `prop` overwritten by inner assignment target
pandas/io/formats/css.py:385:13: PLW2901 Outer for loop variable `value` overwritten by inner assignment target
pandas/io/formats/excel.py:431:17: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/formats/excel.py:433:17: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/formats/excel.py:435:17: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/formats/format.py:2107:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/formats/html.py:290:37: PLW2901 Outer for loop variable `values` overwritten by inner assignment target
pandas/io/formats/html.py:295:37: PLW2901 Outer for loop variable `values` overwritten by inner assignment target
pandas/io/formats/html.py:306:33: PLW2901 Outer for loop variable `values` overwritten by inner assignment target
pandas/io/formats/html.py:307:25: PLW2901 Outer for loop variable `records` overwritten by inner assignment target
pandas/io/formats/html.py:319:25: PLW2901 Outer for loop variable `records` overwritten by inner assignment target
pandas/io/formats/html.py:320:25: PLW2901 Outer for loop variable `values` overwritten by inner assignment target
pandas/io/formats/info.py:664:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/formats/printing.py:277:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/formats/style_render.py:2302:26: PLW2901 Outer for loop variable `value` overwritten by inner assignment target
pandas/io/json/_json.py:1380:21: PLW2901 Outer for loop variable `c` overwritten by inner assignment target
pandas/io/json/_normalize.py:96:17: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/io/json/_normalize.py:110:21: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/json/_normalize.py:114:13: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/json/_normalize.py:529:13: PLW2901 Outer for loop variable `k` overwritten by inner assignment target
pandas/io/parquet.py:135:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/parsers/arrow_parser_wrapper.py:117:21: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/parsers/base_parser.py:444:17: PLW2901 Outer for loop variable `col` overwritten by inner assignment target
pandas/io/parsers/base_parser.py:458:17: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/io/parsers/base_parser.py:493:13: PLW2901 Outer for loop variable `arr` overwritten by inner assignment target
pandas/io/parsers/base_parser.py:550:21: PLW2901 Outer for loop variable `values` overwritten by inner assignment target
pandas/io/parsers/base_parser.py:557:21: PLW2901 Outer for loop variable `values` overwritten by inner assignment target
pandas/io/parsers/base_parser.py:1222:21: PLW2901 Outer for loop variable `colspec` overwritten by inner assignment target
pandas/io/parsers/c_parser_wrapper.py:398:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/parsers/python_parser.py:356:21: PLW2901 Outer for loop variable `col` overwritten by inner assignment target
pandas/io/parsers/python_parser.py:559:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/parsers/python_parser.py:841:21: PLW2901 Outer for loop variable `x` overwritten by inner assignment target
pandas/io/parsers/readers.py:1841:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/parsers/readers.py:1844:17: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/parsers/readers.py:1865:13: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/io/pytables.py:233:5: PLW0603 Using the global statement to update `_table_mod` is discouraged
pandas/io/pytables.py:234:5: PLW0603 Using the global statement to update `_table_file_open_policy_is_strict` is discouraged
pandas/io/pytables.py:2200:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/io/stata.py:1547:17: PLW2901 Outer for loop variable `typ` overwritten by inner assignment target
pandas/io/stata.py:2517:17: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2519:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2523:17: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2527:17: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2529:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2535:21: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2536:21: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2662:21: PLW2901 Outer for loop variable `col` overwritten by inner assignment target
pandas/io/stata.py:2828:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:2829:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:3399:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/stata.py:3400:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/io/xml.py:244:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/plotting/_matplotlib/boxplot.py:178:21: PLW2901 Outer for loop variable `y` overwritten by inner assignment target
pandas/plotting/_matplotlib/boxplot.py:407:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/plotting/_matplotlib/boxplot.py:527:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/plotting/_matplotlib/core.py:168:17: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/plotting/_matplotlib/core.py:508:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/plotting/_matplotlib/core.py:687:13: PLW2901 Outer for loop variable `ax` overwritten by inner assignment target
pandas/plotting/_matplotlib/core.py:1230:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/plotting/_matplotlib/core.py:1378:13: PLW2901 Outer for loop variable `label` overwritten by inner assignment target
pandas/plotting/_matplotlib/core.py:1379:13: PLW2901 Outer for loop variable `label` overwritten by inner assignment target
pandas/plotting/_matplotlib/core.py:1634:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/plotting/_matplotlib/core.py:1688:13: PLW2901 Outer for loop variable `label` overwritten by inner assignment target
pandas/plotting/_matplotlib/core.py:1689:13: PLW2901 Outer for loop variable `label` overwritten by inner assignment target
pandas/plotting/_matplotlib/core.py:1837:17: PLW2901 Outer for loop variable `label` overwritten by inner assignment target
pandas/plotting/_matplotlib/hist.py:132:13: PLW2901 Outer for loop variable `label` overwritten by inner assignment target
pandas/plotting/_matplotlib/hist.py:133:13: PLW2901 Outer for loop variable `label` overwritten by inner assignment target
pandas/plotting/_matplotlib/hist.py:165:13: PLW2901 Outer for loop variable `y` overwritten by inner assignment target
pandas/plotting/_matplotlib/hist.py:301:13: PLW2901 Outer for loop variable `group` overwritten by inner assignment target
pandas/plotting/_matplotlib/timeseries.py:132:13: PLW2901 Outer for loop variable `series` overwritten by inner assignment target
pandas/plotting/_matplotlib/timeseries.py:141:17: PLW2901 Outer for loop variable `plotf` overwritten by inner assignment target
pandas/plotting/_matplotlib/timeseries.py:220:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/config/test_localization.py:127:13: PLW2901 Outer with statement variable `normalized_locale` overwritten by inner assignment target
pandas/tests/dtypes/test_inference.py:856:13: PLW2901 Outer for loop variable `data` overwritten by inner assignment target
pandas/tests/frame/indexing/test_where.py:109:21: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/frame/indexing/test_where.py:184:25: PLW2901 Outer for loop variable `v` overwritten by inner assignment target
pandas/tests/frame/methods/test_clip.py:38:13: PLW2901 Outer for loop variable `lb` overwritten by inner assignment target
pandas/tests/frame/methods/test_clip.py:38:17: PLW2901 Outer for loop variable `ub` overwritten by inner assignment target
pandas/tests/frame/methods/test_set_axis.py:71:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/frame/test_constructors.py:2980:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/groupby/test_groupby_dropna.py:556:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/groupby/test_timegrouper.py:102:13: PLW2901 Outer for loop variable `df` overwritten by inner assignment target
pandas/tests/groupby/test_timegrouper.py:268:13: PLW2901 Outer for loop variable `df` overwritten by inner assignment target
pandas/tests/groupby/test_timegrouper.py:278:13: PLW2901 Outer for loop variable `df` overwritten by inner assignment target
pandas/tests/groupby/test_timegrouper.py:292:13: PLW2901 Outer for loop variable `df` overwritten by inner assignment target
pandas/tests/indexes/categorical/test_category.py:189:13: PLW2901 Outer for loop variable `e` overwritten by inner assignment target
pandas/tests/indexes/datetimes/test_misc.py:248:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/tests/indexes/datetimes/test_misc.py:272:13: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/datetimes/test_misc.py:275:13: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/datetimes/test_setops.py:266:17: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/datetimes/test_setops.py:333:17: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/datetimes/test_timezones.py:291:13: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/datetimes/test_timezones.py:292:13: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/multi/test_get_set.py:21:9: PLW2901 Outer for loop variable `act` overwritten by inner assignment target
pandas/tests/indexes/multi/test_get_set.py:22:9: PLW2901 Outer for loop variable `exp` overwritten by inner assignment target
pandas/tests/indexes/multi/test_partial_indexing.py:41:9: PLW2901 Outer for loop variable `df_swap` overwritten by inner assignment target
pandas/tests/indexes/period/test_setops.py:133:17: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/period/test_setops.py:236:17: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/period/test_setops.py:311:17: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/indexes/test_numpy_compat.py:97:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/indexes/test_numpy_compat.py:148:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/indexing/test_floats.py:33:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/internals/test_internals.py:212:9: PLW2901 Outer for loop variable `d` overwritten by inner assignment target
pandas/tests/io/formats/test_format.py:589:17: PLW2901 Outer for loop variable `line` overwritten by inner assignment target
pandas/tests/io/parser/conftest.py:163:13: PLW2901 Outer for loop variable `parser` overwritten by inner assignment target
pandas/tests/io/parser/test_header.py:548:13: PLW2901 Outer for loop variable `col` overwritten by inner assignment target
pandas/tests/io/parser/test_python_parser_only.py:395:9: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/io/sas/test_sas7bdat.py:305:9: PLW2901 Outer for loop variable `df` overwritten by inner assignment target
pandas/tests/io/sas/test_sas7bdat.py:310:13: PLW2901 Outer for loop variable `df` overwritten by inner assignment target
pandas/tests/io/test_compression.py:177:9: PLW2901 Outer with statement variable `path` overwritten by inner assignment target
pandas/tests/io/test_pickle.py:124:9: PLW2901 Outer for loop variable `legacy_pickle` overwritten by inner assignment target
pandas/tests/io/test_sql.py:3040:13: PLW2901 Outer for loop variable `arg` overwritten by inner assignment target
pandas/tests/io/test_stata.py:161:13: PLW2901 Outer with statement variable `w` overwritten by inner assignment target
pandas/tests/io/test_stata.py:2016:17: PLW2901 Outer for loop variable `block` overwritten by inner assignment target
pandas/tests/plotting/frame/test_frame.py:1837:13: PLW2901 Outer for loop variable `ax1` overwritten by inner assignment target
pandas/tests/plotting/frame/test_frame.py:1839:13: PLW2901 Outer for loop variable `ax2` overwritten by inner assignment target
pandas/tests/scalar/timedelta/test_timedelta.py:753:21: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/scalar/timedelta/test_timedelta.py:759:25: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/scalar/timestamp/test_constructors.py:167:17: PLW2901 Outer for loop variable `result` overwritten by inner assignment target
pandas/tests/scalar/timestamp/test_constructors.py:172:17: PLW2901 Outer for loop variable `result` overwritten by inner assignment target
pandas/tests/scalar/timestamp/test_constructors.py:178:21: PLW2901 Outer for loop variable `result` overwritten by inner assignment target
pandas/tests/scalar/timestamp/test_constructors.py:185:21: PLW2901 Outer for loop variable `result` overwritten by inner assignment target
pandas/tests/scalar/timestamp/test_constructors.py:190:25: PLW2901 Outer for loop variable `result` overwritten by inner assignment target
pandas/tests/scalar/timestamp/test_constructors.py:192:25: PLW2901 Outer for loop variable `result` overwritten by inner assignment target
pandas/tests/scalar/timestamp/test_constructors.py:229:17: PLW2901 Outer for loop variable `result` overwritten by inner assignment target
pandas/tests/scalar/timestamp/test_unary_ops.py:349:21: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/scalar/timestamp/test_unary_ops.py:355:25: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/tests/series/accessors/test_dt_accessor.py:479:13: PLW2901 Outer for loop variable `name` overwritten by inner assignment target
pandas/tests/series/accessors/test_dt_accessor.py:497:13: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/series/accessors/test_dt_accessor.py:500:13: PLW2901 Outer for loop variable `expected` overwritten by inner assignment target
pandas/tests/tslibs/test_conversion.py:114:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/util/_validators.py:332:9: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
pandas/util/version/__init__.py:256:9: PLW2901 Outer for loop variable `part` overwritten by inner assignment target
scripts/no_bool_in_generic.py:55:17: PLW2901 Outer for loop variable `line` overwritten by inner assignment target
scripts/validate_docstrings.py:106:9: PLW2901 Outer for loop variable `line` overwritten by inner assignment target
scripts/validate_min_versions_in_sync.py:184:9: PLW2901 Outer for loop variable `yaml_versions` overwritten by inner assignment target
scripts/validate_rst_title_capitalization.py:232:13: PLW2901 Outer for loop variable `line` overwritten by inner assignment target
scripts/validate_unwanted_patterns.py:145:13: PLR5501 Consider using `elif` instead of `else` then `if` to remove one indentation level
setup.py:161:13: PLW2901 Outer for loop variable `pxifile` overwritten by inner assignment target
web/pandas_web.py:366:9: PLW2901 Outer for loop variable `root` overwritten by inner assignment target
web/pandas_web.py:427:13: PLW2901 Outer for loop variable `fname` overwritten by inner assignment target
Found 306 errors.

vulture.................................................................................................Passed
codespell...............................................................................................Passed
cython-lint.............................................................................................Passed
double-quote Cython strings.............................................................................Passed
debug statements (python)...............................................................................Passed
fix end of files........................................................................................Passed
trim trailing whitespace................................................................................Passed
cpplint.................................................................................................Passed
isort...................................................................................................Passed
pyupgrade...............................................................................................Passed
rst ``code`` is two backticks...........................................................................Passed
rst directives end with two colons......................................................................Passed
rst ``inline code`` next to normal text.................................................................Passed
Sphinx lint.............................................................................................Passed
flake8-rst..............................................................................................Failed
- hook id: flake8-rst
- exit code: 1

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 486, in run_ast_checks
    ast = self.processor.build_ast()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/processor.py", line 212, in build_ast
    return compile("".join(self.lines), "", "exec", PyCF_ONLY_AST)
  File "", line 86
    gb.<TAB>  # noqa: E225, E999
       ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/bin/flake8-rst", line 8, in <module>
    sys.exit(main())
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8_rst/cli.py", line 16, in main
    app.run(argv)
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/main/application.py", line 393, in run
    self._run(argv)
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/main/application.py", line 381, in _run
    self.run_checks()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/main/application.py", line 300, in run_checks
    self.file_checker_manager.run()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 331, in run
    self.run_serial()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 315, in run_serial
    checker.run_checks()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 598, in run_checks
    self.run_ast_checks()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 488, in run_ast_checks
    row, column = self._extract_syntax_information(e)
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 473, in _extract_syntax_information
    lines = physical_line.rstrip("\n").split("\n")
AttributeError: 'int' object has no attribute 'rstrip'
Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 486, in run_ast_checks
    ast = self.processor.build_ast()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/processor.py", line 212, in build_ast
    return compile("".join(self.lines), "", "exec", PyCF_ONLY_AST)
  File "", line 28
    -l 4 df.apply(lambda x: integrate_f(x["a"], x["b"], x["N"]), axis=1)  # noqa E999
       ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/bin/flake8-rst", line 8, in <module>
    sys.exit(main())
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8_rst/cli.py", line 16, in main
    app.run(argv)
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/main/application.py", line 393, in run
    self._run(argv)
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/main/application.py", line 381, in _run
    self.run_checks()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/main/application.py", line 300, in run_checks
    self.file_checker_manager.run()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 331, in run
    self.run_serial()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 315, in run_serial
    checker.run_checks()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 598, in run_checks
    self.run_ast_checks()
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 488, in run_ast_checks
    row, column = self._extract_syntax_information(e)
  File "/home/runner/.cache/pre-commit/repo63rn62qe/py_env-python3/lib/python3.10/site-packages/flake8/checker.py", line 473, in _extract_syntax_information
    lines = physical_line.rstrip("\n").split("\n")
AttributeError: 'int' object has no attribute 'rstrip'

Check for inconsistent use of pandas namespace..........................................................Passed
Check code for instances of os.remove...................................................................Passed
Unwanted patterns.......................................................................................Passed
Check Cython casting is `<type>obj`, not `<type> obj`...................................................Passed
Check for backticks incorrectly rendering because of missing spaces.....................................Passed
Check for unnecessary random seeds in asv benchmarks....................................................Passed
Check for usage of numpy testing or array_equal.........................................................Passed
Check for invalid EA testing............................................................................Passed
Unwanted patterns in tests..............................................................................Passed
Unwanted patterns in EA tests...........................................................................Passed
Unwanted patterns in Cython code........................................................................Passed
Generate pip dependency from conda......................................................................Passed
Validate correct capitalization among titles in documentation...........................................Passed
Check for use of bare pytest raises.....................................................................Passed
Check for use of private functions across modules.......................................................Passed
Check for import of private attributes across modules...................................................Passed
Check for strings with misplaced spaces.................................................................Passed
Import pandas.array as pd_array in core.................................................................Passed
Use pandas.io.common.urlopen instead of urllib.request.urlopen..........................................Passed
Use bool_t instead of bool in pandas/core/generic.py....................................................Passed
Use raise instead of return for exceptions..............................................................Passed
Ensure pandas errors are documented in doc/source/reference/testing.rst.................................Passed
Check for pg8000 not installed on CI for test_pg8000_sqlalchemy_passthrough_error.......................Passed
Check minimum version of dependencies are aligned.......................................................Passed
Validate errors locations...............................................................................Passed
flake8-pyi..............................................................................................Passed
import annotations from __future__......................................................................Passed
check that test names start with 'test'.................................................................Passed

Changed files

Changed file:
  • .pre-commit-config.yaml

:octocat: Repo | 📝 Issues | 🏬 Marketplace

@MarcoGorelli MarcoGorelli reopened this Mar 1, 2023
@MarcoGorelli MarcoGorelli added the Code Style Code style, linting, code_checks label Mar 1, 2023
@MarcoGorelli MarcoGorelli added this to the 2.1 milestone Mar 1, 2023
@MarcoGorelli MarcoGorelli merged commit 4d18871 into main Mar 1, 2023
@mroeschke mroeschke deleted the create-pr-action/pre-commit-config-update-0 branch March 4, 2023 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant