Skip to content

⬆️ UPGRADE: Autoupdate pre-commit config #52345

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 Apr 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.2.1-py2.py3-none-any.whl (202 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 202.7/202.7 KB 4.5 MB/s eta 0:00:00
Collecting nodeenv>=0.11.1
  Downloading nodeenv-1.7.0-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from pre-commit) (5.4.1)
Collecting virtualenv>=20.10.0
  Downloading virtualenv-20.21.0-py3-none-any.whl (8.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.7/8.7 MB 19.7 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 identify>=1.0.0
  Downloading identify-2.5.22-py2.py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.8/98.8 KB 42.9 MB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nodeenv>=0.11.1->pre-commit) (59.6.0)
Collecting filelock<4,>=3.4.1
  Downloading filelock-3.10.7-py3-none-any.whl (10 kB)
Collecting platformdirs<4,>=2.4
  Downloading platformdirs-3.2.0-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 47.2 MB/s eta 0:00:00
Installing collected packages: distlib, platformdirs, nodeenv, identify, filelock, cfgv, virtualenv, pre-commit
Successfully installed cfgv-3.3.1 distlib-0.3.6 filelock-3.10.7 identify-2.5.22 nodeenv-1.7.0 platformdirs-3.2.0 pre-commit-3.2.1 virtualenv-20.21.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.259 -> v0.0.260.
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.
updating v2.2.2 -> v2.2.4.
Updating https://github.com/MarcoGorelli/cython-lint ... [INFO] Initializing environment for https://github.com/MarcoGorelli/cython-lint.
updating v0.12.5 -> v0.14.0.
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.2 -> v2.17.1.
Updating https://github.com/pycqa/pylint ... updating v2.16.2 -> v2.17.1.
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:pyright@1.1.292.
[INFO] Initializing environment for local.
[INFO] Initializing environment for local:tomli,pyyaml.
[INFO] Initializing environment for local:autotyping==23.3.0,libcst==0.4.9.
[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...
black...................................................................................................Passed
ruff....................................................................................................Failed
- hook id: ruff
- exit code: 1
- files were modified by this hook

asv_bench/benchmarks/algorithms.py:95:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/algorithms.py:117:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/attrs_caching.py:18:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/attrs_caching.py:41:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/categoricals.py:229:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/categoricals.py:232:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/categoricals.py:235:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/categoricals.py:238:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/frame_methods.py:274:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/frame_methods.py:277:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/frame_methods.py:280:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/frame_methods.py:283:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/frame_methods.py:523:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/gil.py:130:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
asv_bench/benchmarks/gil.py:187:13: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/gil.py:194:13: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/gil.py:201:13: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/groupby.py:104:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/groupby.py:148:9: B018 Found useless attribute access. Either assign it to a variable or remove it.
asv_bench/benchmarks/groupby.py:151:9: B018 Found useless attribute access. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_cached_properties.py:54:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_cached_properties.py:57:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_cached_properties.py:60:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_cached_properties.py:63:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_cached_properties.py:66:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_cached_properties.py:69:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_cached_properties.py:72:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_object.py:216:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_object.py:219:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_object.py:225:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_object.py:228:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/index_object.py:245:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/indexing.py:421:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/indexing.py:424:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/libs.py:106:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/multiindex_object.py:141:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/multiindex_object.py:201:9: B018 Found useless attribute access. Either assign it to a variable or remove it.
asv_bench/benchmarks/multiindex_object.py:204:9: B018 Found useless attribute access. Either assign it to a variable or remove it.
asv_bench/benchmarks/reshape.py:93:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timedelta.py:20:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timedelta.py:23:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timedelta.py:26:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timedelta.py:29:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timedelta.py:32:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:51:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:57:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:60:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:66:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:276:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:288:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:291:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/timeseries.py:294:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timedelta.py:60:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timedelta.py:63:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timedelta.py:66:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timedelta.py:69:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:60:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:63:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:66:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:69:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:72:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:75:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:78:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:81:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:84:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:87:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:90:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:93:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:96:9: B018 Found useless expression. Either assign it to a variable or remove it.
asv_bench/benchmarks/tslibs/timestamp.py:99:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/core/arrays/_ranges.py:55:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/api/test_api.py:260:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/arrays/sparse/test_accessor.py:104:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/arrays/sparse/test_accessor.py:111:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/base/test_constructors.py:82:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/base/test_constructors.py:90:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/base/test_conversion.py:281:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/config/test_config.py:461:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/extension/base/groupby.py:145:17: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/extension/test_arrow.py:588:17: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/extension/test_arrow.py:2107:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/frame/indexing/test_getitem.py:373:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/indexing/test_getitem.py:389:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/indexing/test_indexing.py:281:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/methods/test_rename.py:392:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/test_arithmetic.py:712:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/test_block_internals.py:278:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/test_nonunique_indexes.py:16:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/test_subclass.py:145:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/frame/test_unary.py:57:14: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/frame/test_unary.py:147:14: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/generic/test_generic.py:146:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/generic/test_generic.py:148:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/generic/test_generic.py:150:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/groupby/test_grouping.py:1091:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/groupby/test_grouping.py:1095:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/common.py:682:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/common.py:777:17: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/datetimes/test_date_range.py:802:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/datetimes/test_misc.py:28:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/datetimes/test_misc.py:32:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/indexes/datetimes/test_misc.py:135:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/datetimes/test_timezones.py:780:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/multi/test_get_level_values.py:122:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/multi/test_take.py:17:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/period/methods/test_is_full.py:21:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/period/test_freq_attr.py:19:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/ranges/test_range.py:291:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/test_common.py:487:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/test_common.py:488:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/test_indexing.py:68:17: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/timedeltas/test_scalar_compat.py:134:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/timedeltas/test_timedelta.py:83:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/timedeltas/test_timedelta.py:85:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexes/timedeltas/test_timedelta.py:87:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexing/test_iloc.py:238:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexing/test_iloc.py:638:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexing/test_iloc.py:647:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexing/test_iloc.py:659:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/indexing/test_iloc.py:662:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexing/test_partial.py:150:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/indexing/test_partial.py:156:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/interchange/test_impl.py:184:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/interchange/test_spec_conformance.py:76:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/io/excel/test_readers.py:811:89: E501 Line too long (96 > 88 characters)
pandas/tests/io/formats/test_format.py:632:89: E501 Line too long (101 > 88 characters)
pandas/tests/io/formats/test_format.py:644:89: E501 Line too long (92 > 88 characters)
pandas/tests/io/formats/test_format.py:656:89: E501 Line too long (101 > 88 characters)
pandas/tests/io/formats/test_format.py:668:89: E501 Line too long (101 > 88 characters)
pandas/tests/io/formats/test_format.py:683:89: E501 Line too long (107 > 88 characters)
pandas/tests/io/formats/test_format.py:701:89: E501 Line too long (101 > 88 characters)
pandas/tests/io/formats/test_format.py:769:89: E501 Line too long (105 > 88 characters)
pandas/tests/io/formats/test_format.py:783:89: E501 Line too long (96 > 88 characters)
pandas/tests/io/formats/test_format.py:797:89: E501 Line too long (105 > 88 characters)
pandas/tests/io/formats/test_format.py:811:89: E501 Line too long (105 > 88 characters)
pandas/tests/io/formats/test_format.py:826:89: E501 Line too long (111 > 88 characters)
pandas/tests/io/formats/test_format.py:844:89: E501 Line too long (105 > 88 characters)
pandas/tests/io/formats/test_format.py:889:89: E501 Line too long (96 > 88 characters)
pandas/tests/io/formats/test_format.py:2208:89: E501 Line too long (96 > 88 characters)
pandas/tests/io/formats/test_format.py:2213:89: E501 Line too long (96 > 88 characters)
pandas/tests/io/formats/test_format.py:2217:89: E501 Line too long (100 > 88 characters)
pandas/tests/io/formats/test_format.py:2219:89: E501 Line too long (103 > 88 characters)
pandas/tests/io/formats/test_format.py:2225:89: E501 Line too long (115 > 88 characters)
pandas/tests/io/formats/test_format.py:2287:89: E501 Line too long (91 > 88 characters)
pandas/tests/io/formats/test_format.py:2295:89: E501 Line too long (91 > 88 characters)
pandas/tests/io/formats/test_format.py:2303:89: E501 Line too long (104 > 88 characters)
pandas/tests/io/formats/test_format.py:2383:89: E501 Line too long (96 > 88 characters)
pandas/tests/io/formats/test_info.py:369:5: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/io/formats/test_info.py:373:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/io/formats/test_info.py:375:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/io/parser/test_encoding.py:230:89: E501 Line too long (89 > 88 characters)
pandas/tests/io/pytables/test_file_handling.py:433:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/io/pytables/test_store.py:388:17: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/io/xml/test_xml.py:457:89: E501 Line too long (105 > 88 characters)
pandas/tests/io/xml/test_xml.py:461:89: E501 Line too long (93 > 88 characters)
pandas/tests/plotting/frame/test_frame.py:1811:17: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/period/test_asfreq.py:676:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/period/test_asfreq.py:678:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/test_na_scalar.py:48:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_constructors.py:531:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_timedelta.py:328:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_timedelta.py:410:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_timedelta.py:412:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_timedelta.py:414:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_timedelta.py:436:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_timedelta.py:438:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timedelta/test_timedelta.py:440:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timestamp/test_constructors.py:790:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/scalar/timestamp/test_timestamp.py:102:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/series/accessors/test_cat_accessor.py:65:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/series/accessors/test_cat_accessor.py:78:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/series/accessors/test_cat_accessor.py:82:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/series/accessors/test_cat_accessor.py:84:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/series/accessors/test_cat_accessor.py:86:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/series/accessors/test_cat_accessor.py:222:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/series/accessors/test_dt_accessor.py:680:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/series/indexing/test_indexing.py:279:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/series/methods/test_is_unique.py:38:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/series/test_api.py:186:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/series/test_api.py:206:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/strings/test_api.py:24:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/strings/test_api.py:51:13: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/strings/test_strings.py:626:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/strings/test_strings.py:636:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/test_errors.py:108:9: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/test_register_accessor.py:109:13: B018 Found useless attribute access. Either assign it to a variable or remove it.
pandas/tests/tseries/offsets/test_offsets.py:1042:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/window/test_api.py:56:9: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/window/test_ewm.py:15:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/window/test_expanding.py:18:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/window/test_rolling.py:36:5: B018 Found useless expression. Either assign it to a variable or remove it.
pandas/tests/window/test_timeseries_window.py:53:9: B018 Found useless expression. Either assign it to a variable or remove it.
Found 229 errors (37 fixed, 192 remaining).

vulture.................................................................................................Passed
codespell...............................................................................................Failed
- hook id: codespell
- exit code: 65

pandas/tests/io/formats/style/test_style.py:1155: mulitiple ==> multiple
pandas/tests/groupby/test_counting.py:260: delt ==> dealt
pandas/tests/groupby/test_counting.py:262: delt ==> dealt
pandas/tests/groupby/test_counting.py:263: delt ==> dealt
pandas/core/series.py:2242: lama ==> llama
pandas/core/series.py:2244: lama ==> llama
pandas/core/series.py:2246: lama ==> llama
pandas/core/series.py:2255: lama ==> llama
pandas/core/series.py:2267: lama ==> llama
pandas/core/series.py:4964: lama ==> llama
pandas/core/series.py:4976: lama ==> llama
pandas/core/frame.py:5199: lama ==> llama
pandas/core/frame.py:5215: lama ==> llama
pandas/core/frame.py:5226: lama ==> llama
pandas/core/frame.py:5235: lama ==> llama

cython-lint.............................................................................................Passed
double-quote Cython strings.............................................................................Passed
debug statements (python)...............................................................................Passed
fix end of files........................................................................................Passed
trim trailing whitespace................................................................................Passed
cpplint.................................................................................................Passed
isort...................................................................................................Failed
- hook id: isort
- files were modified by this hook

Fixing /home/runner/work/pandas/pandas/pandas/_libs/indexing.pyi
Fixing /home/runner/work/pandas/pandas/pandas/_libs/tslibs/nattype.pyi
Skipped 1 files

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
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
import annotations from __future__......................................................................Passed
check that test names start with 'test'.................................................................Passed
sort whatsnew entries by issue number...................................................................Passed

Changed files

Changed 11 files:
  • .pre-commit-config.yaml
  • pandas/_libs/indexing.pyi
  • pandas/_libs/interval.pyi
  • pandas/_libs/lib.pyi
  • pandas/_libs/ops.pyi
  • pandas/_libs/properties.pyi
  • pandas/_libs/tslibs/nattype.pyi
  • pandas/_libs/tslibs/offsets.pyi
  • pandas/_libs/tslibs/timedeltas.pyi
  • pandas/_libs/tslibs/timestamps.pyi
  • typings/numba.pyi

:octocat: Repo | 📝 Issues | 🏬 Marketplace

Comment on lines -15 to +9
_NaTComparisonTypes = datetime | timedelta | Period | np.datetime64 | np.timedelta64
_NaTComparisonTypes = ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 is this from ruff? looks a bit odd, will look into it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need to declare it as a TypeAlias explicitly. _NaTComparisonTypes: TypeAlias = datetime | ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

astral-sh/ruff#3860 will hopefully take care of at least the TypeVar cases. But we might need to add TypeAlias to non-TypeVar cases.

@MarcoGorelli
Copy link
Member

there's a separate PR taking this forwards, so let's close this one

@mroeschke mroeschke deleted the create-pr-action/pre-commit-config-update-0 branch April 28, 2023 19:17
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.

2 participants