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

Accept PathLike as project root #344

Merged
merged 6 commits into from
Jul 13, 2023

Conversation

0HyperCube
Copy link
Contributor

Goal

Currently if a PathLike object is passed in such as PurePath or Path from pathlib, the path will not be set and a warning is produced. The PathLike object should be converted to a string and accepted.

Changeset

  • PathLike objects are now accepted
  • Warning message for invalid paths has changed

Testing

Modification to test_validate_project_root to ensure that PathLike objects are accepted and converted to strings.

@imjoehaines imjoehaines force-pushed the string-project-path branch 6 times, most recently from 556eb80 to 4bbf5c9 Compare July 13, 2023 08:16
On Python 3.5 we have to use PurePath, but can use PathLike on later
versions
@imjoehaines imjoehaines merged commit 7300cd4 into bugsnag:next Jul 13, 2023
9 checks passed
@imjoehaines imjoehaines mentioned this pull request Jul 14, 2023
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.

None yet

2 participants