Skip to content

⬆️ UPGRADE: Autoupdate pre-commit config #49436

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

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 1, 2022

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
Collecting pre-commit
  Downloading pre_commit-2.20.0-py2.py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.5/199.5 kB 19.5 MB/s eta 0:00:00
Collecting nodeenv>=0.11.1
  Downloading nodeenv-1.7.0-py2.py3-none-any.whl (21 kB)
Collecting identify>=1.0.0
  Downloading identify-2.5.8-py2.py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.7/98.7 kB 29.8 MB/s eta 0:00:00
Collecting cfgv>=2.0.0
  Downloading cfgv-3.3.1-py2.py3-none-any.whl (7.3 kB)
Collecting pyyaml>=5.1
  Downloading PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 682.2/682.2 kB 71.6 MB/s eta 0:00:00
Collecting toml
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting virtualenv>=20.0.8
  Downloading virtualenv-20.16.6-py3-none-any.whl (8.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.8/8.8 MB 105.6 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages (from nodeenv>=0.11.1->pre-commit) (63.2.0)
Collecting platformdirs<3,>=2.4
  Downloading platformdirs-2.5.2-py3-none-any.whl (14 kB)
Collecting distlib<1,>=0.3.6
  Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.5/468.5 kB 54.4 MB/s eta 0:00:00
Collecting filelock<4,>=3.4.1
  Downloading filelock-3.8.0-py3-none-any.whl (10 kB)
Installing collected packages: distlib, toml, pyyaml, platformdirs, nodeenv, identify, filelock, cfgv, virtualenv, pre-commit
Successfully installed cfgv-3.3.1 distlib-0.3.6 filelock-3.8.0 identify-2.5.8 nodeenv-1.7.0 platformdirs-2.5.2 pre-commit-2.20.0 pyyaml-6.0 toml-0.10.2 virtualenv-20.16.6
pre-commit autoupdate || (exit 0);
Updating https://github.com/MarcoGorelli/absolufy-imports ... [INFO] Initializing environment for https://github.com/MarcoGorelli/absolufy-imports.
already up to date.
Updating https://github.com/jendrikseipp/vulture ... [INFO] Initializing environment for https://github.com/jendrikseipp/vulture.
already up to date.
Updating https://github.com/python/black ... [INFO] Initializing environment for https://github.com/python/black.
updating 22.8.0 -> 22.10.0.
Updating https://github.com/codespell-project/codespell ... [INFO] Initializing environment for https://github.com/codespell-project/codespell.
updating v2.2.1 -> v2.2.2.
Updating https://github.com/MarcoGorelli/cython-lint ... [INFO] Initializing environment for https://github.com/MarcoGorelli/cython-lint.
updating v0.1.8 -> v0.2.1.
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/flake8 ... [INFO] Initializing environment for https://github.com/PyCQA/flake8.
already up to date.
Updating https://github.com/pycqa/pylint ... [INFO] Initializing environment for https://github.com/pycqa/pylint.
updating v2.15.3 -> v2.15.5.
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.38.2 -> v3.2.0.
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.
updating v0.6.1 -> v0.6.7.
Updating https://github.com/asottile/yesqa ... [INFO] Initializing environment for https://github.com/asottile/yesqa.
already up to date.
pre-commit run -a || (exit 0);
[INFO] Initializing environment for https://github.com/PyCQA/flake8:flake8-bugbear==22.7.1,flake8==5.0.4,pandas-dev-flaker==0.5.0.
[INFO] Initializing environment for https://github.com/asottile/yesqa:flake8-bugbear==22.7.1,flake8==5.0.4,pandas-dev-flaker==0.5.0.
[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:pyyaml,toml.
[INFO] Initializing environment for local:pyyaml.
[INFO] Initializing environment for local.
[INFO] Initializing environment for local:flake8-pyi==22.8.1,flake8==5.0.4.
[INFO] Initializing environment for local:autotyping==22.9.0,black==22.6.0,libcst==0.4.7.
[INFO] Installing environment for https://github.com/MarcoGorelli/absolufy-imports.
[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/python/black.
[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/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pycqa/pylint.
[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 https://github.com/asottile/yesqa.
[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...
[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...
absolufy-imports........................................................................................Passed
vulture.................................................................................................Passed
black...................................................................................................Passed
codespell...............................................................................................Failed
- hook id: codespell
- exit code: 65

pandas/errors/__init__.py:286: eveluation ==> evaluation
pandas/errors/__init__.py:309: eveluation ==> evaluation

cython-lint.............................................................................................Failed
- hook id: cython-lint
- exit code: 1

pandas/_libs/tslibs/fields.pyx:328:89:  E501 line too long (89 > 88 characters)
pandas/_libs/tslibs/timestamps.pyx:270:32: 'dts' defined but unused
pandas/_libs/tslibs/timestamps.pyx:297:32: 'dts' defined but unused
pandas/_libs/tslibs/timestamps.pyx:320:17: 'ndim' defined but unused
pandas/_libs/tslibs/timestamps.pyx:372:17:  E128 continuation line under-indented for visual indent
pandas/_libs/tslibs/timestamps.pyx:373:13:  E124 closing bracket does not match visual indentation
pandas/_libs/tslibs/timestamps.pyx:1533:17:  E124 closing bracket does not match visual indentation
pandas/_libs/tslibs/timestamps.pyx:1676:89:  E501 line too long (93 > 88 characters)
pandas/_libs/tslibs/period.pyx:1056:89:  E501 line too long (90 > 88 characters)
pandas/_libs/tslibs/period.pyx:1365:18: 'f' defined but unused
pandas/_libs/tslibs/period.pyx:1441:89:  E501 line too long (89 > 88 characters)
pandas/_libs/tslibs/period.pyx:1687:89:  E501 line too long (89 > 88 characters)
pandas/_libs/tslibs/period.pyx:2481:89:  E501 line too long (107 > 88 characters)
pandas/_libs/tslibs/period.pyx:2514:22: 'self' defined but unused
pandas/_libs/tslibs/offsets.pyx:2271:89:  E501 line too long (91 > 88 characters)
pandas/_libs/tslibs/offsets.pyx:2551:89:  E501 line too long (90 > 88 characters)
pandas/_libs/tslibs/offsets.pyx:2759:89:  E501 line too long (90 > 88 characters)
pandas/_libs/tslibs/offsets.pyx:3331:89:  E501 line too long (91 > 88 characters)
pandas/_libs/tslibs/offsets.pyx:4148:89:  E501 line too long (89 > 88 characters)
pandas/_libs/tslibs/nattype.pyx:207:89:  E501 line too long (93 > 88 characters)
pandas/_libs/tslibs/nattype.pyx:243:89:  E501 line too long (100 > 88 characters)
pandas/_libs/tslibs/nattype.pyx:1204:5:  E301 expected 1 blank line, found 0
pandas/_libs/internals.pyx:136:37: 'end' defined but unused
pandas/_libs/internals.pyx:262:19: 'new_slice' defined but unused
pandas/_libs/tslibs/strptime.pyx:78:14: 'found_key' defined but unused
pandas/io/sas/byteswap.pyx:2:89:  E501 line too long (100 > 88 characters)
pandas/_libs/tslibs/dtypes.pyx:399:89:  E501 line too long (91 > 88 characters)
pandas/_libs/tslibs/parsing.pyx:421:89:  E501 line too long (95 > 88 characters)
pandas/_libs/tslibs/parsing.pyx:720:9:  E731 do not assign a lambda expression, use a def
pandas/_libs/tslibs/parsing.pyx:1053:1:  E305 expected 2 blank lines after class or function definition, found 1
pandas/_libs/tslibs/parsing.pyx:1067:1:  E302 expected 2 blank lines, found 1
pandas/_libs/algos.pyx:84:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:85:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:86:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:87:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:88:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:90:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:97:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:99:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:100:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:101:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:102:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:103:5:  E731 do not assign a lambda expression, use a def
pandas/_libs/algos.pyx:324:23: 'j' defined but unused
pandas/_libs/algos.pyx:380:23: 'j' defined but unused
pandas/_libs/algos.pyx:749:89:  E501 line too long (96 > 88 characters)
pandas/_libs/tslibs/tzconversion.pyx:227:23: 'idx' defined but unused
pandas/_libs/tslibs/tzconversion.pyx:227:28: 'pos' defined but unused
pandas/_libs/tslibs/tzconversion.pyx:228:49: 'pos_left' defined but unused
pandas/_libs/tslibs/tzconversion.pyx:228:59: 'pos_right' defined but unused
pandas/_libs/tslibs/tzconversion.pyx:234:28: 'dts' defined but unused
pandas/_libs/window/aggregations.pyx:175:89:  E501 line too long (91 > 88 characters)
pandas/_libs/window/aggregations.pyx:214:89:  E501 line too long (92 > 88 characters)
pandas/_libs/window/aggregations.pyx:299:89:  E501 line too long (100 > 88 characters)
pandas/_libs/window/aggregations.pyx:313:89:  E501 line too long (92 > 88 characters)
pandas/_libs/window/aggregations.pyx:333:89:  E501 line too long (91 > 88 characters)
pandas/_libs/window/aggregations.pyx:569:24: 'prev' defined but unused
pandas/_libs/window/aggregations.pyx:577:36: 'mean_array' defined but unused
pandas/_libs/window/aggregations.pyx:782:24: 'prev' defined but unused
pandas/_libs/window/aggregations.pyx:856:89:  E501 line too long (91 > 88 characters)
pandas/_libs/window/aggregations.pyx:879:29: 'prev' defined but unused
pandas/_libs/window/aggregations.pyx:1152:24: 'prev' defined but unused
pandas/_libs/window/aggregations.pyx:1152:30: 'midpoint' defined but unused
pandas/_libs/window/aggregations.pyx:1278:48: 'idx' defined but unused
pandas/_libs/lib.pyx:624:1:  E302 expected 2 blank lines, found 1
pandas/_libs/lib.pyx:768:46: 'vc' defined but unused
pandas/_libs/lib.pyx:770:17: 'l_bin' defined but unused
pandas/_libs/lib.pyx:2218:89:  E501 line too long (98 > 88 characters)
pandas/_libs/lib.pyx:2219:89:  E501 line too long (107 > 88 characters)
pandas/_libs/lib.pyx:2220:89:  E501 line too long (92 > 88 characters)
pandas/_libs/lib.pyx:2221:89:  E501 line too long (95 > 88 characters)
pandas/_libs/lib.pyx:2222:89:  E501 line too long (93 > 88 characters)
pandas/_libs/lib.pyx:2301:17: 'status' defined but unused
pandas/_libs/lib.pyx:2440:19: 'fval' defined but unused
pandas/_libs/lib.pyx:2920:32: 'tmp' defined but unused
pandas/_libs/lib.pyx:3048:89:  E501 line too long (100 > 88 characters)
pandas/io/sas/sas.pyx:256:89:  E501 line too long (111 > 88 characters)
pandas/io/sas/sas.pyx:257:21:  E221 multiple spaces before operator
pandas/io/sas/sas.pyx:257:89:  E501 line too long (112 > 88 characters)
pandas/io/sas/sas.pyx:369:17: 'i' defined but unused
pandas/io/sas/sas.pyx:493:89:  E501 line too long (113 > 88 characters)
pandas/_libs/tslib.pyx:263:23: 'j' defined but unused
pandas/_libs/tslib.pyx:420:1:  E302 expected 2 blank lines, found 1
pandas/_libs/tslib.pyx:427:13: 'result' defined but unused
pandas/_libs/tslib.pyx:438:1:  E302 expected 2 blank lines, found 1
pandas/_libs/tslib.pyx:612:89:  E501 line too long (105 > 88 characters)
pandas/_libs/tslib.pyx:628:89:  E501 line too long (113 > 88 characters)
pandas/_libs/tslibs/timedeltas.pyx:179:89:  E501 line too long (92 > 88 characters)
pandas/_libs/tslibs/timedeltas.pyx:471:89:  E501 line too long (94 > 88 characters)
pandas/_libs/tslibs/timedeltas.pyx:971:5:  E303 too many blank lines (2)
pandas/_libs/tslibs/timedeltas.pyx:1573:25: 'td_base' defined but unused
pandas/_libs/tslibs/timedeltas.pyx:1628:89:  E501 line too long (94 > 88 characters)
pandas/_libs/tslibs/timedeltas.pyx:1715:35: 'remainder' defined but unused
pandas/_libs/tslibs/timedeltas.pyx:1805:21: 'new_value' defined but unused
pandas/_libs/groupby.pyx:268:32: 'size' defined but unused
pandas/_libs/groupby.pyx:359:32: 'size' defined but unused
pandas/_libs/groupby.pyx:444:26: 'j' defined but unused
pandas/_libs/groupby.pyx:747:25:  E125 continuation line with same indent as next logical line
pandas/_libs/groupby.pyx:747:25:  E128 continuation line under-indented for visual indent
pandas/_libs/groupby.pyx:774:29:  E125 continuation line with same indent as next logical line
pandas/_libs/groupby.pyx:774:29:  E128 continuation line under-indented for visual indent
pandas/_libs/groupby.pyx:802:27: 'count' defined but unused
pandas/_libs/groupby.pyx:875:38:  E714 test for object identity should be 'is not'
pandas/_libs/groupby.pyx:972:38:  E714 test for object identity should be 'is not'
pandas/_libs/groupby.pyx:1045:23: 'j' defined but unused
pandas/_libs/groupby.pyx:1048:38:  E714 test for object identity should be 'is not'
pandas/_libs/groupby.pyx:1243:89:  E501 line too long (100 > 88 characters)
pandas/_libs/groupby.pyx:1369:89:  E501 line too long (92 > 88 characters)
pandas/_libs/groupby.pyx:1489:89:  E501 line too long (92 > 88 characters)
pandas/_libs/testing.pyx:164:89:  E501 line too long (89 > 88 characters)
pandas/_libs/testing.pyx:170:89:  E501 line too long (103 > 88 characters)
pandas/_libs/tslibs/np_datetime.pyx:49:88:  E703 statement ends with a semicolon
pandas/_libs/tslibs/np_datetime.pyx:174:89:  E501 line too long (108 > 88 characters)
pandas/_libs/tslibs/np_datetime.pyx:424:5:  E303 too many blank lines (2)
pandas/_libs/tslibs/np_datetime.pyx:514:89:  E501 line too long (100 > 88 characters)
pandas/_libs/tslibs/vectorized.pyx:158:9: 'use_time' defined but unused
pandas/_libs/join.pyx:278:26: 'lval' defined but unused
pandas/_libs/join.pyx:327:26: 'k' defined but unused
pandas/_libs/join.pyx:437:26: 'k' defined but unused

debug statements (python)...............................................................................Passed
fix end of files........................................................................................Passed
trim trailing whitespace................................................................................Passed
cpplint.................................................................................................Passed
flake8..................................................................................................Passed
pylint..................................................................................................Passed
isort...................................................................................................Passed
pyupgrade...............................................................................................Failed
- hook id: pyupgrade
- exit code: 1
- files were modified by this hook

Rewriting pandas/io/clipboard/__init__.py

rst ``code`` is two backticks...........................................................................Passed
rst directives end with two colons......................................................................Passed
rst ``inline code`` next to normal text.................................................................Passed
Sphinx lint.............................................................................................Passed
Strip unnecessary `# noqa`s.............................................................................Passed
flake8-rst..............................................................................................Failed
- hook id: flake8-rst
- exit code: 1

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/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/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/processor.py", line 212, in build_ast
    return compile("".join(self.lines), "", "exec", PyCF_ONLY_AST)
  File "", line 103
    @tm.network   # noqa
    ^
IndentationError: expected an indented block after 'with' statement on line 101

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/bin/flake8-rst", line 8, in <module>
    sys.exit(main())
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8_rst/cli.py", line 16, in main
    app.run(argv)
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/main/application.py", line 393, in run
    self._run(argv)
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/main/application.py", line 381, in _run
    self.run_checks()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/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/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/checker.py", line 331, in run
    self.run_serial()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/checker.py", line 315, in run_serial
    checker.run_checks()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/checker.py", line 598, in run_checks
    self.run_ast_checks()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/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/repolk37zqn1/py_env-python3.10/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/repolk37zqn1/py_env-python3.10/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/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/processor.py", line 212, in build_ast
    return compile("".join(self.lines), "", "exec", PyCF_ONLY_AST)
  File "", line 27
    df2.<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/repolk37zqn1/py_env-python3.10/bin/flake8-rst", line 8, in <module>
    sys.exit(main())
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8_rst/cli.py", line 16, in main
    app.run(argv)
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/main/application.py", line 393, in run
    self._run(argv)
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/main/application.py", line 381, in _run
    self.run_checks()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/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/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/checker.py", line 331, in run
    self.run_serial()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/checker.py", line 315, in run_serial
    checker.run_checks()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/lib/python3.10/site-packages/flake8/checker.py", line 598, in run_checks
    self.run_ast_checks()
  File "/home/runner/.cache/pre-commit/repolk37zqn1/py_env-python3.10/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/repolk37zqn1/py_env-python3.10/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'

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
Generate pip dependency from conda......................................................................Passed
Check flake8 version is synced across flake8, yesqa, and environment.yml................................Passed
Validate correct capitalization among titles in documentation...........................................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
autotyping..............................................................................................Passed

Changed files

Changed 2 files:
  • .pre-commit-config.yaml
  • pandas/io/clipboard/init.py

:octocat: Repo | 📝 Issues | 🏬 Marketplace

@MarcoGorelli
Copy link
Member

superseded by #49428

@mroeschke mroeschke deleted the create-pr-action/pre-commit-config-update-0 branch November 1, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant