GithubHelp home page GithubHelp logo

isabella232 / pre-commit-hooks-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alma/pre-commit-hooks

0.0 0.0 0.0 23 KB

Alma pre-commit-hooks

License: MIT License

Python 44.55% Shell 55.45%

pre-commit-hooks-2's Introduction

Alma pre-commit-hooks

Some Alma hooks for pre-commit.

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

Using pre-commit-hooks with pre-commit

Add this to your .pre-commit-config.yaml. Only use the sections of the checks you want to use (each section starts with - id: a-check-name.

-   repo: https://github.com/alma/pre-commit-hooks
    rev: 1.0.0
    hooks:
    - id: check-file-change
      files: "^config.*.yaml$"
      args:
        - --check
        - config.dev.yaml:eacaec4b8c4665dfce2d0e082acd0d39787457da
        - config.prod.yaml:eacaec4b8c4665dfce2d0e082acd0d39787457da
        - --
    - id: check-comments

Hooks available

The hooks below are available in this repository.

check-file-change

Make sure files didn't change. You must provide list of target files with their expected checksum in a given algorithm. (Default is sha1) You can change the algorithm with the --algorithm=sha256 option.

check-comment

Checks that the modified files contain at least one line of comment.

Dependencies

This hook relies on (should be installed on the local machine / VM):

pre-commit-hooks-2's People

Contributors

jmcazaux avatar natim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.