Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (155 loc) · 4.1 KB
/
Copy pathpyproject.toml
File metadata and controls
176 lines (155 loc) · 4.1 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "cleo"
version = "3.0.0.dev0"
description = "Cleo allows you to create beautiful and testable command-line interfaces."
requires-python = ">=3.11"
authors = [
{ name = "Sébastien Eustace", email = "sebastien@eustace.io" }
]
maintainers = [
{ name = "Bartosz Sokorski", email = "b.sokorski@gmail.com" },
{ name = "Branch Vincent", email = "branchvincent@gmail.com" }
]
license = { text = "MIT" }
readme = "README.md"
keywords = ["cli", "commands"]
dynamic = ["classifiers"]
[project.urls]
Repository = "https://github.com/python-poetry/cleo"
[tool.poetry]
requires-poetry = ">=2.0"
packages = [{ include = "cleo", from = "src" }]
include = [{ path = "tests", format = "sdist" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
]
[dependency-groups]
dev = [
{ include-group = "types" },
{ include-group = "test" },
{ include-group = "docs" },
{ include-group = "lint" },
"towncrier >= 22.12.0",
]
lint = [
"codespell >= 2.4.3",
"prek >= 0.5.10",
"gha-update ; python_full_version >= '3.12'",
]
types = [
"mypy >= 2.4.1",
"ty >= 0.0.104",
]
test = [
"pytest >= 8.3.5",
"pytest-cov >= 7.0",
"pytest-mock >= 3.8.2",
]
docs = [
"sphinx >=7.1, <8",
"furo >=2023.9.10, <2024"
]
[tool.ruff]
fix = true
target-version = "py311"
line-length = 88
extend-exclude = [
"docs/*",
"tests/fixtures/exceptions/*"
]
[tool.ruff.lint]
ignore = [
"ISC001", # prevent conflicts with the formatter
]
unfixable = [
"ERA", # do not autoremove commented out code
]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"PTH", # flake8-use-pathlib
"ISC", # flake8-implicit-string-concat
"RET", # flake8-return
"FLY", # flynt
"PERF", # perflint
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
known-first-party = ["cleo"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["BLE001"] # ignore bare Exception in test fixtures
[tool.mypy]
strict = true
files = ["src", "tests"]
pretty = true
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
[tool.coverage.report]
omit = [
"src/cleo/_compat.py",
]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError"
]
[tool.codespell]
skip = "docs/_static/*,tests/*"
[tool.towncrier]
package = "cleo"
filename = "CHANGELOG.md"
issue_format = "([#{issue}](https://github.com/python-poetry/cleo/pull/{issue}))"
directory = "news/"
title_format = "{version} ({project_date})"
template = "news/news_template.jinja2"
underlines = "-~^"
start_string = "<!-- news notes entrypoint -->\n"
[tool.towncrier.fragment.break]
name = "Breaking Changes"
showcontent = true
[tool.towncrier.fragment.feat]
name = "Features & Improvements"
showcontent = true
[tool.towncrier.fragment.bugfix]
name = "Bug Fixes"
showcontent = true
[tool.towncrier.fragment.docs]
name = "Documentation"
showcontent = true
[tool.towncrier.fragment.deps]
name = "Dependencies"
showcontent = true
[tool.towncrier.fragment.removal]
name = "Removals and Deprecations"
showcontent = true
[tool.towncrier.fragment.misc]
name = "Miscellaneous"
showcontent = true