Skip to content

Rename pathlib hook parameters #9363

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 8 commits into from
Dec 3, 2021

Conversation

nicoddemus
Copy link
Member

Fixes #9283

@nicoddemus nicoddemus added this to the 7.0 milestone Dec 1, 2021
nicoddemus added a commit to nicoddemus/pytest-flakes that referenced this pull request Dec 1, 2021
This follows up asmeurer#42, we decided that using just `fspath` as the new
parameter that users should use would be confusing because it is too
close to `path` and also we have `fspath` already in some places of
the pytest public API (see pytest-dev/pytest#9283).

This PR updates the hook affected by this new change in pytest-dev/pytest#9363.
Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

its a bit unfortunate the names got longer but it may serve users better after all 👍

Copy link
Member

@The-Compiler The-Compiler left a comment

Choose a reason for hiding this comment

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

Looking great, thanks!

@The-Compiler The-Compiler merged commit a335ade into pytest-dev:main Dec 3, 2021
@nicoddemus nicoddemus deleted the pathlib-naming-9283 branch December 3, 2021 12:21
The-Compiler added a commit to The-Compiler/pytest that referenced this pull request Dec 3, 2021
The-Compiler added a commit that referenced this pull request Dec 6, 2021
* Improve reference and path/fspath docs

Closes #9283

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixups

* Add explanation

* Update wording after #9363

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
The-Compiler added a commit to The-Compiler/pytest that referenced this pull request Dec 6, 2021
The-Compiler added a commit to The-Compiler/pytest that referenced this pull request Dec 6, 2021
The-Compiler added a commit to The-Compiler/pytest that referenced this pull request Dec 6, 2021
The-Compiler added a commit that referenced this pull request Dec 6, 2021
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.

pytest 7: path vs. fspath, pathlib vs. py.path
4 participants