-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
66 lines (55 loc) · 1.41 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
[tool.poetry]
name = "calrules"
version = "0.1.2"
description = ""
authors = ["Simon Thulbourn"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.9"
rule-engine = "^3.2.0"
PyYAML = "^5.4.1"
yamale = "^3.0.6"
exchangelib = "3.3.2"
[tool.poetry.dev-dependencies]
pytest = "^6.2.4"
pytest-cov = "^2.11.1"
flake8 = "^3.9.2"
flake8-variables-names = "^0.0.4"
flake8-isort = "^4.0.0"
flake8-fixme = "^1.1.1"
flake8-builtins = "^1.5.3"
flake8-comprehensions = "^3.5.0"
flake8-black = "^0.2.1"
black = "^21.5b1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
calrules = "calrules.__main__:main"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -vv"
testpaths = "./tests"
markers = "perf: marks perf tests to be deselected (deselect with '-m \"not perf\"')"
[tool.coverage.run]
source = ["calrules"]
omit = ["tests/*"]
branch = true
[tool.coverage.report]
fail_under = 90
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
[tool.coverage.html]
directory = "test_report"
title = "Cal Rules Test Coverage"