A pre-commit script to make log lines lazzier
Project description
Lazy log
Pre-commit hook to automatically detect and convert f-strings in Python code used in log calls to lazy log calls, following W1203 Pylint rule:
Usage
To use with pre-commit, add the following to your .pre-commit-config.yaml
:
- repo: https://github.com/dmar1n/lazy-log-formatter
rev: v0.1.0
hooks:
- id: lazy-log-formatter
args: ['--fix']
Options
--fix
: Automatically fix f-strings used in log calls to lazy log calls.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for lazy_log_formatter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03dbc9868f617f1bba50f7dd136ad43f6704a4ae26c1eafd21337d2d631eef3b |
|
MD5 | 9e60f9a83d219f9cfdb5e54d8bc0bac9 |
|
BLAKE2b-256 | 542f284d4a6bcbc6252a91d1d6469aa5a3cdf88be7ac4d4cf4e45237ac583477 |