Resolve the setup's folders in one module
CI / tests (pull_request) Successful in 4m39s

This commit is contained in:
2026-12-03 11:19:04 +01:00
parent 45eeef846d
commit 08afc3df85
31 changed files with 115 additions and 35 deletions
+2 -1
View File
@@ -11,10 +11,11 @@ from git_cli.git_repo import git
from rule_hook.git import guarded_git
from project_config.settings import held, ProjectConfig
from project_config.main import located
from loop_state.paths import RELEASE_ROOT
# The checkout this hook runs from: bin/rule_hook/ sits two folders below it.
OWN = pathlib.Path(__file__).resolve().parents[2]
OWN = RELEASE_ROOT
# settings.json gives rule-hook 30 seconds; rank_todo.py --check takes about a tenth of one.
OWN_CHECK_SECONDS = 20