Skip to content
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

Show custom message for Path.joinpath with starred arguments #7852

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

charliermarsh
Copy link
Member

Closes #7833.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2023

PR Check Results

Ecosystem

ℹ️ ecosystem check detected changes. (+7, -7, 0 error(s))

airflow (+4, -4)

+ airflow/providers/google/cloud/transfers/sql_to_gcs.py:492:27: PTH118 `os.path.join()` should be replaced by `Path.joinpath()`
- airflow/providers/google/cloud/transfers/sql_to_gcs.py:492:27: PTH118 `os.path.join()` should be replaced by `Path` with `/` operator
+ dev/provider_packages/prepare_provider_packages.py:281:12: PTH118 `os.path.join()` should be replaced by `Path.joinpath()`
- dev/provider_packages/prepare_provider_packages.py:281:12: PTH118 `os.path.join()` should be replaced by `Path` with `/` operator
+ dev/provider_packages/prepare_provider_packages.py:833:12: PTH118 `os.path.join()` should be replaced by `Path.joinpath()`
- dev/provider_packages/prepare_provider_packages.py:833:12: PTH118 `os.path.join()` should be replaced by `Path` with `/` operator
+ dev/provider_packages/prepare_provider_packages.py:851:29: PTH118 `os.path.join()` should be replaced by `Path.joinpath()`
- dev/provider_packages/prepare_provider_packages.py:851:29: PTH118 `os.path.join()` should be replaced by `Path` with `/` operator

bokeh (+1, -1)

+ src/bokeh/util/compiler.py:525:36: PTH118 `os.path.join()` should be replaced by `Path.joinpath()`
- src/bokeh/util/compiler.py:525:36: PTH118 `os.path.join()` should be replaced by `Path` with `/` operator

zulip (+2, -2)

+ tools/documentation_crawler/documentation_crawler/spiders/check_documentation.py:12:19: PTH118 `os.path.join()` should be replaced by `Path.joinpath()`
- tools/documentation_crawler/documentation_crawler/spiders/check_documentation.py:12:19: PTH118 `os.path.join()` should be replaced by `Path` with `/` operator
+ tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py:12:42: PTH118 `os.path.join()` should be replaced by `Path.joinpath()`
- tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py:12:42: PTH118 `os.path.join()` should be replaced by `Path` with `/` operator

Rules changed: 1
Rule Changes Additions Removals
PTH118 14 7 7

format!("`os.{module}.join()` should be replaced by `Path` with `/` operator")
}
Joiner::Joinpath => {
format!("`os.{module}.join()` should be replaced by `Path.joinpath`")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
format!("`os.{module}.join()` should be replaced by `Path.joinpath`")
format!("`os.{module}.join()` should be replaced by `Path.joinpath()`")

@charliermarsh charliermarsh enabled auto-merge (squash) October 9, 2023 11:53
@charliermarsh charliermarsh merged commit 61a4133 into main Oct 9, 2023
15 checks passed
@charliermarsh charliermarsh deleted the charlie/join branch October 9, 2023 12:04
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.

PTH118: pseudo false positive
2 participants