-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (122 loc) · 3.07 KB
/
pyproject.toml
File metadata and controls
137 lines (122 loc) · 3.07 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
[project]
name = "folioclient"
version = "1.0.7"
description = "An API wrapper over the FOLIO LSP API Suite (Formerly OKAPI)."
authors = [
{ name = "Theodor Tolstoy", email = "github.teddes@tolstoy.se" },
{ name = "Brooks Travis", email = "brooks.travis@gmail.com" },
]
license = "MIT"
readme = "README.md"
keywords = ["FOLIO", "ILS", "LSP", "Library Systems", "MARC21", "Library data"]
requires-python = ">=3.10,<4.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
# Audience
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
# Supported python versions
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"httpx>=0.28.1",
"jsonref>=1.1.0",
"py-openapi-schema-to-json-schema>=0.0.3",
"python-dateutil>=2.9.0.post0",
"pyyaml>=6.0.2",
"tenacity>=9.0.0",
]
[project.urls]
homepage = "https://github.com/FOLIO-FSE/folioclient"
[dependency-groups]
dev = [
"coverage[toml]>=6.5.0,<7.0.0",
"mypy>=1.17.1",
"nox>=2025.5.1",
"pytest>=8.2.0,<9.0.0",
"ruff>=0.12.12",
"pytest-asyncio>=1.2.0",
"pytest-coverage>=0.0",
"ty>=0.0.1a22",
"types-pyyaml>=6.0.12.20250915",
"pyrefly>=0.37.0",
]
docs = [
"sphinx>=8.1.3",
"myst-parser>=4.0.0",
"sphinx-book-theme>=1.1.3",
"httpx>=0.28.1",
]
[project.optional-dependencies]
orjson = ["orjson>=3.11.3,<4.0.0"]
# Build
[build-system]
requires = ["uv_build>=0.9.3,<0.10.0"]
build-backend = "uv_build"
# Linting
[tool.ruff]
line-length = 99
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",
"build",
"dist",
"site-packages",
"venv",
"**/tests/*.py",
"integration_test.py"
]
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["B", "B9", "C", "E", "F", "S", "W"]
ignore = ["E741"]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402"]
"**/test_*.py" = ["S101"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
# Testing
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["src"]
markers = [
"integration: mark the test as an integration test.",
"ecs: mark test as ECS functionality test.",
"slow: mark test as slow (deselect with '-m \"not slow\"' option).",
]