-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
61 lines (54 loc) · 1.74 KB
/
Copy pathtox.ini
File metadata and controls
61 lines (54 loc) · 1.74 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
[tox]
envlist = py310, py311, py312, py313, py314
isolated_build = true
skip_missing_interpreters = true
[testenv]
description = Run vecdb-python-sdk tests with coverage
extras = test
# Use the correct interpreter for each env
basepython =
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
py314: python3.14
setenv =
PYTHONPATH = {toxinidir}/{env:SOURCE_DIR:src}
COVERAGE_FILE = {envdir}/.coverage
passenv =
UNIT_TEST_JUNIT_FLAG
COVERAGE_XML_FLAG
COVERAGE_HTML_FLAG
commands =
pytest \
-ra \
--tb=short \
--durations=20 \
--color=yes \
--cov=oracle_vecdb \
--cov-report=term-missing \
--cov-fail-under=90 \
--ignore={toxinidir}/dev-tools --ignore={toxinidir}/examples --ignore={toxinidir}/__parfait__ \
{env:UNIT_TEST_JUNIT_FLAG:} \
{env:COVERAGE_XML_FLAG:} \
{env:COVERAGE_HTML_FLAG:}
[coverage:run]
omit =
src/oracle_vecdb/services/ords/api/*
src/oracle_vecdb/services/ords/models/*
src/oracle_vecdb/services/ords/api_client.py
src/oracle_vecdb/services/ords/api_response.py
src/oracle_vecdb/services/ords/configuration.py
src/oracle_vecdb/services/ords/exceptions.py
src/oracle_vecdb/services/ords/runtime_compat.py
src/oracle_vecdb/services/ords/rest.py
[flake8]
# E203: Whitespace before ':' (Black adds this for slicing)
# E266: Too many leading '#' for block comment
# E501: Line too long
# W503: Line break before binary operator (Black enforces this)
extend-ignore = E203, E266, E501, W503
per-file-ignores =
src/oracle_vecdb/services/ords/api/*: F401, F811, F841
src/oracle_vecdb/services/ords/api_client.py: F401
src/oracle_vecdb/services/ords/models/*: F811