forked from datalab-org/datalab-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
178 lines (161 loc) · 4.3 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
[build-system]
requires = ["setuptools >= 62", "versioningit ~= 3.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "datalab-api"
readme = "README.md"
description = "A Python API for instances of the datalab data management platform (https://github.com/the-grey-group/datalab)."
keywords = []
license = { text = "MIT" }
authors = [{ name = "Matthew Evans", email = "[email protected]" }]
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Science/Research",
"Intended Audience :: Information Technology",
"Topic :: Other/Nonlisted Topic",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.9"
dependencies =[
"httpx ~= 0.27", # better HTTP requests
"bokeh ~= 2.4", # interactive plots from datalab directly
"rich ~= 13.0", # nicer terminal output
"numpy < 2", # upper pin for numpy due to bad pins in bokeh
]
[project.optional-dependencies]
dev = [
"pre-commit >= 3,< 5",
"pytest ~= 8.0",
"pytest-cov >= 5,< 7",
"respx ~= 0.21",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python-legacy]",
"mkdocs-awesome-pages-plugin",
"mkdocs-jupyter",
]
cli = [
"typer ~= 0.9", # command line interface
"click-shell ~= 2.1", # REPL-like interface
]
cheminventory-helper = [
"pandas ~= 2.2",
"openpyxl ~= 3.0"
]
all = [
"datalab-api[dev,docs,cli]"
]
[project.scripts]
datalab = "datalab_api.cli:app"
[project.urls]
homepage = "https://github.com/datalab-org/datalab-api"
repository = "https://github.com/datalab-org/datalab-api"
documentation = "https://datalab-python-api.readthedocs.io"
changelog = "https://github.com/datalab-org/datalab-api/releases"
[tool.uv]
cache-keys = [{ git = true }]
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.1"
[tool.mypy]
# plugins = "pydantic.mypy"
ignore_missing_imports = true
follow_imports = "skip"
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001",
"A002",
"ANN", # TODO fix all ANN errors
"ARG", # TODO fix unused method argument
"B007",
"B028",
"B904",
"BLE001",
"C408", # Unnecessary (dict/list/tuple) call - remove call
"C416",
"C419",
"C901", # function too complex
"COM812", # trailing comma missing
"D",
"D205",
"DTZ", # datetime-tz-now
"E501", # TODO fix line too long
"EM", # exception message must not use f-string literal
"ERA001", # found commented out code
"FA100", # TODO fix FA errors
"FBT001",
"FBT002",
"FBT003",
"FIX002",
"G004", # logging uses fstring
"G201",
"INP001",
"ISC001",
"N802", # TODO maybe fix these
"N805",
"N818",
"PD011", # pandas-use-of-dot-values
"PERF102",
"PERF203", # try-except-in-loop
"PERF401",
"PGH003",
"PGH004",
"PLR", # pylint-refactor
"PLW0602",
"PLW0603",
"PLW2901",
"PT003",
"PT004", # pytest-missing-fixture-name-underscore
"PT006", # pytest-parametrize-names-wrong-type
"PT013", # pytest-incorrect-pytest-import
"PTH", # prefer Pathlib to os.path
"PYI024",
"RET",
"RET504",
"RUF005",
"RUF012",
"RUF013", # implicit-optional
"RUF015",
"S106",
"S110",
"S112",
"S311",
"S324", # use of insecure hash function
"S507", # paramiko auto trust
"S602",
"S603",
"S607",
"SIM102",
"SIM105",
"SIM108",
"SIM117",
"SLF", # private member accessed outside class
"SLOT000",
"T201",
"TCH",
"TD", # TODOs
"TRY", # long message outside exception class
"UP031",
]
pydocstyle.convention = "numpy"
isort.known-first-party = ["jobflow_remote"]
isort.split-on-trailing-comma = false
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/tests/*" = ["INP001", "S101"]