Skip to content

Commit e3af3a4

Browse files
Add pylint disable messages
1 parent 9206041 commit e3af3a4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

causal_testing/generation/abstract_causal_test_case.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class AbstractCausalTestCase:
2828
"""
2929

3030
def __init__(
31+
#pylint: disable=too-many-arguments
3132
self,
3233
scenario: Scenario,
3334
intervention_constraints: set[z3.ExprRef],
@@ -77,6 +78,7 @@ def sanitise(string):
7778
)
7879

7980
def _generate_concrete_tests(
81+
#pylint: disable=too-many-locals
8082
self, sample_size: int, rct: bool = False, seed: int = 0
8183
) -> tuple[list[CausalTestCase], pd.DataFrame]:
8284
"""Generates a list of `num` concrete test cases.
@@ -151,6 +153,7 @@ def _generate_concrete_tests(
151153
return concrete_tests, pd.DataFrame(runs, columns=run_columns + ["bin"])
152154

153155
def generate_concrete_tests(
156+
#pylint: disable=too-many-arguments, too-many-locals
154157
self,
155158
sample_size: int,
156159
target_ks_score: float = None,

causal_testing/testing/causal_test_case.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
class CausalTestCase:
13+
#pylint: disable=too-many-instance-attributes
1314
"""
1415
A CausalTestCase extends the information held in a BaseTestCase. As well as storing the treatment and outcome
1516
variables, a CausalTestCase stores the values of these variables. Also the outcome variable and value are
@@ -22,6 +23,7 @@ class CausalTestCase:
2223
"""
2324

2425
def __init__(
26+
#pylint: disable=too-many-arguments
2527
self,
2628
base_test_case: BaseTestCase,
2729
expected_causal_effect: CausalTestOutcome,

causal_testing/testing/estimators.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
class Estimator(ABC):
21+
#pylint: disable=too-many-instance-attributes
2122
"""An estimator contains all of the information necessary to compute a causal estimate for the effect of changing
2223
a set of treatment variables to a set of values.
2324
@@ -35,6 +36,7 @@ class Estimator(ABC):
3536
"""
3637

3738
def __init__(
39+
#pylint: disable=too-many-arguments
3840
self,
3941
treatment: str,
4042
treatment_value: float,
@@ -92,6 +94,7 @@ class LogisticRegressionEstimator(Estimator):
9294
"""
9395

9496
def __init__(
97+
# pylint: disable=too-many-arguments
9598
self,
9699
treatment: str,
97100
treatment_value: float,
@@ -291,6 +294,7 @@ class LinearRegressionEstimator(Estimator):
291294
"""
292295

293296
def __init__(
297+
# pylint: disable=too-many-arguments
294298
self,
295299
treatment: str,
296300
treatment_value: float,
@@ -549,6 +553,7 @@ class InstrumentalVariableEstimator(Estimator):
549553
"""
550554

551555
def __init__(
556+
# pylint: disable=too-many-arguments
552557
self,
553558
treatment: str,
554559
treatment_value: float,

0 commit comments

Comments
 (0)