-
-
Notifications
You must be signed in to change notification settings - Fork 91
/
pyproject.toml
151 lines (132 loc) · 3.57 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "cleo"
version = "3.0.0.dev0"
description = "Cleo allows you to create beautiful and testable command-line interfaces."
authors = [
"Sébastien Eustace <[email protected]>"
]
maintainers = [
"Branch Vincent <[email protected]>",
"Bartosz Sokorski <[email protected]>",
]
license = "MIT"
readme = "README.md"
packages = [{ include = "cleo", from = "src" }]
include = [{ path = "tests", format = "sdist" }]
repository = "https://github.com/python-poetry/cleo"
keywords = ["cli", "commands"]
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",
]
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.group.dev.dependencies]
mypy = "^1.5"
pre-commit = "^3.0"
pytest = "^8.0.0"
pytest-cov = "^4.0"
pytest-mock = "^3.8.2"
towncrier = ">=22.12.0"
[tool.poetry.group.doc.dependencies]
sphinx = "^7.1"
furo = "^2023.9.10"
[tool.ruff]
fix = true
target-version = "py38"
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.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.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