---
title: "Discussion on \"Pre-commit hooks and linting configurations for Python projects\" | Hashnode"
description: "Discussion on \"Pre-commit hooks and linting configurations for Python projects\". In this article, we'll configure pre-commit hooks to automatically lint our code before committing changes to Github.\nSince we're using Python, we can add autopep8 to make our code align with PEP8 guidelines or if the project includes YAML files we c..."
url: "https://hashnode.com/posts/pre-commit-hooks-and-linting-configurations-for-python-projects/63baa301230b70a75709933d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pre-commit hooks and linting configurations for Python projects](https://developertimeline.hashnode.dev/pre-commit-hooks-and-linting-configurations-for-python-projects?utm_source=hashnode&utm_medium=feed)

In this article, we'll configure pre-commit hooks to automatically lint our code before committing changes to Github. Since we're using Python, we can add autopep8 to make our code align with PEP8 guidelines or if the project includes YAML files we c...

Jan 8, 2023 · 4 min read · developertimeline.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#python-projects](https://hashnode.com/tag/python-projects)

## Written by

[Developer Timeline](https://hashnode.com/@thepylot)

@thepylot

  
[View profile](https://hashnode.com/@thepylot)

Python & DevOps

Sharing articles based on real experience

## Responses 1

Markdown supported · ⌘↵ to post

[Christian Ledermann](https://hashnode.com/@cleder)

[Jan 8, 2023](https://hashnode.com/posts/pre-commit-hooks-and-linting-configurations-for-python-projects/63baa301230b70a75709933d/comment/63babfce95025da0eecebe3a)

Have you heard about [ruff](https://github.com/charliermarsh/ruff)? A 10x-100x faster replacement for flake8, many flake8 plugins with the ability to autofix.

[Developer Timeline](https://hashnode.com/@thepylot)

[Jan 8, 2023](https://hashnode.com/posts/pre-commit-hooks-and-linting-configurations-for-python-projects/63baa301230b70a75709933d/comment/63babfce95025da0eecebe3a#reply-63baed9b624134a0c9b5624d)

Thanks for suggestion, will give it a try :)
