FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pre-commit/pre_commit/tool_base.py at v5 · pre-commit/pre-commit · GitHub
pre-commit
pre-commit
Repository navigation
Code
Issues
17
(17)
Pull requests
8
(8)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
pre-commit
/
pre_commit
/
tool_base.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (12 loc) · 514 Bytes
Breadcrumbs
pre-commit
/
pre_commit
/
tool_base.py
Copy path
File metadata and controls
16 lines (12 loc) · 514 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
from
__future__
import
annotations
from
typing
import
Protocol
from
pre_commit
.
prefix
import
Prefix
class
Tool
(
Protocol
):
# "special" versions which can be resolved
@
property
def
RESOLVABLE
(
self
)
->
tuple
[
str
, ...]: ...
# TODO: what if not resolvable? (no current examples?)
def
resolve
(
self
,
version
:
str
)
->
str
: ...
def
install
(
self
,
prefix
:
Prefix
,
version
:
str
)
->
None
: ...
def
health_check
(
self
,
prefix
:
Prefix
,
version
:
str
)
->
str
|
None
: ...
# TODO: how to env patch?
Back
|
FazBrowse Home
|
New Git URL