1 Star 0 Fork 0

iStop/hh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pyproject.toml 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
Sean Hammond 提交于 2023-12-23 14:30 . Update h's pylint config
[tool.pylint.main]
jobs = 0 # Use one process for CPU.
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.check_elif",
"pylint.extensions.docparams",
"pylint.extensions.mccabe",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.redefined_variable_type",
]
# Fail if there are *any* messages from PyLint.
# The letters refer to PyLint's message categories, see
# https://pylint.pycqa.org/en/latest/messages/messages_introduction.html
fail-on = ["C", "E", "F", "I", "R", "W"]
[tool.pylint.messages_control]
ignore-paths=[
]
enable = [
"bad-inline-option",
"deprecated-pragma",
"useless-suppression",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-zero",
"use-implicit-booleaness-not-comparison-to-string",
]
disable = [
# Docstrings are encouraged but we don't want to enforce that everything
# must have a docstring.
"missing-docstring",
# We don't always want to have to put a `:return:` in a docstring.
"missing-return-doc",
# We don't always want to have to put an `:rtype:` in a docstring.
"missing-return-type-doc",
# We don't want to have to document the type of every parameter with a
# `:type:` in the docstring.
"missing-type-doc",
# We use isort to sort and group our imports, so we don't need PyLint to
# check them for us.
"ungrouped-imports",
# We use Black to format our code automatically, so we don't need PyLint to
# check formatting for us.
"line-too-long",
# We use isort to sort out imports so we don't need PyLint to check import
# ordering for us.
"wrong-import-order",
"too-few-public-methods",
# Issues to disable this for false positives, disabling it globally in the meantime https://github.com/PyCQA/pylint/issues/214
"duplicate-code",
"missing-param-doc",
# Temporarily ignored during pep8 -> pylint transition. This should be removed later.
"fixme",
]
good-names = [
"i", "j", "k", "ex", "Run", "_", # PyLint's default good names.
"tm", "db", "ai",
]
[tool.pylint.reports]
output-format = "colorized"
score = "no"
[tool.hdev]
project_name = "h"
project_type = "application"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/istop/h_.git
git@gitee.com:istop/h_.git
istop
h_
hh
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385