-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (81 loc) · 2.56 KB
/
pyproject.toml
File metadata and controls
90 lines (81 loc) · 2.56 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
[project]
name = "resolver_athena_client"
version = "0.0.0"
description = "Python client library for Athena API - CSAM detection and content classification"
readme = "README.md"
authors = [
{ name = "Crisp Thinking Group Ltd", email = "opensource@kroll.com" },
]
license = { text = "MIT" }
keywords = ["csam", "content-detection", "image-classification", "api-client", "grpc"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
repository = "https://github.com/crispthinking/athena-python-client"
homepage = "https://github.com/crispthinking/athena-python-client"
documentation = "https://crispthinking.github.io/athena-python-client/"
dependencies = [
"anyio>=4.10.0",
"brotli>=1.1.0",
"grpcio>=1.78.0,!=1.78.1,<2.0.0",
"httpx>=0.25.0",
"numpy>=2.2.6",
"opencv-python-headless>=4.13.0.92",
]
[project.optional-dependencies]
[dependency-groups]
docs = [
"sphinx>=7.1.0",
"furo>=2024.1.29",
"sphinx-autodoc-typehints>=1.25.0",
"sphinx-copybutton>=0.5.0",
"myst-parser>=2.0.0",
]
dev = [
"basedpyright>=1.31.4",
"brotli-stubs>=1.1.0",
"grpcio-tools>=1.78.0,!=1.78.1,<2.0.0",
"load-dotenv>=0.1.0",
"mypy-protobuf>=3.6.0",
"pre-commit>=4.2.0",
"protobuf>=6.32.1",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"pytest-cov>=6.2.1",
"ruff>=0.12.7",
"types-protobuf>=6.30.2.20250703",
]
[build-system]
requires = ["uv_build>=0.7.19,<0.10.0"]
build-backend = "uv_build"
[tool.ruff]
line-length = 80
exclude = ["src/resolver_athena_client/generated/*", "docs"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["COM812", "D213", "D211", "D203", "S324", "ASYNC109"]
[tool.ruff.lint.per-file-ignores]
# Ignore doc lint rules in tests.
"tests/**" = ["D", "S106", "S105", "S101", "SLF001"]
[tool.pyright]
exclude = ["src/resolver_athena_client/generated/*", ".venv"]
venvPath = "."
venv = ".venv"
stubPath = "stubs"
reportImplicitStringConcatenation = false
reportAny = false
[tool.pytest.ini_options]
markers = [
"functional: mark a test as a functional test",
"e2e: mark a test as an end-to-end test which asserts expected scores for known inputs. These tests should only be considered authoritative against the live classifier."
]
addopts = "--strict-markers"
[tool.coverage.run]
omit = ["src/resolver_athena_client/generated/*"]