-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
232 lines (215 loc) · 6.44 KB
/
Copy pathpyproject.toml
File metadata and controls
232 lines (215 loc) · 6.44 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# SPDX-License-Identifier: GPL-2.0-only
#
# Project: Ecli
# File: pyproject.toml
# Website: https://www.ecli.io
# Repository: https://github.com/SSobol77/ecli
# PyPI: https://pypi.org/project/ecli-editor/0.0.1/
#
# Copyright (c) 2026 Siergej Sobolewski
#
# Licensed under the GNU General Public License version 2 only.
# See the LICENSE file in the project root for full license text.
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "ecli-editor"
version = "0.2.4"
description = "ECLI — terminal-first engineering operations workbench"
readme = "README.md"
requires-python = ">=3.11"
license = "GPL-2.0-only"
license-files = ["LICENSE*"]
authors = [{ name = "Siergej Sobolewski", email = "s.sobolewski@hotmail.com" }]
keywords = [
"editor",
"terminal",
"tui",
"curses",
"text-editor",
"developer-tools",
"devops",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX :: BSD :: FreeBSD",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Text Editors",
"Typing :: Typed",
]
dependencies = [
"Pygments>=2.19.1",
"pyperclip>=1.9.0",
"wcwidth>=0.2.13",
"chardet>=5.2.0",
"PyYAML>=6.0.2",
"attrs>=24.0.0",
"typing_extensions>=4.12.2",
"packaging>=24.1",
"aiohttp>=3.9.0",
"pygls>=1.3.1",
"lsprotocol>=2023.0.1",
"libcst>=1.5.0",
"cattrs>=23.2.0",
"python-dotenv>=1.0.1",
"toml>=0.10.2",
"tato>=0.2.3",
"windows-curses>=2.4.0; sys_platform == 'win32'",
"python-textmate>=0.2.0",
]
[project.optional-dependencies]
dev = [
"pyinstaller>=6.16.0",
"ruff>=0.4.10",
"mypy>=1.10.0",
"mypy-extensions>=1.0.0",
"types-PyYAML>=6.0.12.20240516",
"types-pyperclip>=1.9.0.20220518",
"pytest>=8.4.1",
"pytest-asyncio>=0.23.8",
"pytest-aiohttp>=1.0.5",
"pytest-mock>=3.14.0",
"pytest-cov>=6.0.0",
"coverage>=7.4.0",
"build>=1.2",
"twine>=6.2.0",
"cyclonedx-bom>=4.0",
]
release = [
"build>=1.2",
"twine>=6.2.0",
"cyclonedx-bom>=4.0",
]
[project.scripts]
ecli = "ecli.__main__:main"
ecli-install-desktop-entry = "ecli.utils.desktop_entry:main"
[project.urls]
Homepage = "https://ecli.io"
Documentation = "https://ecli.io/docs"
Repository = "https://github.com/SSobol77/ecli"
Issues = "https://github.com/SSobol77/ecli/issues"
Changelog = "https://github.com/SSobol77/ecli/blob/main/CHANGELOG.md"
[tool.hatch.build.targets.wheel]
packages = ["src/ecli"]
[tool.hatch.build.targets.wheel.force-include]
"src/ecli/assets/ecli.png" = "ecli/assets/ecli.png"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/src/ecli/assets/ecli.png",
"/tests",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
"/pyproject.toml",
"/main.py",
]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra --tb=short --strict-markers --strict-config"
testpaths = ["tests"]
python_files = "test_*.py"
asyncio_mode = "auto"
markers = [
"asyncio: marks async tests (auto-applied via asyncio_mode)",
"integration: integration tests requiring external resources",
"slow: tests that take >1 second",
]
[tool.mypy]
files = ["src/ecli", "tests"]
# Imported, read-only VS Code / TextMate extension assets (issue #98) are not
# ECLI Python sources and must not be type-checked. The negative lookahead keeps
# the ECLI-owned deterministic adapter package
# src/ecli/extensions/ecli_integration/ (issue #100) type-checked, while still
# excluding every imported upstream extension folder beside it.
# See docs/architecture/extensions-layer.md.
exclude = ['^src/ecli/extensions/(?!ecli_integration/)']
mypy_path = "src"
python_version = "3.11"
ignore_missing_imports = true
show_error_codes = true
strict = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
no_implicit_optional = true
[tool.ruff]
line-length = 88
target-version = "py311"
extend-exclude = [
"__pycache__",
"*.pyc",
".git",
"build",
"dist",
# Imported, read-only VS Code / TextMate extension assets (issue #98). This
# upstream tree must remain unchanged and contains foreign-language code and
# intentionally-malformed test fixtures; ECLI's own linters/formatters must
# not scan it. See docs/architecture/extensions-layer.md.
"src/ecli/extensions",
"src/ecli/core/Ecli.py",
"src/ecli/core/History.py",
"src/ecli/integrations/AI.py",
"src/ecli/integrations/GitBridge.py",
"src/ecli/integrations/LinterBridge.py",
"src/ecli/integrations/__init__.py",
"src/ecli/ui/DrawScreen.py",
"src/ecli/ui/KeyBinder.py",
"src/ecli/ui/PanelManager.py",
"src/ecli/ui/TerminalAppMode.py",
"src/ecli/ui/__init__.py",
"src/ecli/ui/panels.py",
"src/ecli/utils/__init__.py",
"src/ecli/utils/logging_config.py",
"src/ecli/utils/utils.py",
]
[tool.ruff.lint]
select = ["E", "F", "W", "C90", "I", "UP", "B", "N", "Q", "PL", "RET", "D"]
ignore = [
"N999",
"E501",
"D203",
"D213",
"D401",
"D205",
"D400",
"D415",
"PLR2004",
"UP045",
"D412",
"UP035",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D100", "D101", "D102", "D103", "D104", "F401", "E402", "PLC0415"]
"src/ecli/__init__.py" = ["F401"]
"src/ecli/__main__.py" = ["C901", "D100", "D212", "I001"]
# Packaging/build orchestration scripts are procedural by design: many small
# self-evident helpers and multi-step build flows with several guard returns
# (mirroring the legacy shell). Exempt them from docstring-per-helper and the
# complexity family, consistent with the __main__.py entrypoint exception. The
# canonical module docstrings document each script's full contract.
"scripts/*.py" = ["D103", "C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
extra-standard-library = ["typing_extensions", "tomllib"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"