-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (74 loc) · 2.17 KB
/
pyproject.toml
File metadata and controls
84 lines (74 loc) · 2.17 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
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (C) 2023, 2024 Collabora Limited
# Author: Guillaume Tucker <guillaume.tucker@collabora.com>
# Author: Jeny Sadadia <jeny.sadadia@collabora.com>
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "kernelci-api"
version = "0"
description = "KernelCI API"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "LGPL-2.1-or-later"}
dependencies = [
"cloudevents == 2.0.0",
"beanie == 2.1.0",
"fastapi[all] == 0.135.3",
"fastapi-pagination == 0.12.30",
"fastapi-users[beanie, oauth] == 15.0.5",
"MarkupSafe == 2.0.1",
"motor == 3.6.0",
"pymongo == 4.16.0",
"passlib == 1.7.4",
"pydantic == 2.9.2",
"pymongo-migrate == 0.11.0",
"python-jose[cryptography] == 3.5.0",
"redis == 7.4.0",
"uvicorn[standard] == 0.44.0",
]
[project.optional-dependencies]
tests = [
"fakeredis == 2.34.1",
"pytest == 6.2.5",
"pytest-asyncio == 0.16.0",
"pytest-dependency == 0.6.1",
"pytest-mock == 3.6.1",
"pytest-order == 1.0.1",
"httpx >= 0.27.0, < 1.0.0",
"mongomock_motor == 0.0.36",
]
dev = [
"kernelci-api[tests]",
"ruff >= 0.9.0",
"pre-commit >= 4.0.0",
]
[project.urls]
Homepage = "https://kernelci.org"
Documentation = "https://docs.kernelci.org"
Repository = "https://github.com/kernelci/kernelci-api"
[tool.setuptools]
packages = ["api", "scripts", "api.templates", "api.static", "api.static.css", "api.static.js", "migrations"]
[tool.setuptools.package-data]
scripts = ["*"]
"api.templates" = ["*.jinja2", "*.html", "*.png"]
"api.static.css" = ["*.css"]
"api.static.js" = ["*.js"]
migrations = ["*.py"]
# Ruff — used by CI and pre-commit hooks
[tool.ruff]
target-version = "py310"
# Soft limit for formatter wrapping
line-length = 80
[tool.ruff.lint]
# Ruff defaults (E, F, W) plus import sorting and complexity checking
select = ["E", "F", "W", "I", "C901"]
[tool.ruff.lint.pycodestyle]
# Hard limit — lines beyond this are errors regardless of formatter
max-line-length = 110
[tool.ruff.lint.per-file-ignores]
# Legacy high-complexity entrypoints, to be refactored incrementally
"api/main.py" = ["C901"]
"scripts/usermanager.py" = ["C901"]