From 73141b56171afc64aa50959ac2649c27fe04178d Mon Sep 17 00:00:00 2001 From: arnaudon Date: Thu, 14 Nov 2024 15:17:56 +0100 Subject: [PATCH] fix --- .pylintrc | 5 +++-- tests/test_pygenstability.py | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index cd2fe2c..4fb1cd3 100644 --- a/.pylintrc +++ b/.pylintrc @@ -2,7 +2,7 @@ # for some of the options that are available [MESSAGES CONTROL] -disable=C0103,R0904,R0903,W0511,R0801,R0401,I0013,W0622,C0325,R0205,W1201,W0621,R0913,R0914,C0415,W0719 +disable=C0103,R0904,R0903,W0511,R0801,R0401,I0013,W0622,C0325,R0205,W1201,W0621,R0913,R0914,C0415,W0719,E0606 [FORMAT] # Maximum number of characters on a single line. @@ -10,7 +10,8 @@ max-line-length=100 [DESIGN] # Maximum number of arguments for function / method -max-args=8 +max-args=20 +max-positional-arguments=30 # Argument names that match this expression will be ignored. Default to name # with leading underscore ignored-argument-names=_.* diff --git a/tests/test_pygenstability.py b/tests/test_pygenstability.py index 83821ff..12c5f5a 100644 --- a/tests/test_pygenstability.py +++ b/tests/test_pygenstability.py @@ -3,7 +3,6 @@ import pytest from numpy.testing import assert_almost_equal -import numpy as np import yaml from dictdiffer import diff @@ -27,6 +26,10 @@ def test_run(graph, graph_non_connected, graph_directed, graph_signed): results = pgs.run(graph_directed, min_scale=-1, max_scale=0, n_scale=5) + # test with_all_tries + results = pgs.run(graph_directed, min_scale=-1, max_scale=0, n_scale=5, with_all_tries=True) + assert "all_tries" in results + # test we don't use spectral for directed results = pgs.run(graph_directed, min_scale=-1, max_scale=0, n_scale=5, constructor="directed") assert results is not None