Skip to content

Commit d432236

Browse files
committed
Fix: supress lintings locally
1 parent eaa4360 commit d432236

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

causal_testing/surrogate/causal_surrogate_assisted.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# pylint: disable=too-few-public-methods
2-
31
"""Module containing classes to define and run causal surrogate assisted test cases"""
42

53
from abc import ABC, abstractmethod
@@ -21,7 +19,7 @@ class SimulationResult:
2119
relationship: str
2220

2321

24-
class SearchAlgorithm(ABC):
22+
class SearchAlgorithm(ABC): # pylint: disable=too-few-public-methods
2523
"""Class to be inherited with the search algorithm consisting of a search function and the fitness function of the
2624
space to be searched"""
2725

causal_testing/surrogate/surrogate_search_algorithms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""Module containing implementation of search algorithm for surrogate search """
2-
# pylint: disable=cell-var-from-loop
3-
# pylint: disable=too-many-locals
42
# Fitness functions are required to be iteratively defined, including all variables within.
53

64
from operator import itemgetter
@@ -26,6 +24,7 @@ def __init__(self, delta=0.05, config: dict = None) -> None:
2624
"some_effect": lambda x: abs(1 / x),
2725
}
2826

27+
# pylint: disable=too-many-locals
2928
def search(
3029
self, surrogate_models: list[CubicSplineRegressionEstimator], specification: CausalSpecification
3130
) -> list:
@@ -36,6 +35,7 @@ def search(
3635

3736
# The GA fitness function after including required variables into the function's scope
3837
# Unused arguments are required for pygad's fitness function signature
38+
#pylint: disable=cell-var-from-loop
3939
def fitness_function(ga, solution, idx): # pylint: disable=unused-argument
4040
surrogate.control_value = solution[0] - self.delta
4141
surrogate.treatment_value = solution[0] + self.delta

0 commit comments

Comments
 (0)