* add some reader classes to get the configuration * adapt unittests * get config from json or toml file * loop over all config readers to get the configuration * rename config test files * use relative paths for coverage test in vscode * do not throw an error for missing config files * remove obsolete tests * use dotted key notation for pv sub dictonary * log config reading progress * remove create_config_toml.py * remove obsolete tests for the ha_addon * disable mosquitto tests if the server is down * ignore main method for test coverage * increase test coverage * pytest-cov: use relative_files only on github, so coverage will work with vscode locally * remove unneeded imports * add missing test cases * disable branch coverage, cause its not reachable
32 lines
842 B
JSON
32 lines
842 B
JSON
{
|
|
"python.analysis.extraPaths": [
|
|
"app/src",
|
|
"app/tests",
|
|
".venv/lib",
|
|
],
|
|
"python.testing.pytestArgs": [
|
|
"-vvv",
|
|
"--cov=app/src",
|
|
"--cov-report=xml",
|
|
"app",
|
|
"system_tests"
|
|
],
|
|
"python.testing.unittestEnabled": false,
|
|
"python.testing.pytestEnabled": true,
|
|
"flake8.args": [
|
|
"--extend-exclude=app/tests/*.py,system_tests/*.py"
|
|
],
|
|
"sonarlint.connectedMode.project": {
|
|
"connectionId": "s-allius",
|
|
"projectKey": "s-allius_tsun-gen3-proxy"
|
|
},
|
|
"files.exclude": {
|
|
"**/*.pyi": true
|
|
},
|
|
"python.analysis.typeEvaluation.deprecateTypingAliases": true,
|
|
"python.autoComplete.extraPaths": [
|
|
".venv/lib"
|
|
],
|
|
"coverage-gutters.coverageBaseDir": "tsun",
|
|
"makefile.configureOnOpen": false
|
|
} |