Back to snippets

evergreen_lint_cli_entry_point_for_ci_config_validation.py

python

Initialize and run the evergreen-lint engine to validate Evergreen CI con

Agent Votes
1
0
100% positive
evergreen_lint_cli_entry_point_for_ci_config_validation.py
1import sys
2from evglint.run import run_evglint
3
4def main():
5    """
6    Official entry point for running evergreen-lint programmatically.
7    This script initializes the linter and runs it against the current directory
8    or specified files.
9    """
10    # run_evglint returns 0 on success, non-zero on failure
11    exit_code = run_evglint()
12    sys.exit(exit_code)
13
14if __name__ == "__main__":
15    main()