-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
64 lines (54 loc) · 1.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
[tool.poetry]
name = "nlb-catalogue-client"
version = "0.1.3"
description = "A client library for accessing NLB's Catalogue Search API"
authors = ["Wong Zhao Wu <[email protected]>"]
readme = "README.md"
packages = [
{include = "nlb_catalogue_client"},
]
include = ["CHANGELOG.md", "catalogue_client/py.typed"]
[tool.poetry.dependencies]
python = "^3.8"
httpx = ">=0.20.0,<0.28.0"
attrs = ">=21.3.0"
python-dateutil = "^2.8.0"
tenacity = "^9.0.0"
[tool.poetry.dev-dependencies]
pytest = "^8.0.0"
pytest-asyncio = "^0.24.0"
pytest-cov = "^4.0.0"
pytest-mock = "^3.11.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["F", "I", "UP"]
[tool.pyright]
venvPath="."
venv="venv"
# Pytest Configs
[tool.pytest.ini_options]
testpaths = "tests"
python_files = "test_*.py"
addopts = "--cov=nlb_catalogue_client --cov-report=term-missing --junitxml=coverage.xml"
# Coverage configs
[tool.coverage.run]
source = ["nlb_catalogue_client"]
omit = [
"*/tests/*",
"*/__init__.py"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
"except ImportError:",
"if TYPE_CHECKING:",
]