Skip to content

Commit 3bf6025

Browse files
committed
these changes
1 parent a053056 commit 3bf6025

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

eng/pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ load-plugins=pylint_guidelines_checker
2121
# Let's black deal with bad-continuation
2222

2323
# Added disables from super-with-arguments
24-
disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,client-paging-methods-use-list,consider-using-max-builtin,too-many-lines,possibly-used-before-assignment,do-not-hardcode-dedent, do-not-log-raised-errors, do-not-log-exceptions
24+
disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,client-paging-methods-use-list,consider-using-max-builtin,too-many-lines,possibly-used-before-assignment,do-not-hardcode-dedent,
2525

2626

2727
[FORMAT]

eng/tox/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ commands =
102102

103103
[testenv:next-pylint]
104104
description=Lints a package with pylint (version {[testenv:next-pylint]pylint_version})
105-
pylint_version=3.2.7
105+
pylint_version=3.3.6
106106
skipsdist = true
107107
skip_install = true
108108
usedevelop = false
@@ -117,7 +117,7 @@ deps =
117117
PyGitHub>=1.59.0
118118
commands =
119119
python -m pip install pylint=={[testenv:next-pylint]pylint_version}
120-
python -m pip install azure-pylint-guidelines-checker==0.5.2 --index-url="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
120+
python -m pip install {repository_root}/../azure-sdk-tools/tools/pylint-extensions/azure-pylint-guidelines-checker
121121
python {repository_root}/eng/tox/create_package_and_install.py \
122122
-d {envtmpdir}/dist \
123123
-p {tox_root} \

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
import sys
66
import uuid
7+
import azure.core
78
from azure.identity import get_bearer_token_provider
89
from pathlib import Path
910
from datetime import datetime
@@ -114,7 +115,7 @@ def fix_file(file_path: str, logger) -> dict:
114115
file_name = Path(file_path).name
115116

116117
# Define output paths
117-
fixed_path = base_dir / 'fixed_files' / f"{file_name}_fixed_{datetime.now().strftime('%Y%m%d_%H%M%S')}.py"
118+
fixed_path = base_dir / 'fixed_files' / f"{file_name}_fixed_.py" if "_fixed" not in file_name else base_dir / 'fixed_files' / file_name
118119

119120
# Read the original content
120121
with open(file_path, 'r', encoding='utf-8') as f:

tools/azure-sdk-tools/linting_tools/lint_test_bench/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ azure-identity
22
openai
33
pylint==3.2.7
44
azure-core
5-
azure-pylint-guidelines-checker==0.5.2 --index-url="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
5+
../../azure-sdk-tools/tools/pylint-extensions/azure-pylint-guidelines-checker/ -e .

0 commit comments

Comments
 (0)