Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ _config_count
Function
_config_count
tests/commands/gc_test.py:26–28 ·
view source on GitHub ↗
(store)
Source
from the content-addressed store, hash-verified
24
25
26
def
_config_count(store):
27
with
store.connect()
as
db:
28
return
db.execute(
'SELECT COUNT(1) FROM configs'
).fetchone()[0]
29
30
31
def
_remove_config_assert_cleared(store, cap_out):
Callers
7
_remove_config_assert_cleared
Function · 0.85
test_gc
Function · 0.85
test_gc_repo_not_cloned
Function · 0.85
test_gc_unused_local_repo_with_env
Function · 0.85
test_gc_config_with_missing_hook
Function · 0.85
test_gc_deletes_invalid_configs
Function · 0.85
test_invalid_manifest_gcd
Function · 0.85
Calls
1
connect
Method · 0.80
Tested by
no test coverage detected