Skip to main content

Package to check conventional commits

Project description

py-conventional-commits

Summary

Package for check conventional commits written only in python

Description

The goal of this project is to validate commit messages using the Conventional Commits specification. The Conventional Commits specification is a set of rules that standardizes commit messages in software projects, making it easier to read and interpret changes made to the codebase. The specification can be found at https://www.conventionalcommits.org/en/v1.0.0/#specification.

Commit message validation will be performed using a Python script that will be automatically executed by the commit-msg Git Hook whenever a new commit is made. The script will check whether the commit message follows the pattern defined by the Conventional Commits specification and, if it does not comply, it will prevent the commit and display an error message indicating the issue.

The project will use Python's re library to create regular expressions that define the pattern of a valid commit message. In addition, a configuration file will be created to allow developers to customize some of the validation rules according to the specific needs of the project.

Features

  • Validate commit messages using the Conventional Commits specification.
  • Prevent commits if the message does not comply with the specification.
  • Display an error message indicating the issue with the commit message.
  • Allow customization of validation rules via a configuration file.
  • Automatically executed by the commit-msg Git Hook.

Benefits

  • Standardize commit messages across the project, making it easier to read and interpret changes made to the codebase.
  • Improve the overall quality of commit messages, leading to better communication and collaboration among developers.
  • Depend exclusively on Python, specifically on 0 other packages.

Installation

Global installation

sudo pip3 install -U py-conventional-commits

Python project

You can add it to your local project using one of these:

pip install -U py-conventional-commits

for Poetry >= 1.2.0:

poetry add py-conventional-commits --group dev

for Poetry < 1.2.0:

poetry add py-conventional-commits --dev

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-conventional-commits-0.0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_conventional_commits-0.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file py-conventional-commits-0.0.3.tar.gz.

File metadata

  • Download URL: py-conventional-commits-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for py-conventional-commits-0.0.3.tar.gz
Algorithm Hash digest
SHA256 83bd0e840a89b5923fb1ad06ed5234868b89b04026dac733bcc249c8f630341c
MD5 c0cf1ef4ab84bdca60437d62c8bd7dec
BLAKE2b-256 83c714341ce483c69d5805b9244a50802b2f9e16ed8518a73edbb71a3221cfa7

See more details on using hashes here.

File details

Details for the file py_conventional_commits-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for py_conventional_commits-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76f006fb8fbead10f03e28313dd659fe72c3adc44a4811c5c24fb240c3bae220
MD5 bebce178266d3c6c59bc3da623dcbfbd
BLAKE2b-256 97e4fb16115955657f24c6eed7f5a39f33f4610d0f13c2b8f4afc96c11a4fb9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page