oc_chat
Loading...
Searching...
No Matches
oct_tools.py File Reference

Go to the source code of this file.

Namespaces

namespace  oc_chat
namespace  oc_chat.tools
namespace  oc_chat.tools.oct_tools

Functions

Optional[str] oc_chat.tools.oct_tools._oct_exe ()
"Callable[[str], None]" oc_chat.tools.oct_tools._note_activity_lines_of_one_stream ()
_OctResult oc_chat.tools.oct_tools._run_oct (list[str] args, str cwd, int timeout=60)
"ToolError | None" oc_chat.tools.oct_tools._reject_operand (str value, str field)
"ToolError | None" oc_chat.tools.oct_tools._reject_operands ("list[str]" values, str field)
_OctResult oc_chat.tools.oct_tools.oct_lint (str path=".", bool fix_headers=False, bool dry_run=False, bool json_output=False, bool changed_only=False, int timeout=120)
_OctResult oc_chat.tools.oct_tools.oct_health (bool json_output=False, bool verbose=False, int timeout=300)
_OctResult oc_chat.tools.oct_tools.oct_typecheck (bool json_output=False, int timeout=120)
_OctResult oc_chat.tools.oct_tools.oct_new (str path, bool force=False, bool test=False, bool dry_run=False, bool verbose=False, int timeout=30)
dict oc_chat.tools.oct_tools.oct_test (str profile="strict", "int | None" seed=None, "int | str | None" workers=None, "str | None" marker=None, "list[str] | None" nodeids=None, bool dry_run=False, "int | None" per_test_timeout=None, int timeout=900)
_OctResult oc_chat.tools.oct_tools.oct_git_status (bool json_output=False, bool no_check=False, Optional[str] scope=None, int timeout=30)
_OctResult oc_chat.tools.oct_tools.oct_git_check (bool staged_only=False, bool all_files=False, bool include_tests=False, bool fix=False, Optional[str] profile=None, bool json_output=False, bool sandbox=False, int timeout=120)
_OctResult oc_chat.tools.oct_tools.oct_git_init (bool dry_run=False, bool github=False, bool no_hooks=False, int timeout=60)
_OctResult oc_chat.tools.oct_tools.oct_git_add (Optional[list[str]] paths=None, bool patch=False, bool update=False, bool all_files=False, bool dry_run=False, bool json_output=False, int timeout=60)
_OctResult oc_chat.tools.oct_tools.oct_git_commit (list[str] message, bool force=False, bool no_verify=False, Optional[str] profile=None, bool json_output=False, bool ignore_unstaged_mutation=False, int timeout=180)
_OctResult oc_chat.tools.oct_tools.oct_git_branch (Optional[str] create=None, Optional[str] switch=None, bool json_output=False, int timeout=30)
_OctResult oc_chat.tools.oct_tools.oct_git_restore (Optional[list[str]] paths=None, bool staged=False, bool all_files=False, bool yes=False, bool json_output=False, int timeout=30)
_OctResult oc_chat.tools.oct_tools.oct_git_ignore (Optional[list[str]] patterns=None, Optional[str] remove=None, bool list_patterns=False, Optional[str] scope=None, bool json_output=False, int timeout=30)
_OctResult oc_chat.tools.oct_tools.oct_git_commit_msg (str message_file, bool json_output=False, int timeout=30)
_OctResult oc_chat.tools.oct_tools.oct_git_changelog (Optional[str] release=None, Optional[str] since=None, bool dry_run=False, bool json_output=False, int timeout=60)
_OctResult oc_chat.tools.oct_tools.oct_git_hooks (str action, bool force=False, int timeout=30)

Variables

 oc_chat.tools.oct_tools._OctResult = CommandResult | MissingDependency | ToolError
 oc_chat.tools.oct_tools._OC_CHAT_SUBPROJECT_ROOT = Path(__file__).resolve().parents[2]
int oc_chat.tools.oct_tools._OCT_TEST_TIMEOUT_CAP = 1800
int oc_chat.tools.oct_tools._OCT_TEST_NON_PASSED_CAP = 50
dict oc_chat.tools.oct_tools.TOOLS
list oc_chat.tools.oct_tools.SCHEMAS