Skip to content

Commit 0348f27

Browse files
committed
this
1 parent 04c2c04 commit 0348f27

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

tools/azure-sdk-tools/linting_tools/lint_test_bench/pylint_agent.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@
2424
PYLINT_SCORES = {}
2525

2626
FILE_PROMPT = """
27-
DO prompt the user to create a virtual environment with `<path_to_python_installation>/python.exe -m venv <environment_name>` and activate it, before running any commands.
28-
29-
# General Repository Guidelines
30-
- DO check this [website](https://azure.github.io/azure-sdk/python_design.html), and link to pages found there, if possible, when asked about guidelines, or guidance on how to write SDKs. The general guidelines for SDK in this repo are defined there.
31-
3227
# Pylint
3328
3429
## Running Pylint
35-
- When asked how to run pylint, or given a command to run pylint, DO check [this website](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/pylint_checking.md.) and guide the user based on the information you find there.
36-
- DO use a python 3.8 environment that is compatible with the code you are working on. If you are not sure, please ask the user for the python version they are using.
37-
3830
3931
## Fixing Pylint Warnings
4032
@@ -285,15 +277,10 @@ def evaluate_fixes(file_path, original_content, fixed_content):
285277
if key in EVAL_RESULTS:
286278
f.write(f"Evaluation Results for {key}:")
287279
f.write("\n")
288-
f.write(f"Groundedness Score: {EVAL_RESULTS[key].score}")
280+
f.write(f"Groundedness Score: {EVAL_RESULTS[key]}")
289281
f.write("\n")
290-
f.write(f"Groundedness Result: {EVAL_RESULTS[key].result}")
291-
if EVAL_RESULTS[key].explanation:
292-
f.write("\n")
293-
f.write(f"Explanation: {EVAL_RESULTS[key].explanation}")
294282
f.write("\n")
295283
f.write("-----"*80)
296284
f.write("\n")
297285
except Exception as e:
298286
raise e
299-
print(f"Error in processing test cases: {str(e)}")

0 commit comments

Comments
 (0)