-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (72 loc) · 1.86 KB
/
pyproject.toml
File metadata and controls
92 lines (72 loc) · 1.86 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
91
92
[project]
name = "ctreepo"
version = "0.3.31"
description = "CTreePO - configuration tree patch overview - Parsing, filtering and diff calculation for network device configurations"
authors = [{ name = "Alexander Ignatov", email = "[email protected]" }]
license = "Apache-2.0"
readme = "README.md"
keywords = [
"cisco",
"arista",
"huawei",
"network",
"automation",
"configuration",
]
requires-python = ">=3.11"
dependencies = ["pyyaml (>=6.0)"]
[tool.poetry.group.dev.dependencies]
black = "^24.10.0"
ruff = "^0.8.0"
mypy = "^1.13.0"
pytest = "^8.3.3"
pytest-cov = "^6.0.0"
types-pyyaml = "^6.0.12.20240917"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
[tool.ruff]
extend-exclude = ["__init__.py"]
line-length = 120
[tool.ruff.lint]
select = ["N", "B", "A", "E", "W", "F", "ASYNC", "S", "D", "I"]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in `__init__`
"S101", # Use of `assert` detected
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
addopts = """
-vrA
--cov ctreepo
--cov-report term
--cov-report html
--cov-report xml:coverage.xml
--cov-fail-under=100
--disable-pytest-warnings
"""
testpaths = ["./tests/"]
[tool.coverage.report]
skip_empty = true
[tool.coverage.run]
omit = [
# omit anything in a .local directory anywhere
'*/.local/*',
'__init__.py',
'tests/*',
'*/tests/*',
# omit anything in a .venv directory anywhere
'.venv/*',
]
[tool.mypy]
strict = true