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.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a74146e2d0cb339e7b7cd1e83352d0689c5687046575feb90bb8070f8dc88283 |
|
MD5 | d2971d13c38f9664353e0442da0994eb |
|
BLAKE2b-256 | 5fff66ba6b067fc6e156f5a023d9ea387a3bb42e7ba39b844e15dea512a653a4 |