Skip to content

Commit 7422b65

Browse files
committed
Added tools default for testing
Signed-off-by: John Rofrano <johnnyroy@johnrofrano.com>
1 parent 5db49f6 commit 7422b65

1 file changed

Lines changed: 47 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,55 @@ mkdocstrings = "0.26.1"
5959
requires = ["poetry-core"]
6060
build-backend = "poetry.core.masonry.api"
6161

62-
[tool.black]
63-
line-length = 180
62+
########################################
63+
# Tool configurations
64+
########################################
6465

6566
[tool.cldk.testing]
6667
sample-application = "tests/resources/java/application/"
6768
sample-application-analysis-json = "tests/resources/java/analysis_json/slim"
6869
codeanalyzer-jar-path = "tests/resources/java/codeanalyzer/build/libs/"
70+
71+
[tool.flake8]
72+
max-line-length = 180
73+
count = true
74+
75+
[tool.black]
76+
line-length = 180
77+
78+
[tool.pylint.'MESSAGES CONTROL']
79+
disable = "no-member,protected-access,global-statement"
80+
81+
[tool.pylint.FORMAT]
82+
max-line-length = 180
83+
84+
[tool.pytest.ini_options]
85+
minversion = "6.0"
86+
addopts = "--pspec --cov=cldk --cov-fail-under=50"
87+
testpaths = ["tests"]
88+
89+
[tool.coverage.run]
90+
source = ["cldk"]
91+
omit = [
92+
"venv/*",
93+
".venv/*"
94+
]
95+
96+
[tool.coverage.report]
97+
show_missing = true
98+
exclude_lines = [
99+
"pragma: no cover",
100+
"pragma: no branch",
101+
"pass",
102+
"subprocess.CalledProcessError",
103+
"sys.exit",
104+
"if __name__ == .__main__.:"
105+
]
106+
ignore_errors = true
107+
108+
[tool.coverage.xml]
109+
output="./coverage.xml"
110+
111+
[tool.coverage.html]
112+
title = "Test Coverage Report"
113+
directory = "coverage_html_report"

0 commit comments

Comments
 (0)