跳转到主要内容

一个使用标准库日志模块检查问题的Flake8插件。

项目描述

https://img.shields.io/github/actions/workflow/status/adamchainz/flake8-logging/main.yml?branch=main&style=for-the-badge https://img.shields.io/badge/Coverage-100%25-success?style=for-the-badge https://img.shields.io/pypi/v/flake8-logging.svg?style=for-the-badge https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge pre-commit

A Flake8 plugin that checks for issues using the standard library logging module.

有关简要概述和背景信息,请参阅介绍博客文章

需求

支持Python 3.8到3.12。

安装

首先,使用

pip安装

python -m pip install flake8-logging

其次,如果您定义了Flake8的