-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
73 lines (61 loc) · 1.85 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
[tool.poetry]
name = "microovn-rebuilder"
version = "0.1.0"
description = "Script for leveraging MicroOVN in OVN development process"
authors = ["Martin Kalcok <martin.kalcok@gmail.com>"]
readme = "README.md"
include = ["default_config.yaml"]
[tool.poetry.dependencies]
python = "^3.12"
pyyaml = "^6.0.2"
paramiko = "^3.5.0"
[tool.poetry.scripts]
microovn-rebuilder = "microovn_rebuilder.cli:main"
[tool.poetry.group.dev.dependencies]
black = "^24.10.0"
tox = "^4.23.2"
isort = "^5.13.2"
mypy = "^1.13.0"
pytest = "^8.3.4"
pytest-mock = "^3.14.0"
pytest-cov = "^6.0.0"
coverage = "^7.6.9"
[tool.black]
line-length = 89
[tool.isort]
profile = "black"
skip_gitignore = true
line_length = 89
[tool.mypy]
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
disallow_untyped_defs = true
disallow_untyped_calls = true
[tool.tox.env_run_base]
skip_install = true
allowlist_externals = ["poetry"]
commands_pre = [["poetry", "install"]]
[tool.tox.env.lint]
description = "Run static code check and lints on the code"
commands = [
["poetry", "run", "black", "--check", "microovn_rebuilder/", "tests/unit/"],
["poetry", "run", "isort", "--check", "microovn_rebuilder/", "tests/unit/"],
["poetry", "run", "mypy", "--install-types", "--non-interactive", "microovn_rebuilder/"],
]
[tool.tox.env.format]
description = "Run code formatters"
commands = [
["poetry", "run", "black", "microovn_rebuilder/", "tests/unit/"],
["poetry", "run", "isort", "microovn_rebuilder/", "tests/unit/"],
]
[tool.tox.env.unit]
description = "Run unit tests (including required coverage)"
commands = [
["poetry", "run", "pytest", "--cov=microovn_rebuilder/", "--cov-report=json", "tests/unit/"],
["poetry", "run", "coverage", "report", "--fail-under=100"],
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"