FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
commitizen/commitizen/factory.py at master · commitizen-tools/commitizen · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
commitizen-tools
/
commitizen
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
349
Star
3.5k
Code
Issues
115
Pull requests
47
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
commitizen
/
commitizen
/
factory.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (15 loc) · 612 Bytes
Breadcrumbs
commitizen
/
commitizen
/
factory.py
Copy path
File metadata and controls
17 lines (15 loc) · 612 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from
commitizen
import
BaseCommitizen
from
commitizen
.
config
import
BaseConfig
from
commitizen
.
cz
import
registry
from
commitizen
.
exceptions
import
NoCommitizenFoundException
def
committer_factory
(
config
:
BaseConfig
)
->
BaseCommitizen
:
"""Return the correct commitizen existing in the registry."""
name
:
str
=
config
.
settings
[
"name"
]
try
:
return
registry
[
name
](
config
)
except
KeyError
:
msg_error
=
(
"The committer has not been found in the system.
\n
\n
"
f"Try running 'pip install
{
name
}
'
\n
"
)
raise
NoCommitizenFoundException
(
msg_error
)
Back
|
FazBrowse Home
|
New Git URL