-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
93 lines (84 loc) · 2.15 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
[project]
name = "openml-server-api"
version = "0.0.1"
authors = [
{ name="Pieter Gijsbers" },
]
description = "The Python-based REST API for OpenML."
readme = "README.md"
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"fastapi",
"pydantic<2.7",
"uvicorn",
"sqlalchemy",
"mysqlclient",
"python_dotenv",
"xmltodict",
]
[project.optional-dependencies]
dev = [
"coverage",
"pre-commit",
"pytest",
"pytest-mock",
"httpx",
"hypothesis",
"deepdiff",
]
docs = [
"mkdocs-material",
"mkdocs-section-index",
]
[project.urls]
"Homepage" = "https://github.com/openml/server-api"
"Bug Tracker" = "https://github.com/openml/server-api/issues"
[tool.coverage.run]
branch=true
[tool.coverage.report]
show_missing=true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
# The D (doc) and DTZ (datetime zone) lint classes current heavily violated - fix later
select = ["ALL"]
ignore = [
"ANN101", # style choice - no annotation for self
"ANN102", # style choice - no annotation for cls
"CPY", # we do not require copyright in every file
"D", # todo: docstring linting
"D203",
"D204",
"D213",
"DTZ", # To add
# Linter does not detect when types are used for Pydantic
"TCH001",
"TCH003",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [ "S101", "COM812", "D"]
"src/core/conversions.py" = ["ANN401"]
[tool.mypy]
strict = true
plugins = [
"pydantic.mypy"
]
[tool.pytest.ini_options]
pythonpath = [
"src"
]
markers = [
"slow: test or sets of tests which take more than a few seconds to run.",
# While the `mut`ation marker below is not strictly necessary as every change is
# executed within transaction that is rolled back, it can halt other unit tests which
# whose queries may depend on the execution or rollback of the transaction.
"mut: executes a mutation on the database (in a transaction which is rolled back)",
]
filterwarnings = [
'ignore:A private pytest class or function was used.:DeprecationWarning:tests.conftest:',
]