-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (94 loc) · 2.89 KB
/
pyproject.toml
File metadata and controls
109 lines (94 loc) · 2.89 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
[tool.poetry]
name = "interrogatio"
version = "0.0.0"
description = "Prompting library for terminals."
authors = ["Francesco Faraone"]
license = "BSD-3-Clause"
packages = [
{ include = "interrogatio" },
]
readme = "./README.md"
homepage = "https://github.com/ffaraone/interrogatio"
documentation = "https://interrogatio.readthedocs.io/en/latest/"
repository = "https://github.com/ffaraone/interrogatio.git"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Utilities",
"Topic :: Software Development :: Libraries",
]
[tool.poetry.dependencies]
python = ">=3.8,<4"
prompt-toolkit = ">=3.0.29"
PyYAML = {version = ">=5", optional = true }
validators = "^0.18.2"
pytz = "^2022.1"
tzlocal = "^4.1"
importlib-metadata = "^8.5.0"
[tool.poetry.extras]
yaml = ["PyYAML"]
[tool.poetry.dev-dependencies]
ipython = "^8.10.0"
pytest = ">=6.1.2,<8"
pytest-cov = ">=2.10.1,<5"
pytest-mock = "^3.3.1"
coverage = {extras = ["toml"], version = ">=5.3,<7"}
ruff = "0.3.*"
Sphinx = "^6.2.1"
sphinx-rtd-theme = "^3.0.2"
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
interrogatio = 'interrogatio.main:main_interrogatio'
dialogus = 'interrogatio.main:main_dialogus'
[tool.pytest.ini_options]
testpaths = "tests"
log_cli = true
addopts = "--cov=interrogatio --cov-report=term-missing:skip-covered --cov-report=html --cov-report=xml"
[tool.coverage.run]
branch = true
relative_files = true
[tool.coverage.report]
omit = [
"interrogatio/main.py",
"*/__init__.py",
]
exclude_lines = [
"pragma: no cover",
"def __str__",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.ruff]
extend-exclude = [".vscode", ".devcontainer"]
output-format = "full"
[tool.ruff.lint]
select = [
"E", # w errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade,
"PT", # flake8-pytest-style
"T10", # flake8-pytest-style
]
ignore = [
"PT004", # fixture '{name}' does not return anything, add leading underscore
"PT011", # pytest.raises({exception}) is too broad, set the match parameter or use a more specific exception
"B008", # do not perform function calls in argument defaults
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
]
[tool.ruff.lint.pycodestyle]
max-line-length = 100