-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
100 lines (90 loc) · 2.19 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
94
95
96
97
98
99
100
[tool.poetry]
name = "tvl"
version = "0.10.1"
description = "TROPIC Verification Library"
authors = ["hlhote <henri.lhote@tropicsquare.com>"]
license = "BSD-3-Clause-Clear"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.8"
typing-extensions = "^4.8.0"
crcmod = "^1.7"
cryptography = "^43"
pycryptodome = "^3.19.0"
pyyaml = "^6.0.1"
pydantic = "^1.10.0"
jinja2 = "^3.1.4"
pycln = "^2.4.0"
isort = "^5.13.2"
pyserial = "^3.5"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
pytest-randomly = "^3.15.0"
pre-commit = "^3.5.0"
black = "^23.11.0"
[tool.poetry.scripts]
api_generator = 'tvl.api_generator.api_generator:main'
co_generator = 'tvl.configuration_object_generator.co_generator:main'
model_server = 'tvl.server.server:main'
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pycln]
all = true
paths = ["tests", "tvl"]
extend_exclude = "(tvl/api/l2_api.py|tvl/api/l3_api.py|tvl/targets/model/configuration_object_impl.py)"
[tool.isort]
profile = "black"
extend_skip = [
"tvl/api/l2_api.py",
"tvl/api/l3_api.py",
"tvl/targets/model/configuration_object_impl.py",
]
[tool.black]
target-version = ['py38']
extend-exclude = '''
(
^/tvl/api/l2_api.py
| ^/tvl/api/l3_api.py
| ^/tvl/targets/model/configuration_object_impl.py
)
'''
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = "tests"
markers = [
"slow: this test takes quite some time to complete",
]
log_cli = true
log_cli_level = "WARNING"
log_cli_format = "%(levelname)s [%(module)s] %(message)s"
addopts = """
--cov=tvl
--cov-branch
--cov-report=term
"""
[tool.coverage.run]
omit = [
"*/__init__.py",
"tvl/api/l2_api.py",
"tvl/api/l3_api.py",
"tvl/targets/model/configuration_object_impl.py",
"tvl/api_generator/*",
"tvl/configuration_object_generator/*",
"tvl/server/*",
]
[tool.coverage.report]
exclude_lines = [
'coverage: no',
'if __name__ == "__main__":',
'def main\(\):',
'def __str__\(self\)',
'def __repr__\(self\)',
'@(abc.)?abstractmethod',
'raise NotImplementedError',
'class .*\bProtocol\):',
'@(typing.)?overload',
'if TYPE_CHECKING:',
'@(functools.)?singledispatch(method)?'
]