lazy-log-formatter


Namelazy-log-formatter JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/dmar1n/lazy-log-formatter
SummaryA pre-commit script to make log lines lazzier
upload_time2024-10-05 14:45:21
maintainerNone
docs_urlNone
authorDaniel Marín
requires_python<4.0,>=3.10
licenseApache-2.0
keywords pre-commit logging pylint lazy logging w1203 f-strings code-quality linting
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

https://pylint.readthedocs.io/en/stable/user_guide/messages/warning/logging-fstring-interpolation.html

## Usage

To use with pre-commit, add the following to your `.pre-commit-config.yaml`:

```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.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dmar1n/lazy-log-formatter",
    "name": "lazy-log-formatter",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "pre-commit, logging, pylint, lazy logging, W1203, f-strings, code-quality, linting",
    "author": "Daniel Mar\u00edn",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/83/1c/83c01ec9a30089341e67370c6e155ada6b07fa5850e4c22548608b453eea/lazy_log_formatter-0.2.0.tar.gz",
    "platform": null,
    "description": "# Lazy log\n\nPre-commit hook to automatically detect and convert f-strings in Python code used in log calls to lazy log calls, \nfollowing W1203 Pylint rule:\n\nhttps://pylint.readthedocs.io/en/stable/user_guide/messages/warning/logging-fstring-interpolation.html\n\n## Usage\n\nTo use with pre-commit, add the following to your `.pre-commit-config.yaml`:\n\n```yaml\n- repo: https://github.com/dmar1n/lazy-log-formatter\n  rev: v0.1.0\n  hooks:\n    - id: lazy-log-formatter\n    args: ['--fix']\n```\n\n## Options\n\n- `--fix`: Automatically fix f-strings used in log calls to lazy log calls.",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "A pre-commit script to make log lines lazzier",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/dmar1n/lazy-log-formatter",
        "Repository": "https://github.com/dmar1n/lazy-log-formatter"
    },
    "split_keywords": [
        "pre-commit",
        " logging",
        " pylint",
        " lazy logging",
        " w1203",
        " f-strings",
        " code-quality",
        " linting"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "542f284d4a6bcbc6252a91d1d6469aa5a3cdf88be7ac4d4cf4e45237ac583477",
                "md5": "9e60f9a83d219f9cfdb5e54d8bc0bac9",
                "sha256": "03dbc9868f617f1bba50f7dd136ad43f6704a4ae26c1eafd21337d2d631eef3b"
            },
            "downloads": -1,
            "filename": "lazy_log_formatter-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e60f9a83d219f9cfdb5e54d8bc0bac9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 7914,
            "upload_time": "2024-10-05T14:45:19",
            "upload_time_iso_8601": "2024-10-05T14:45:19.790778Z",
            "url": "https://files.pythonhosted.org/packages/54/2f/284d4a6bcbc6252a91d1d6469aa5a3cdf88be7ac4d4cf4e45237ac583477/lazy_log_formatter-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "831c83c01ec9a30089341e67370c6e155ada6b07fa5850e4c22548608b453eea",
                "md5": "ab476eff0fe42265785d9e5b5da167e9",
                "sha256": "07d36445115b383c8a77e4c7e0e085cfcef05104d37c16bf9b8af88eacd58dea"
            },
            "downloads": -1,
            "filename": "lazy_log_formatter-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ab476eff0fe42265785d9e5b5da167e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 7066,
            "upload_time": "2024-10-05T14:45:21",
            "upload_time_iso_8601": "2024-10-05T14:45:21.041628Z",
            "url": "https://files.pythonhosted.org/packages/83/1c/83c01ec9a30089341e67370c6e155ada6b07fa5850e4c22548608b453eea/lazy_log_formatter-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-05 14:45:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dmar1n",
    "github_project": "lazy-log-formatter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lazy-log-formatter"
}
        
Elapsed time: 0.59846s