-
Notifications
You must be signed in to change notification settings - Fork 51
/
pyproject.toml
102 lines (88 loc) · 2.45 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
name = "redbot"
dynamic = ["version"]
authors = [
{name="Mark Nottingham", email="[email protected]"}
]
description = "REDbot is lint for HTTP."
requires-python = ">=3.9"
readme = "README.md"
license = {file = "LICENSE.md"}
classifiers = [
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Environment :: Web Environment",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Testing",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"License :: OSI Approved :: MIT License"
]
dependencies = [
"httplint >= 2023.12.2",
"importlib_resources",
"Jinja2 >= 3.1.2",
"markdown >= 3.4.4",
"MarkupSafe >= 2.1.3",
"netaddr >= 1.2.1",
"thor >= 0.11.10",
"typing-extensions >= 4.8.0",
]
[project.urls]
homepage = "https://redbot.org/project/"
[project.optional-dependencies]
systemd = ["cysystemd"]
dev = ["mypy", "black", "pylint", "pytest", "pytest-md", "validate-pyproject", "build",
"playwright", "types-Markdown"]
[project.scripts]
redbot = "redbot.cli:main"
redbot_daemon = "redbot.daemon:main"
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "redbot.__version__"}
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools]
include-package-data = true
[tool.mypy]
follow_imports = "normal"
incremental = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
strict_optional = true
show_error_codes = true
[tool.pylint.basic]
function-rgx = "[a-z_][a-z0-9_]{1,30}$"
variable-rgx = "[a-z_][a-z0-9_]{1,30}$"
attr-rgx = "[a-z_][a-z0-9_]{1,30}$"
argument-rgx = "[a-z_][a-z0-9_]{1,30}$"
class-attribute-rgx = "([A-Za-z_][A-Za-z0-9_]{1,30}|(__.*__))$"
method-rgx = "[a-z_][a-z0-9_]{1,30}$"
class-rgx = "[a-zA-Z0-9_]+$"
[tool.pylint.messages_control]
disable = "C0114,C0115,C0116,W0613,R0903"
[tool.pylint.reports]
reports = false
[tool.pylint.variables]
dummy-variables-rgx = "response_start|response_body|response_done|error|formatter_done|check_done|_"
[tool.pylint.design]
max-args=10
max-locals=35
max-branches=25
max-statements=100
max-attributes=40
min-public-methods=1
[tool.pylint.similarities]
min-similarity-lines = 10