[pylint] Implement auto-fix for missing-maxsplit-arg (PLC0207) by junhsonjb · Pull Request #19387 · astral-sh/ruff (original) (raw)
ruff-ecosystem results
Linter (stable)
✅ ecosystem check detected no linter changes.
Linter (preview)
ℹ️ ecosystem check detected linter changes. (+62 -62 violations, +0 -0 fixes in 13 projects; 42 projects unchanged)
PlasmaPy/PlasmaPy (+1 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- noxfile.py:453:16: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- noxfile.py:453:16: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
apache/airflow (+11 -11 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview --select ALL
- dev/backport/update_backport_status.py:78:21: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- dev/backport/update_backport_status.py:78:21: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- dev/breeze/src/airflow_breeze/commands/common_options.py:502:26: PLC0207 Pass
maxsplit=1intostr.split()
- dev/breeze/src/airflow_breeze/commands/common_options.py:502:26: PLC0207 [*] Replace with
split(..., maxsplit=1).
- dev/breeze/src/airflow_breeze/commands/release_management_commands.py:2633:50: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- dev/breeze/src/airflow_breeze/commands/release_management_commands.py:2633:50: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py:714:34: PLC0207 Pass
maxsplit=1intostr.split()
- dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py:714:34: PLC0207 [*] Replace with
split(..., maxsplit=1).
- dev/breeze/src/airflow_breeze/utils/run_utils.py:120:25: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- dev/breeze/src/airflow_breeze/utils/run_utils.py:120:25: PLC0207 [*] Replace with
rsplit(..., maxsplit=1). ... 12 additional changes omitted for project
apache/superset (+2 -2 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview --select ALL
- tests/common/query_context_generator.py:214:29: PLC0207 Pass
maxsplit=1intostr.split()
- tests/common/query_context_generator.py:214:29: PLC0207 [*] Replace with
split(..., maxsplit=1).
- tests/common/query_context_generator.py:255:22: PLC0207 Pass
maxsplit=1intostr.split()
- tests/common/query_context_generator.py:255:22: PLC0207 [*] Replace with
split(..., maxsplit=1).
bokeh/bokeh (+3 -3 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview --select ALL
- src/bokeh/io/notebook.py:663:26: PLC0207 Pass
maxsplit=1intostr.split()
- src/bokeh/io/notebook.py:663:26: PLC0207 [*] Replace with
split(..., maxsplit=1).
- src/bokeh/util/token.py:142:41: PLC0207 Pass
maxsplit=1intostr.split()
- src/bokeh/util/token.py:142:41: PLC0207 [*] Replace with
split(..., maxsplit=1).
- src/bokeh/util/token.py:155:41: PLC0207 Pass
maxsplit=1intostr.split()
- src/bokeh/util/token.py:155:41: PLC0207 [*] Replace with
split(..., maxsplit=1).
freedomofpress/securedrop (+1 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- securedrop/store.py:345:49: PLC0207 Pass
maxsplit=1intostr.split()
- securedrop/store.py:345:49: PLC0207 [*] Replace with
split(..., maxsplit=1).
ibis-project/ibis (+1 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- ibis/examples/gen_registry.py:125:52: PLC0207 Pass
maxsplit=1intostr.split()
- ibis/examples/gen_registry.py:125:52: PLC0207 [*] Replace with
split(..., maxsplit=1).
langchain-ai/langchain (+22 -22 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- libs/core/langchain_core/_api/deprecation.py:360:17: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- libs/core/langchain_core/_api/deprecation.py:360:17: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- libs/core/langchain_core/_api/deprecation.py:360:56: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- libs/core/langchain_core/_api/deprecation.py:360:56: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- libs/core/langchain_core/_api/deprecation.py:368:17: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- libs/core/langchain_core/_api/deprecation.py:368:17: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- libs/core/langchain_core/_api/deprecation.py:369:16: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- libs/core/langchain_core/_api/deprecation.py:369:16: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- libs/core/langchain_core/_api/deprecation.py:473:24: PLC0207 Pass
maxsplit=1intostr.split()
- libs/core/langchain_core/_api/deprecation.py:473:24: PLC0207 [*] Replace with
split(..., maxsplit=1).
- libs/core/langchain_core/_api/deprecation.py:492:27: PLC0207 Pass
maxsplit=1intostr.split()
- libs/core/langchain_core/_api/deprecation.py:492:27: PLC0207 [*] Replace with
split(..., maxsplit=1).
- libs/core/langchain_core/runnables/graph_mermaid.py:157:24: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- libs/core/langchain_core/runnables/graph_mermaid.py:157:24: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- libs/core/langchain_core/utils/mustache.py:85:19: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- libs/core/langchain_core/utils/mustache.py:85:19: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- libs/core/langchain_core/utils/utils.py:140:32: PLC0207 Pass
maxsplit=1intostr.split()... 27 additional changes omitted for project
pandas-dev/pandas (+1 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- pandas/compat/_optional.py:165:14: PLC0207 Pass
maxsplit=1intostr.split()
- pandas/compat/_optional.py:165:14: PLC0207 [*] Replace with
split(..., maxsplit=1).
pypa/cibuildwheel (+3 -3 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- bin/update_pythons.py:158:22: PLC0207 Pass
maxsplit=1intostr.split()
- bin/update_pythons.py:158:22: PLC0207 [*] Replace with
split(..., maxsplit=1).
- cibuildwheel/platforms/macos.py:153:31: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- cibuildwheel/platforms/macos.py:153:31: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- cibuildwheel/selector.py:79:26: PLC0207 Pass
maxsplit=1intostr.split()
- cibuildwheel/selector.py:79:26: PLC0207 [*] Replace with
split(..., maxsplit=1).
zulip/zulip (+12 -12 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview --select ALL
- zerver/lib/send_email.py:287:16: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- zerver/lib/send_email.py:287:16: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- zerver/lib/send_email.py:429:21: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- zerver/lib/send_email.py:429:21: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- zerver/lib/upload/local.py:67:17: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- zerver/lib/upload/local.py:67:17: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- zerver/lib/upload/s3.py:176:25: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- zerver/lib/upload/s3.py:176:25: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
- zerver/lib/webhooks/common.py:249:26: PLC0207 Pass
maxsplit=1intostr.split()
- zerver/lib/webhooks/common.py:249:26: PLC0207 [*] Replace with
split(..., maxsplit=1). ... 14 additional changes omitted for project
wntrblm/nox (+1 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- tests/test_sessions.py:1199:44: PLC0207 Instead of
str.split(), callstr.rsplit()and passmaxsplit=1
- tests/test_sessions.py:1199:44: PLC0207 [*] Replace with
rsplit(..., maxsplit=1).
pytest-dev/pytest (+3 -3 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- src/_pytest/config/findpaths.py:160:16: PLC0207 Pass
maxsplit=1intostr.split()
- src/_pytest/config/findpaths.py:160:16: PLC0207 [*] Replace with
split(..., maxsplit=1).
- src/_pytest/terminal.py:1012:40: PLC0207 Pass
maxsplit=1intostr.split()
- src/_pytest/terminal.py:1012:40: PLC0207 [*] Replace with
split(..., maxsplit=1).
- src/_pytest/terminal.py:462:41: PLC0207 Pass
maxsplit=1intostr.split()
- src/_pytest/terminal.py:462:41: PLC0207 [*] Replace with
split(..., maxsplit=1).
astropy/astropy (+1 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview
- astropy/io/ascii/latex.py:438:16: PLC0207 Pass
maxsplit=1intostr.split()
- astropy/io/ascii/latex.py:438:16: PLC0207 [*] Replace with
split(..., maxsplit=1).
Changes by rule (1 rules affected)
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| PLC0207 | 124 | 62 | 62 | 0 | 0 |