dym-ok / pre-commit-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pre-commit hooks action

test pre-commit-action

This GitHub action runs pre-commit hooks in code quality and linting workflows.

Examples of usage

Add a .pre-commit-config.yaml file to your GitHub project and create a GitHub workflow like this:

name: Code Quality
on:
  pull_request:
  push:
    branches:
      - main

jobs:
  linting:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dym-ok/pre-commit-action@v1

About

License:Apache License 2.0