Skip to content

Commit a777466

Browse files
author
Vishnu Challa
committed
Fix liniting errors and update lint workflow
Signed-off-by: Vishnu Challa <vchalla@vchalla-thinkpadp1gen2.rmtusnc.csb>
1 parent bdf773e commit a777466

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.github/workflows/pylint.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install pylint
2726
pip install -r requirements.txt
2827
2928
- name: Analysing the code with pylint

orion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def cmd_analysis(**kwargs):
124124
logger_instance = SingletonLogger(debug=level, name="Orion")
125125
logger_instance.info("🏹 Starting Orion in command-line mode")
126126
if len(kwargs["ack"]) > 1 :
127-
kwargs["ackMap"] = load_ack(kwargs["ack"])
127+
kwargs["ackMap"] = load_ack(kwargs["ack"])
128128
kwargs["configMap"] = load_config(kwargs["config"])
129129
output, regression_flag = run(**kwargs)
130130
if output is None:

pkg/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def load_config(config: str, parameters: Dict= None) -> Dict[str, Any]:
5555
return rendered_config
5656

5757
def load_ack(ack: str) -> Dict[str,Any]:
58+
"Loads acknowledgment file content."
5859
logger_instance = SingletonLogger.getLogger("Orion")
5960
try:
6061
with open(ack, "r", encoding="utf-8") as template_file:
@@ -67,8 +68,6 @@ def load_ack(ack: str) -> Dict[str,Any]:
6768
logger_instance.error("An error occurred: %s", e)
6869
sys.exit(1)
6970

70-
required_parameters = get_template_variables(template_content)
71-
7271
rendered_config = yaml.safe_load(template_content)
7372
return rendered_config
7473

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ python-multipart==0.0.9
1818
scikit-learn==1.5.0
1919
scipy==1.12.0
2020
uvicorn==0.28.0
21+
pylint==3.3.2

0 commit comments

Comments
 (0)