-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
214 lines (183 loc) · 4.27 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
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "amsthm"
version = "2.0.0"
description = "amsthm—provide a syntax to use amsthm environments in pandoc, with output in LaTeX and HTML"
license = "BSD-3-Clause"
keywords = [
"pandoc",
"amsthm",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: BSD License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Utilities",
]
homepage = "https://github.com/ickc/pandoc-amsthm"
repository = "https://github.com/ickc/pandoc-amsthm"
documentation = "https://ickc.github.io/pandoc-amsthm"
authors = ["Kolen Cheung <[email protected]>"]
readme = "README.rst"
packages = [
{ include = "amsthm", from = "src" },
]
include = [
'LICENSE',
'README.rst',
]
[tool.poetry.dependencies]
python = ">=3.8"
panflute = ">=2.1.3"
# extras
coloredlogs = { optional = true, version = ">=14,<16" }
# tests
coverage = { optional = true, version = "^6.3" }
coveralls = { optional = true, version = "*" }
pytest = { optional = true, version = "*" }
pytest-parallel = { optional = true, version = "^0.1.1" }
# docs
sphinx = { optional = true, version = "^3.3" }
sphinx-bootstrap-theme = { optional = true, version = "*" }
sphinxcontrib-apidoc = { optional = true, version = "*" }
[tool.poetry.dev-dependencies]
isort = "*"
mypy = "*"
bandit = "*"
black = "*"
bump2version = "*"
ghp-import = "^2"
nbconvert = "^6"
pylint = "*"
rstcheck = "*"
types-PyYAML = "*"
twine = "*"
[tool.poetry.extras]
extras = [
"coloredlogs",
]
tests = [
"coverage",
"coveralls",
"pytest",
"pytest-parallel",
]
docs = [
"sphinx",
"sphinx-bootstrap-theme",
"sphinxcontrib-apidoc",
]
[tool.poetry.scripts]
amsthm = 'amsthm:main'
[tool.coverage.paths]
source = [
'src',
'*/site-packages',
]
[tool.coverage.run]
branch = true
# concurrency = ["thread", "multiprocessing"]
source = [
'src',
'tests',
]
parallel = true
relative_files = true
[tool.coverage.report]
show_missing = true
precision = 2
[tool.pytest.ini_options]
addopts = [
'-ra',
'--strict-markers',
'--tb=auto',
]
testpaths = [
'tests',
]
[tool.isort]
line_length = 120
known_first_party = 'amsthm'
default_section = 'THIRDPARTY'
forced_separate = 'tests'
profile = 'black'
skip = [
'.eggs',
'ci/templates',
'build',
'dist',
]
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.pylint.format]
max-line-length = 120
[tool.black]
line-length = 120
experimental-string-processing = true
target-version = ['py38']
[tool.mypy]
#* Import discovery
mypy_path = "src"
# files
# exclude
# namespace_packages
# explicit_package_bases
ignore_missing_imports = true
# follow_imports
# follow_imports_for_stubs
# python_executable
# no_site_packages
# no_silence_site_packages
#* Platform configuration...
#* Disallow dynamic typing
disallow_any_unimported = false
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_generics = true
disallow_subclassing_any = false
#* Untyped definitions and calls
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
#* None and Optional handling
no_implicit_optional = true
strict_optional = true
#* Configuring warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = false
warn_unreachable = true
#* Suppressing errors...
#* Miscellaneous strictness flags...
#* Configuring error messages
show_error_context = false
show_column_numbers = false
show_error_codes = true
pretty = false
color_output = true
error_summary = true
show_absolute_path = false
#* Incremental mode...
#* Advanced options...
#* Report generation...
#* Miscellaneous
# junit_xml
# scripts_are_modules
warn_unused_configs = true
# verbosity