Skip to content

Commit 62af894

Browse files
authored
Merge pull request road-core#297 from tisnik/enable-rule-C0103
Enable Pylinter rule C0103
2 parents 67059b4 + c58789f commit 62af894

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ols/app/endpoints/health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
router = APIRouter(tags=["health"])
2424
logger = logging.getLogger(__name__)
2525
llm_is_ready_persistent_state: bool = False
26-
llm_is_ready_timestamp = 0
26+
llm_is_ready_timestamp = 0 # pylint: disable=C0103
2727

2828

2929
def llm_is_ready() -> bool:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@ packages = ["ols"]
163163

164164
[tool.pylint."MESSAGES CONTROL"]
165165
good-names = ["e"]
166-
disable = ["C0103", "C0301", "C0302", "E0602", "E0611", "E1101", "R0902", "R0903", "R0913", "R0914", "W0102", "W0212", "W0511", "W0613", "W0621", "W0707", "W0718", "W0719", "R0801", "R0917"]
166+
disable = ["C0301", "C0302", "E0602", "E0611", "E1101", "R0902", "R0903", "R0913", "R0914", "W0102", "W0212", "W0511", "W0613", "W0621", "W0707", "W0718", "W0719", "R0801", "R0917"]

runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def load_index():
6666
# Initialize the K8sClientSingleton with cluster id during module load.
6767
# We want the application to fail early if the cluster ID is not available.
6868
# comment in upstream for now!
69-
# cluster_id = K8sClientSingleton.get_cluster_id()
70-
# logger.info("running on cluster with ID '%s'", cluster_id)
69+
# CLUSTER_ID = K8sClientSingleton.get_cluster_id()
70+
# logger.info("running on cluster with ID '%s'", CLUSTER_ID)
7171

7272
# init loading of query redactor
7373
config.query_redactor # pylint: disable=W0104

0 commit comments

Comments
 (0)