code: install_deps> python -I -m pip install coverage influxdb 'joblib>=0.3.2' 'mdclogpy<=1.1.1' 'numpy<2' pandas==1.5.3 pytest pytest-cov ricxappframe==3.2.2 schedule 'scikit-learn<1.4' 'statsmodels<0.15' code: freeze> python -m pip freeze --all code: async-timeout==5.0.1,build==1.6.1,certifi==2026.10.19,charset-normalizer==3.5.2,cloudpickle==3.1.2,coverage==7.16.2,exceptiongroup==1.3.1,hiredis==2.0.0,idna==3.20,influxdb==5.3.2,iniconfig==2.3.1,inotify==0.2.12,inotify-simple==2.0.1,joblib==1.6.0,mdclogpy==1.1.1,msgpack==1.2.3,numpy==1.26.4,packaging==26.3,pandas==1.5.3,patsy==1.0.3,pip==26.2.2,pluggy==1.7.0,protobuf==3.20.3,Pygments==2.21.0,pyproject_hooks==1.3.3,pytest==9.1.1,pytest-cov==7.1.0,python-dateutil==2.9.0.post0,pytz==2026.5,redis==4.3.6,requests==2.34.2,ricsdl==3.1.3,ricxappframe==3.2.2,schedule==1.2.2,scikit-learn==1.3.2,scipy==1.15.3,setuptools==84.2.1,six==1.17.0,statsmodels==0.14.6,threadpoolctl==3.7.0,tomli==2.5.0,typing_extensions==4.16.0,urllib3==2.8.0 code: commands[0]> pytest -v --cov src --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=60 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-9.1.1, pluggy-1.7.0 -- /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/bin/python cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/ric-app-qp-tox-sonarqube plugins: cov-7.1.0 collecting ... collected 5 items tests/test_qp.py::test_init_xapp PASSED [ 20%] tests/test_qp.py::test_database_connection PASSED [ 40%] tests/test_qp.py::test_training PASSED [ 60%] tests/test_qp.py::test_predict PASSED [ 80%] tests/test_qp.py::test_rmr_flow PASSED [100%] =============================== warnings summary =============================== tests/test_qp.py::test_training /w/workspace/ric-app-qp-tox-sonarqube/src/qptrain.py:60: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead. for name, column in df.iteritems(): tests/test_qp.py: 20 warnings /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/lib/python3.10/site-packages/pandas/core/indexes/multi.py:643: DeprecationWarning: `cumproduct` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `cumprod` instead. codes = cartesian_product(codes) tests/test_qp.py: 40 warnings /w/workspace/ric-app-qp-tox-sonarqube/.tox/code/lib/python3.10/site-packages/pandas/core/reshape/util.py:60: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead. return [ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================ tests coverage ================================ _______________ coverage: platform linux, python 3.10.6-final-0 ________________ Name Stmts Miss Cover Missing ------------------------------------------------- src/__init__.py 0 0 100% src/database.py 107 48 55% 44-55, 59-73, 76-91, 94-99, 102-105, 145, 148, 151 src/exceptions.py 6 0 100% src/main.py 83 30 64% 49-50, 57-59, 66-76, 104-118, 149, 152, 169 src/prediction.py 18 13 28% 27-40 src/qptrain.py 98 18 82% 41-43, 53, 63-64, 68-75, 115-116, 139-140 ------------------------------------------------- TOTAL 312 109 65% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 60% reached. Total coverage: 65.06% ======================= 5 passed, 61 warnings in 42.65s ======================== code: commands[1]> coverage xml -i code: OK ✔ in 1 minute 28.01 seconds flake8: install_deps> python -I -m pip install flake8 flake8: freeze> python -m pip freeze --all flake8: flake8==7.4.1,mccabe==0.7.0,pip==26.2.2,pycodestyle==2.15.0,pyflakes==4.0.3,setuptools==84.2.1 flake8: commands[0]> flake8 setup.py src tests code: OK (88.01=setup[40.35]+cmd[47.46,0.19] seconds) flake8: OK (2.29=setup[2.05]+cmd[0.24] seconds) congratulations :) (90.34 seconds)