pre-commit - Demisto SDK Guide - Cortex - Security Operations

Demisto SDK Guide

Creation date
2023-08-01
Last date published
2024-04-01
Category
Demisto SDK Guide
Abstract

The pre-commit command runs checks and linters and generates a YAML file based on the content run.

This command enhances the content development experience by running a variety of checks and linters. It utilizes the pre-commit infrastructure, and a template file saved under the content repository (locally or remotely) to dynamically generate a pre-commit-config.yaml file, based on the content run. The pre-commit command only runs when there are modified files, unless specific input files are provided.

Note

An internet connection is required to use pre-commit.