File tree Expand file tree Collapse file tree 4 files changed +30
-26
lines changed Expand file tree Collapse file tree 4 files changed +30
-26
lines changed Original file line number Diff line number Diff line change 376376
377377# %%
378378pklm_test = PKLMTest (random_state = rng , compute_partial_p_values = True )
379- p_value , partial_p_values = pklm_test .test (df_nan )
379+ result = pklm_test .test (df_nan )
380+ if isinstance (result , tuple ):
381+ p_value , partial_p_values = result
382+ else :
383+ p_value = result
380384print (f"The p-value of the PKLM test is: { p_value :.2%} " )
381385
382386# %%
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -102,8 +102,32 @@ targets = ["qolmat"]
102102[tool .mypy ]
103103pretty = true
104104strict = false
105- python_version = " >=3.8.1,<3.12 "
105+ python_version = " 3.10 "
106106ignore_missing_imports = true
107+ disable_error_code = [" union-attr" ]
108+ exclude = " docs"
109+
110+ [[tool .mypy .overrides ]]
111+ module = " sklearn.*"
112+ ignore_errors = true
113+
114+ [[tool .mypy .overrides ]]
115+ module = " matplotlib.*"
116+ ignore_missing_imports = true
117+
118+ [[tool .mypy .overrides ]]
119+ module = " numpy.*"
120+ ignore_missing_imports = true
121+ ignore_errors = true
122+
123+ [[tool .mypy .overrides ]]
124+ module = " yaml"
125+ ignore_missing_imports = true
126+
127+ [tool .pytest .ini_options ]
128+ addopts = " --cov=qolmat --doctest-glob=*.rst --doctest-modules"
129+ testpaths = [" tests" ]
130+ norecursedirs = [" _build" ]
107131
108132[tool .ruff ]
109133line-length = 79
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments