-
Notifications
You must be signed in to change notification settings - Fork 36
/
pyproject.toml
190 lines (177 loc) · 5.47 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
[project]
name = "Kerko"
description = "A Flask blueprint that provides a faceted search interface for bibliographies based on Zotero."
authors = [
{name = "David Lesieur", email="[email protected]"},
]
readme = "README.md"
keywords = ["academia", "bibliography", "bibliographies", "flask", "search", "zotero"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: Database :: Front-Ends",
"Topic :: Education",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["version"]
requires-python = ">= 3.8"
dependencies = [
"Babel >= 2.14.0",
"Bootstrap-Flask >= 2.0.1",
"click >= 8.0.1",
"dpath >= 2.1.0",
"Flask >= 2.2.5",
"Flask-Babel >= 3.0.1",
"Flask-WTF >= 0.14.2",
"Jinja2 >= 3.0.1",
"pycountry >= 24",
"pydantic >= 1.10.7, < 2.0",
"python-dotenv >= 0.21.1",
"pytz", # Babel does not require it (since 2.12.0), but will use it if present.
"Pyzotero >= 1.4.26",
"tomli >= 2.0.1",
"tomli-w >= 1.0.0",
"w3lib >= 1.22.0",
"Werkzeug >= 2.0.1",
"Whoosh >= 2.7.4",
"wrapt >= 1.10.0",
"WTForms >= 3.0.0",
]
[project.optional-dependencies]
tests = [
"coverage >= 6.1.2, < 8",
"elementpath >= 2.4.0, < 5",
"lxml >= 4.9.3, < 5",
"responses >= 0.17.0",
"tox >= 3.8, < 5",
]
dev = [
"mypy >= 0.910",
"pip-tools >= 5.5.0",
"pre-commit >= 3.5.0",
"rope",
"ruff >= 0.1.3",
]
docs = [
"mkdocs-material >= 9.4, < 10",
"mike >= 1.1.2, < 3",
]
[project.urls]
Documentation = "https://whiskyechobravo.github.io/kerko/"
Code = "https://github.com/whiskyechobravo/kerko"
Changes = "https://github.com/whiskyechobravo/kerko/blob/main/CHANGELOG.md"
Issues = "https://github.com/whiskyechobravo/kerko/issues"
[project.entry-points."flask.commands"]
kerko = "kerko.cli:cli"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build]
artifacts = [
"*.mo",
]
exclude = [
".git-blame-ignore-revs",
]
[tool.hatch.build.hooks.custom]
dependencies = [
"Babel >= 2.14.0",
]
[tool.hatch.version]
source = "vcs"
[tool.coverage.run]
branch = true
source = ["kerko"]
[tool.coverage.paths]
source = [
"src",
".tox/*/site-packages",
]
[tool.mypy]
python_version = "3.8"
plugins = ["pydantic.mypy"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"F", # Pyflakes
"W", # pycodestyle
"E", # pycodestyle
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"YTT", # flake8-2020
"BLE", # flake8-blind-except
"A", # flake8-builtins
"COM", # flake8-commas
"T10", # flake8-debugger
"EM", # flake8-errmsg
"EXE", # flake8-executable
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"Q", # flake8-quotes
"RSE", # flake8-raise
"SLF", # flake8-self
"SLOT", # flake8-slots
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"PGH", # pygrep-hooks
"PL", # Pylint
"FLY", # flynt
# TODO: "TRY", # tryceratops
# TODO: "PERF", # Perflint
# TODO: "B", # flake8-bugbear
# TODO: "C4", # flake8-comprehensions
# TODO: "G", # flake8-logging-format
# TODO: "PYI", # flake8-pyi
# TODO: "RET", # flake8-return
# TODO: "SIM", # flake8-simplify
# TODO: "ERA", # eradicate
# TODO: "RUF", # Ruff-specific rules
]
ignore = [
"D100", # Missing docstring in public module.
"D101", # Missing docstring in public class.
"D102", # Missing docstring in public method.
"D103", # Missing docstring in public function.
"D105", # Missing docstring in magic method.
"D106", # Missing docstring in public nested class.
"D107", # Missing docstring in __init__.
"D200", # One-line docstring should fit on one line.
"D202", # No blank lines allowed after function docstring.
"D203", # 1 blank line required before class docstring.
"D205", # 1 blank line required between summary line and description.
"D212", # Multi-line docstring summary should start at the first line.
"D213", # Multi-line docstring summary should start at the second line.
"COM812", # Missing trailing comma.
"ISC001", # single-line-implicit-string-concatenation, conflicts with Ruff formatter.
"PLR0912", # Too many branches.
"PLR0913", # Too many arguments in function definition.
"PLR0915", # Too many statements.
]
[tool.ruff.lint.isort]
known-first-party = ["kerko"]