Setting Up Pre-Commit Hooks in GitHub: Ensuring Code Quality and Consistency

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SaaSHub - Software Alternatives and Reviews
  • black

    The uncompromising Python code formatter

    repos: - repo: https://github.com/psf/black rev: hooks: - id: black

  • pre-commit-hooks

    Some out-of-the-box hooks for pre-commit

    repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: hooks: - id: check-json

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

  • mirrors-prettier

    mirror of the `prettier` npm package for pre-commit

    repos: - repo: https://github.com/pre-commit/mirrors-prettier rev: hooks: - id: prettier files: \.(json|markdown|md|yaml|yml)$

  • pylint

    It's not just a linter that annoys you! [Moved to: https://github.com/pylint-dev/pylint] (by PyCQA)

    repos: - repo: https://github.com/PyCQA/pylint rev: hooks: - id: pylint name: pylint entry: pylint language: system types: [python] env: PYTHONPATH: "./"

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts