-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (115 loc) · 3.02 KB
/
pyproject.toml
File metadata and controls
129 lines (115 loc) · 3.02 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
[project]
name = "pyzotero"
version = "1.11.1"
description = "Python wrapper for the Zotero API"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"feedparser >= 6.0.12",
"bibtexparser>=1.4.3,<2.0.0",
"httpx>=0.28.1",
"whenever>=0.8.8",
]
authors = [{ name = "Stephan Hügel", email = "urschrei@gmail.com" }]
license = {file = "LICENSE.md"}
keywords = ["Zotero", "DH"]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: Blue Oak Model License (BlueOak-1.0.0)",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
Repository = "https://github.com/urschrei/pyzotero"
Tracker = "https://github.com/urschrei/pyzotero/issues"
documentation = "https://pyzotero.readthedocs.org"
[project.optional-dependencies]
cli = ["click>=8.0.0"]
mcp = ["mcp[cli]>=1.0.0; python_version>='3.10'"]
[project.scripts]
pyzotero = "pyzotero.cli:main"
pyzotero-mcp = "pyzotero.mcp_server:main"
[dependency-groups]
dev = [
"pytest >= 8.4.2",
"pytz>=2025.2",
"python-dateutil",
"ipython",
"pytest-asyncio",
"pytest-cov>=6.0.0",
"tzdata>=2025.2",
]
doc = [
"sphinx",
"sphinx-rtd-theme"
]
[build-system]
requires = ["uv_build>=0.8.14,<0.9.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
source-include = ["tests/**", "doc/**"]
[tool.pytest.ini_options]
minversion = "8.3.0"
addopts = [
"--import-mode=importlib", "--cov=pyzotero", "--cov-report=xml",
]
testpaths = [
"tests",
]
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.lint]
select = ["F", "E", "W", "N", "D4", "UP", "PL", "TRY", "PERF", "FURB", "RUF", "S", "DTZ"]
ignore = ["ANN001", "ANN003", "ANN202", "ANN201", "DOC201", "E501", "PLR0904", "PLR0913", "PLR0917", "SLF001", "FIX002", "D400", "D415"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"] # Allow assert in tests
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
[tool.ty.src]
exclude = ["tests/", "doc/"]
[tool.ty.rules]
all = "warn"
possibly-missing-attribute = "ignore"