mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-26 19:15:51 +03:00
[PR #52] [MERGED] Use pydantic settings #80
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/initialcommit-com/git-sim/pull/52
Author: @paketb0te
Created: 2/10/2023
Status: ✅ Merged
Merged: 2/10/2023
Merged by: @initialcommit-io
Base:
main← Head:use_pydantic_settings📝 Commits (2)
f90e126use pydantic BaseSettings5609ab1remove obsolete env var handling📊 Changes
18 files changed (+170 additions, -173 deletions)
View changed files
📝
git_sim/__main__.py(+35 -35)📝
git_sim/add.py(+2 -2)📝
git_sim/animations.py(+9 -17)📝
git_sim/branch.py(+4 -4)📝
git_sim/cherrypick.py(+2 -2)📝
git_sim/commit.py(+3 -3)📝
git_sim/git_sim_base_command.py(+56 -56)📝
git_sim/log.py(+3 -3)📝
git_sim/merge.py(+2 -2)📝
git_sim/rebase.py(+7 -7)📝
git_sim/reset.py(+2 -2)📝
git_sim/restore.py(+2 -2)📝
git_sim/revert.py(+7 -7)📝
git_sim/settings.py(+25 -21)📝
git_sim/stash.py(+2 -2)📝
git_sim/status.py(+4 -4)📝
git_sim/tag.py(+4 -4)📝
setup.py(+1 -0)📄 Description
Pydantic's BaseSettings give us automatic parsing of env vars for all defined settings for free.
Git-sim will use the default values specified in the
Settingsclass if neither the corresponding flag nor env var is set.If an env var is set, it will be used instead of the default.
If a flag is set, that will always be used, overriding an env var (if present).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.