1
+ [build-system ]
2
+ build-backend = " setuptools.build_meta"
3
+ requires = [
4
+ " setuptools>=45" ,
5
+ ]
6
+
1
7
[project ]
2
8
name = " rich-click"
3
9
description = " Format click help output nicely with rich"
4
10
readme = " README.md"
5
11
license = { file = " LICENSE" }
6
- maintainers = [{
name =
" Phil Ewels" ,
email =
" [email protected] " }, {
name =
" Daniel Reeves" ,
email =
" [email protected] " }]
7
- authors = [{
name =
" Phil Ewels" ,
email =
" [email protected] " }]
8
- requires-python = " >=3.7"
12
+ maintainers = [
13
+ {
name =
" Phil Ewels" ,
email =
" [email protected] " },
14
+ {
name =
" Daniel Reeves" ,
email =
" [email protected] " },
15
+ ]
16
+ authors = [ {
name =
" Phil Ewels" ,
email =
" [email protected] " } ]
17
+ requires-python = " >=3.8"
9
18
classifiers = [
10
19
" Development Status :: 3 - Alpha" ,
11
20
" Intended Audience :: Developers" ,
12
- " License :: OSI Approved :: MIT License" ,
13
21
" Operating System :: OS Independent" ,
14
22
" Programming Language :: Python" ,
15
23
" Programming Language :: Python :: 3 :: Only" ,
16
- " Programming Language :: Python :: 3.7" ,
17
24
" Programming Language :: Python :: 3.8" ,
18
25
" Programming Language :: Python :: 3.9" ,
19
26
" Programming Language :: Python :: 3.10" ,
20
27
" Programming Language :: Python :: 3.11" ,
21
28
" Programming Language :: Python :: 3.12" ,
29
+ " Programming Language :: Python :: 3.13" ,
22
30
]
23
31
dynamic = [
24
32
" version" ,
25
33
]
26
34
dependencies = [
27
35
" click>=7" ,
28
- ' importlib-metadata; python_version < "3.8"' ,
29
36
" rich>=10.7" ,
30
- " typing_extensions >=4" ,
37
+ " typing-extensions >=4" ,
31
38
]
32
- [project .optional-dependencies ]
33
- dev = [
39
+ optional-dependencies.dev = [
34
40
" mypy" ,
35
41
" packaging" ,
36
42
" pre-commit" ,
@@ -40,8 +46,8 @@ dev = [
40
46
" ruff" ,
41
47
" types-setuptools" ,
42
48
]
43
- docs = [
44
- " markdown_include " ,
49
+ optional-dependencies. docs = [
50
+ " markdown-include " ,
45
51
" mkdocs" ,
46
52
" mkdocs-glightbox" ,
47
53
" mkdocs-material[imaging]~=9.5.18" ,
@@ -50,40 +56,41 @@ docs = [
50
56
" mkdocstrings[python]" ,
51
57
" rich-codex" ,
52
58
]
53
- [project .urls ]
54
- Documentation = " https://github.com/ewels/rich-click"
55
- Homepage = " https://github.com/ewels/rich-click"
56
- Issues = " https://github.com/ewels/rich-click/issues"
57
- Repository = " https://github.com/ewels/rich-click"
58
- [project .scripts ]
59
- rich-click = " rich_click.cli:main"
60
-
61
- [build-system ]
62
- build-backend = " setuptools.build_meta"
63
- requires = [
64
- " setuptools>=45" ,
65
- ]
59
+ urls.Documentation = " https://github.com/ewels/rich-click"
60
+ urls.Homepage = " https://github.com/ewels/rich-click"
61
+ urls.Issues = " https://github.com/ewels/rich-click/issues"
62
+ urls.Repository = " https://github.com/ewels/rich-click"
63
+ scripts.rich-click = " rich_click.cli:main"
66
64
67
65
[tool .setuptools .dynamic ]
68
66
version = { attr = " rich_click.__version__" }
69
67
70
68
[tool .black ]
71
69
line-length = 120
72
- target-version = [' py37' ]
70
+ target-version = [ ' py37' ]
73
71
74
72
[tool .ruff ]
73
+ line-length = 120
75
74
exclude = [
76
75
" .git" ,
77
- " __pycache__" ,
78
76
" .venv" ,
79
- " venv " ,
77
+ " __pycache__ " ,
80
78
" build" ,
79
+ " docs/" ,
80
+ " examples/**" ,
81
81
" sdist" ,
82
82
" tests/fixtures/**" ,
83
- " examples/**" ,
84
- " docs/"
83
+ " venv" ,
84
+ ]
85
+
86
+ lint.select = [
87
+ " D" , # pydocstyle
88
+ " E" , # pycodestyle
89
+ " F" , # flake8
90
+ " I001" , # isort
91
+ " W" , # pycodestyle
85
92
]
86
- ignore = [
93
+ lint. ignore = [
87
94
" D100" , # Missing docstring in public module
88
95
" D102" , # Missing docstring in public method
89
96
" D105" , # Missing docstring in magic method
@@ -92,41 +99,31 @@ ignore = [
92
99
" D212" , # Multi-line docstring summary should start at the first line
93
100
" E731" , # Do not assign a lambda expression, use a def
94
101
]
95
- line-length = 120
96
- select = [
97
- " D" , # pydocstyle
98
- " E" , # pycodestyle
99
- " F" , # flake8
100
- " W" , # pycodestyle
101
- " I001" , # isort
102
- ]
103
-
104
- [tool .ruff .isort ]
102
+ lint.isort.known-first-party = [ " rich_click" ]
105
103
# Todo:
106
104
# Add vertical hanging indent when supported.
107
105
# https://github.com/astral-sh/ruff/issues/2600
108
- lines-after-imports = 2
109
- known-first-party = [" rich_click" ]
106
+ lint.isort.lines-after-imports = 2
110
107
111
108
[tool .pyproject-fmt ]
112
109
indent = 4
113
110
114
111
[tool .pytest .ini_options ]
115
112
addopts = " -s -rP -vv --showlocals"
116
- pythonpath = [" tests" , " src" ]
117
- testpaths = [" tests" ]
113
+ pythonpath = [ " tests" , " src" ]
114
+ testpaths = [ " tests" ]
118
115
119
116
[tool .mypy ]
120
117
python_version = " 3.8"
121
118
scripts_are_modules = true
122
119
strict = true
123
120
exclude = [
124
- ' .*?live_style_editor\.py$'
121
+ ' .*?live_style_editor\.py$' ,
125
122
]
126
123
127
124
[tool .pyright ]
128
- include = [" src" ]
129
- pythonVersion = " 3.7 "
125
+ include = [ " src" ]
126
+ pythonVersion = " 3.8 "
130
127
typeCheckingMode = " basic"
131
128
executionEnvironments = [
132
129
{ root = " src" },
0 commit comments