The Power of Pre-Commit for Python Developers: Tips and Best Practices

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. black

    The uncompromising Python code formatter

    repos: - repo: https://github.com/psf/black rev: 21.7b0 hooks: - id: black language_version: python3.8 - repo: https://github.com/PyCQA/flake8 rev: 3.9.2 hooks: - id: flake8

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Flake8

    flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.

    repos: - repo: https://github.com/psf/black rev: 21.7b0 hooks: - id: black language_version: python3.8 - repo: https://github.com/PyCQA/flake8 rev: 3.9.2 hooks: - id: flake8

  4. mirrors-flake8

    repos: - repo: https://github.com/pre-commit/mirrors-flake8 rev: v3.9.2 hooks: - id: flake8 args: [--exclude=venv]

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

  • Testing Python Code Using UnitTest

    3 projects | dev.to | 9 Nov 2023
  • Is it considered rude to completely change the formatting of someone else's code when making a PR?

    3 projects | /r/cscareerquestions | 12 Apr 2023
  • Ruff: one Python linter to rule them all

    3 projects | /r/Python | 10 Apr 2023
  • How pythonic is enough pythonic?

    2 projects | /r/learnpython | 27 Mar 2022
  • Newbie here: blank spaces for better code readability?

    4 projects | /r/learnpython | 11 Jan 2022