-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
229 lines (195 loc) · 5.08 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
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
[tool.poetry]
name = "dedlin"
version = "1.19.4"
description = "Line editor, edlin clone with many improvements"
authors = ["Matthew Martin <matthewdeanmartin@gmail.com>"]
keywords = ["editor", "edlin", "line editor",]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
include = [
"dedlin/**/*.py",
"dedlin/**/*.md",
"dedlin/**/*.txt",
"dedlin/**/*.html",
"dedlin/**/*.jinja",
]
exclude = [
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/matthewdeanmartin/dedlin"
homepage = "https://github.com/matthewdeanmartin/dedlin"
documentation ="https://github.com/matthewdeanmartin/dedlin"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/matthewdeanmartin/dedlin/issues"
"Change Log" = "https://github.com/matthewdeanmartin/dedlin/blob/main/CHANGES.md"
[tool.poetry.scripts]
dedlin = 'dedlin.__main__:main'
[tool.poetry.dependencies]
# proselint is requiring <4
python = ">=3.11, <4.0.0"
# packaging/3.12 support for packaging with phantom deps on setuptools
setuptools = "*"
# ui toolkits
questionary = ">=2.0.1, <3"
pywin32 = { version = ">=228", markers = "sys_platform == 'win32'" }
rich = ">=13.7.0, <14"
# run type checks
icontract = ">=2.6.4, <3"
pydantic = ">2.0.0, <3"
# Natural language support
pyspellchecker = ">=0.7.2"
textstat = ">=0.7.3"
# AI support
openai = ">=1.3.8"
python-dotenv = ">=1.0.0"
# syntax highlighting
pygments = ">=2.16.1, <3"
# cli
docopt-ng = ">=0.9.0"
# browser
html2text = ">=2020.1.16"
requests = ">=2.31.0"
# ascii art/fonts
art = ">=6.1, <7"
# printer support (huge difference with 3+
mistune = "<3.0.0"
markdown-it-py = ">=3.0.0, <4"
# web api
#fastapi = { version = "*", optional = true }
#uvicorn = { version = "*", optional = true }
# Accessibilty
[tool.poetry.extras]
# doesn't build on gitlab actions today (dec 2023)
# pyttsx3 = ">=2.90"
speaking = ["pyttsx3"]
#[tool.poetry.extras]
#webapi = ["fastapi","uvicorn"]
[tool.poetry.dev-dependencies]
ruff = "*"
metametameta = ">=0.1.0"
# types
mypy = ">=1.6.1"
types-requests = "*"
types-Pygments = "*"
# testing
pytest = ">=7.4.3"
pytest-cov = ">=4.1.0"
hypothesis = {extras = ["cli"], version = ">=6.88.1"}
tox = ">=4.15.0"
pre-commit = ">=3.5.0"
# docs
proselint = ">=0.13.0"
interrogate = ">=1.5.0"
pydoctest = ">=0.1.22"
pdoc3 = ">=0.10.0"
mdformat = ">=0.7.17"
linkcheckmd = ">=1.4.0"
codespell = ">=2.2.6"
pyenchant = ">=3.2.2"
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
junit_family = "xunit1"
norecursedirs = ["vendor", "scripts"]
# don't know how to do this in toml
#addopts = "--strict-markers"
#markers =
# slow: marks tests as slow (deselect with '-m "not slow"')
# fast: marks tests as fast (deselect with '-m "not fast"')
[tool.isort]
default_section = "THIRDPARTY"
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = ["dedlin"]
line_length = 88
multi_line_output = 3
use_parentheses = true
[tool.ruff]
line-length = 1000
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F"]
ignore = [
"E722",
"E501",
]
# Exclude a variety of commonly ignored directories.
exclude = [
"dead_code",
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"hide"
]
per-file-ignores = { }
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py311"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
[tool.strict-build-script]
minimum_test_coverage = 60