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

Update dependencies 2024 #123

Merged
merged 9 commits into from
Feb 2, 2024
Merged

Update dependencies 2024 #123

merged 9 commits into from
Feb 2, 2024

Conversation

perrygoy
Copy link
Member

@perrygoy perrygoy commented Feb 2, 2024

When attempting to do some codin', i got an error that ScreenPy required a version of Pydantic that is incompatible with the one i was trying to install.

Well let's fix that, i thought! But there was a pretty big thing to fix. This PR updates the dependencies in pre-commit and poetry, and also updates the copyright dates. Happy 2024!

@perrygoy perrygoy requested review from bandophahita, langgaibo and a team February 2, 2024 18:40
Copy link
Member Author

@perrygoy perrygoy left a comment

Choose a reason for hiding this comment

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

Here's some guideposts!

docs/conf.py Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
Comment on lines 31 to 36
def _parse_pyproject_toml(tool_path: str) -> dict[str, Any]:
"""Parse a pyproject toml file, pulling out relevant parts for ScreenPy.
class PyprojectTomlConfig(PydanticBaseSettingsSource):
"""Load setting configuration from pyproject.toml."""
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the biggest change.

Pydantic moved its settings management stuff into pydantic-settings, and changed a whole heckin' lot over there.

Some of the changes actually made things a lot easier for us, 'cause now you can just inherit from ScreenPySettings when you make your own configuration in an extension. Neat!

screenpy/given_when_then.py Show resolved Hide resolved
screenpy/resolutions/contains_the_entry.py Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
screenpy/configuration.py Show resolved Hide resolved
@perrygoy perrygoy merged commit 68c1535 into trunk Feb 2, 2024
23 checks passed
@perrygoy perrygoy deleted the update-dependencies-2024 branch February 2, 2024 22:12
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