Option C Tools
Loading...
Searching...
No Matches
quality_gate.py File Reference

Go to the source code of this file.

Classes

class  oct.git.quality_gate.QualityGateResult
class  oct.git.quality_gate.PreCommitResult

Namespaces

namespace  oct
namespace  oct.git
namespace  oct.git.quality_gate

Functions

PreCommitResult oct.git.quality_gate.pre_commit_checks (Path project_root, str branch, str message, bool force_commit, str profile, dict octrc)
list[Path] oct.git.quality_gate._resolve_scope (Path project_root, Literal["staged", "changed", "all"] scope)
list[Path] oct.git.quality_gate._walk_secret_filenames (Path project_root, *, exclude_dirs, wildcard_exclude_dirs, patterns)
 oct.git.quality_gate._build_linter_context (Path project_root)
 oct.git.quality_gate._build_formatter_context (Path project_root, *, bool fix_mode=False)
list[tuple[str, int, str]] oct.git.quality_gate._run_secrets_pass (list[Path] all_files, Path project_root, *, float code_entropy_threshold=4.5, float docstring_entropy_threshold=5.0, float comment_entropy_threshold=5.0, str secret_match_mode="substring", list[dict]|None entropy_exclusions=None, list[str]|None excluded_field_patterns=None)
tuple[int, list[dict]] oct.git.quality_gate._run_lint_pass (list[Path] py_files, Path project_root, str profile, bool fix_mode=False)
int oct.git.quality_gate._run_format_pass (list[Path] py_files, Path project_root, bool fix_mode=False)
int oct.git.quality_gate._run_test_pass (Path project_root, bool sandbox=False)
QualityGateResult oct.git.quality_gate.run_quality_gate (Path project_root, Literal["staged", "changed", "all"] scope, Literal["proto", "compact", "strict"] profile, bool include_tests=False, bool fix=False, bool sandbox=False)
QualityGateResult oct.git.quality_gate.run_quality_gate_on_files (Path project_root, list[Path] files, Literal["proto", "compact", "strict"] profile, bool include_tests=False, bool fix=False, bool sandbox=False)