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
|
[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "cleo"
version = "2.2.1"
description = "Cleo allows you to create beautiful and testable command-line interfaces."
authors = [
"Sébastien Eustace <sebastien@eustace.io>"
]
maintainers = [
"Branch Vincent <branchevincent@gmail.com>",
"Bartosz Sokorski <b.sokorski@gmail.com>",
]
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.7"
[tool.poetry.group.dev.dependencies]
mypy = [
{ version = "^1.0", python = "<3.8" },
{ version = "^1.5", python = ">=3.8" },
]
pre-commit = [
{ version = "^2.0", python = "<3.8" },
{ version = "^3.0", python = ">=3.8" },
]
pytest = "^7.1.2"
pytest-cov = "^4.0"
pytest-mock = "^3.8.2"
towncrier = ">=22.12.0"
[tool.poetry.group.doc.dependencies]
Sphinx = "^5.2.3"
sphinx-rtd-theme = "^1.0.0"
[tool.ruff]
fix = true
unfixable = [
"ERA", # do not autoremove commented out code
]
target-version = "py37"
line-length = 88
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
extend-exclude = [
"docs/*",
"tests/fixtures/exceptions/*"
]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.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}))\n"
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
|