-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
165 lines (154 loc) · 3.77 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "moulti"
dynamic = ["version"]
dependencies = [
'argcomplete',
'pyperclip',
'textual==1.0.*',
'unidiff',
]
requires-python = ">= 3.10"
authors = [
{ name = "Xavier G.", email = "[email protected]" },
]
description = """\
Moulti is a CLI-driven Terminal User Interface (TUI) displaying \
arbitrary outputs inside visual, collapsible blocks called steps.\
"""
readme = "README.md"
license = { "file" = "LICENSE" }
keywords = [
"ansible",
"cli",
"collapsible",
"curses",
"diff",
"multiplex",
"output",
"script",
"steps",
"terminal",
"textual",
"tui",
]
classifiers = [
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: BSD :: FreeBSD",
"Operating System :: POSIX :: BSD :: NetBSD",
"Operating System :: POSIX :: BSD :: OpenBSD",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: System :: Logging",
"Topic :: Utilities",
]
[project.optional-dependencies]
tinker = [
"bpython",
"textual-dev",
]
check-py = [
"mypy",
"pylint",
]
check-rust = [
"ruff",
]
check = [
"moulti[check-py,check-rust]",
]
test = [
"pytest",
"pytest-asyncio",
"pytest-forked",
"pytest-textual-snapshot",
"pytest-xdist",
]
release = [
"build",
"twine",
]
dev = [
"moulti[tinker,check,test,release]",
]
ci = [
"moulti[check,test]",
]
# Installing ruff on *BSD systems requires a Rust compiler + time + energy:
bsd-ci = [
"moulti[check-py,test]",
]
[project.urls]
Homepage = "https://github.com/xavierog/moulti/?tab=readme-ov-file#moulti"
Documentation = "https://github.com/xavierog/moulti/blob/master/Documentation.md"
Repository = "https://github.com/xavierog/moulti.git"
Issues = "https://github.com/xavierog/moulti/issues"
Changelog = "https://github.com/xavierog/moulti/blob/master/CHANGELOG.md"
[project.scripts]
moulti = "moulti.precli:main"
moulti-askpass = "moulti.askpass:main"
moulti-askpass-become-password = "moulti.askpass:main"
moulti-askpass-connection-password = "moulti.askpass:main"
moulti-askpass-vault-client = "moulti.askpass:main"
[tool.setuptools]
package-dir = { "" = "src" }
packages = [
"moulti",
"moulti.ansible",
"moulti.widgets",
"moulti.widgets.abstractquestion",
"moulti.widgets.abstractstep",
"moulti.widgets.buttonquestion",
"moulti.widgets.collapsiblestep",
"moulti.widgets.divider",
"moulti.widgets.inputquestion",
"moulti.widgets.question",
"moulti.widgets.step",
]
script-files = [
"examples/moulti-functions.bash",
"examples/moulti-man",
]
[tool.setuptools.dynamic]
version = { attr = "moulti.__version__" }
[tool.ruff]
line-length = 120
[tool.mypy]
python_version = "3.10"
disallow_untyped_defs = true
[tool.pylint.format]
indent-string = "\t"
max-line-length = 120
ignore-long-lines = "add_argument"
[tool.pylint."messages control"]
disable = [
"broad-exception-caught",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"too-many-positional-arguments",
"too-many-public-methods",
"too-many-statements",
]
[tool.pytest.ini_options]
# Recommended in https://textual.textualize.io/guide/testing/#testing-frameworks-for-textual
asyncio_mode = "auto"
# Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope.
asyncio_default_fixture_loop_scope = "function"
addopts = ["-n", "auto", "--forked"]
testpaths = ["tests"]
filterwarnings = [
"ignore:.*may lead to deadlocks in the child.*:DeprecationWarning"
]