-
Notifications
You must be signed in to change notification settings - Fork 34
/
pyproject.toml
136 lines (127 loc) · 3.27 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[project]
name = "rich-click"
description = "Format click help output nicely with rich"
readme = "README.md"
license = { file = "LICENSE" }
maintainers = [{ name = "Phil Ewels", email = "phil@ewels.co.uk" }, { name = "Daniel Reeves", email = "xdanielreeves@gmail.com"}]
authors = [{ name = "Phil Ewels", email = "phil@ewels.co.uk" }]
requires-python = ">=3.7"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = [
"version",
]
dependencies = [
"click>=7",
'importlib-metadata; python_version < "3.8"',
"rich>=10.7",
"typing_extensions>=4",
]
[project.optional-dependencies]
dev = [
"mypy",
"packaging",
"pre-commit",
"pytest",
"pytest-cov",
"rich-codex",
"ruff",
"types-setuptools",
]
docs = [
"markdown_include",
"mkdocs",
"mkdocs-glightbox",
"mkdocs-material[imaging]~=9.5.18",
"mkdocs-material-extensions",
"mkdocs-rss-plugin",
"mkdocstrings[python]",
"rich-codex",
]
[project.urls]
Documentation = "https://github.com/ewels/rich-click"
Homepage = "https://github.com/ewels/rich-click"
Issues = "https://github.com/ewels/rich-click/issues"
Repository = "https://github.com/ewels/rich-click"
[project.scripts]
rich-click = "rich_click.cli:main"
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=45",
]
[tool.setuptools.dynamic]
version = { attr = "rich_click.__version__" }
[tool.black]
line-length = 120
target-version = ['py37']
[tool.ruff]
exclude = [
".git",
"__pycache__",
".venv",
"venv",
"build",
"sdist",
"tests/fixtures/**",
"examples/**",
"docs/"
]
ignore = [
"D100", # Missing docstring in public module
"D102", # Missing docstring in public method
"D105", # Missing docstring in magic method
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"E731", # Do not assign a lambda expression, use a def
]
line-length = 120
select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # flake8
"W", # pycodestyle
"I001", # isort
]
[tool.ruff.isort]
# Todo:
# Add vertical hanging indent when supported.
# https://github.com/astral-sh/ruff/issues/2600
lines-after-imports = 2
known-first-party = ["rich_click"]
[tool.pyproject-fmt]
indent = 4
[tool.pytest.ini_options]
addopts = "-s -rP -vv --showlocals"
pythonpath = ["tests", "src"]
testpaths = ["tests"]
[tool.mypy]
python_version = "3.8"
scripts_are_modules = true
strict = true
exclude = [
'.*?live_style_editor\.py$'
]
[tool.pyright]
include = ["src"]
pythonVersion = "3.7"
typeCheckingMode = "basic"
executionEnvironments = [
{ root = "src" },
{ root = "tests", extra_paths = [
"src",
] },
]