Skip to content

Commit 729e4e2

Browse files
black
1 parent e3af3a4 commit 729e4e2

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

causal_testing/generation/abstract_causal_test_case.py

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

3030
def __init__(
31-
#pylint: disable=too-many-arguments
31+
# pylint: disable=too-many-arguments
3232
self,
3333
scenario: Scenario,
3434
intervention_constraints: set[z3.ExprRef],
@@ -78,8 +78,11 @@ def sanitise(string):
7878
)
7979

8080
def _generate_concrete_tests(
81-
#pylint: disable=too-many-locals
82-
self, sample_size: int, rct: bool = False, seed: int = 0
81+
# pylint: disable=too-many-locals
82+
self,
83+
sample_size: int,
84+
rct: bool = False,
85+
seed: int = 0,
8386
) -> tuple[list[CausalTestCase], pd.DataFrame]:
8487
"""Generates a list of `num` concrete test cases.
8588
@@ -153,7 +156,7 @@ def _generate_concrete_tests(
153156
return concrete_tests, pd.DataFrame(runs, columns=run_columns + ["bin"])
154157

155158
def generate_concrete_tests(
156-
#pylint: disable=too-many-arguments, too-many-locals
159+
# pylint: disable=too-many-arguments, too-many-locals
157160
self,
158161
sample_size: int,
159162
target_ks_score: float = None,

causal_testing/testing/causal_test_case.py

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

1111

1212
class CausalTestCase:
13-
#pylint: disable=too-many-instance-attributes
13+
# pylint: disable=too-many-instance-attributes
1414
"""
1515
A CausalTestCase extends the information held in a BaseTestCase. As well as storing the treatment and outcome
1616
variables, a CausalTestCase stores the values of these variables. Also the outcome variable and value are
@@ -23,7 +23,7 @@ class CausalTestCase:
2323
"""
2424

2525
def __init__(
26-
#pylint: disable=too-many-arguments
26+
# pylint: disable=too-many-arguments
2727
self,
2828
base_test_case: BaseTestCase,
2929
expected_causal_effect: CausalTestOutcome,

causal_testing/testing/estimators.py

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

1919

2020
class Estimator(ABC):
21-
#pylint: disable=too-many-instance-attributes
21+
# pylint: disable=too-many-instance-attributes
2222
"""An estimator contains all of the information necessary to compute a causal estimate for the effect of changing
2323
a set of treatment variables to a set of values.
2424
@@ -36,7 +36,7 @@ class Estimator(ABC):
3636
"""
3737

3838
def __init__(
39-
#pylint: disable=too-many-arguments
39+
# pylint: disable=too-many-arguments
4040
self,
4141
treatment: str,
4242
treatment_value: float,

0 commit comments

Comments
 (0)