Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

prosehair/prose-pre-commit-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

prose-pre-commit-hooks

Some hooks for pre-commit.

See also: https://github.com/pre-commit/pre-commit

Using prose-pre-commit-hooks with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/prosehair/prose-pre-commit-hooks
    rev: v0.0.1  # Use the ref you want to point at
    hooks:
    -   id: manage-airflow-dag-task-id

Hooks available

manage-airflow-dag-task-id

Enforce the specification of version in dag filename and ensure the consistency between the dag file name, the dag_id and the task_id(s).

add-clubhouse-ticket

Add clubhouse tocket to the commit message if available from branch and is not already specified.

check-commit-msg

Check the pattern of general purpose commit message

check-prose-data-blog-commit-msg

Check the pattern of prose-data-blog related commit message

check-prose-data-blog-rmd-file-pattern

Check that the Rmd in the prose-data-blog follow the pattern yyyy-mm-dd-ch0000-title.Rmd

check-jupyter-notebook-cells-ran-in-a-row

Check that all the jupyter notebooks are executed in a row

As a standalone package

If you'd like to use these hooks, they're also available as a standalone package.

Simply pip install prose-pre-commit-hooks