-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (119 loc) · 3.29 KB
/
pyproject.toml
File metadata and controls
133 lines (119 loc) · 3.29 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
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "data-collections-api"
description = "API for depositing and retrieving from PSDI data collections repository"
authors = [
{ name = "Elliott Kasoar" },
{ name = "Jacob Wilkins" },
{ name = "Jas Kalayan" },
{ name = "Alin M. Elena" },
]
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Development Status :: 3 - Alpha",
]
readme = "README.md"
license = {text = "MIT"}
keywords = ["psdi", "invenio", "zenodo"]
dynamic = ["version"]
dependencies = [
"requests",
"schema"
]
[project.optional-dependencies]
ruamel = ["ruamel.yaml>=0.17.22"]
yaml = ["pyYAML>=3.13"]
docs = [
"sphinx>=0.13.1",
"sphinxcontrib-contentui<1.0.0,>=0.2.5",
"furo==2025.9.25",
"numpydoc>=1.9.0",
"jsonschema-markdown",
"myst-nb",
]
lint = ["pre-commit<5.0.0,>=4.2.0", "ruff==0.13.3", "numpydoc>=0.19.0"]
test = ["pytest==8.3.4", "pytest-cov==5.0.0"]
[project.urls]
Homepage="https://github.com/PSDI-UK/data-collections-API"
Documentation = "https://PSDI-UK.github.io/data-collections-API"
Repository="https://github.com/PSDI-UK/data-collections-API.git"
"Bug Tracker" = "https://github.com/PSDI-UK/data-collections-API/issues"
[project.scripts]
data_collections = "data_collections_api.cli.data_collections_main:main"
upload_record = "data_collections_api.cli.record_upload:cli"
[tool.setuptools.dynamic]
version = {attr = "data_collections_api.__version__"}
[tool.ruff]
line-length = 100
indent-width = 4
# Exclude a variety of commonly ignored directories.
extend-exclude = [
".#*",
"__pycache__",
"test",
"conf.py",
"*ipynb"
]
[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
select = [
"PL", # Pylint errors
"E", # Pycodestyle
"W", # Pycodestyle warnings
"F", # Pyflakes
"B", # Flake8 bugbear
"SIM", # Flake8 Simplify
"A", # Flake8 builtins
"COM", # Flake8 commas
"ISC", # Flake8 implicit string concat
"RSE", # Flake8 raise
"FA", # Flake8 future
"FBT", # Flake8 boolean trap
"C4", # Flake8 comprehensions
"Q", # Flake8 Quotes
"RET", # Flake8 return
"ARG", # Flake8 unused args
"PTH", # Flake8 use pathlib
"I", # Isort
"RUF", # Ruff specific
"FURB",# Refurb
"PERF",# Perflint
"D", # Pydocstyle
"UP", # Pyupgrade
]
ignore = [
"PLR0913", # Too many arguments
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"COM812", # Trailing comma
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
force-sort-within-sections = true
required-imports = ["from __future__ import annotations"]
[tool.isort]
profile = "black"
[tool.numpydoc_validation]
# report on all checks, except the below
checks = [
"all",
"EX01",
"SA01",
"ES01",
"PR04", # Ignore no type (types come from signature as via sphinx_autodoc_typehints)
]
# Don't report on objects that match any of these regex
exclude = [
'\._$',
'\.__init__$',
]