Skip to content

Commit 4168450

Browse files
JennyPngCopilot
andauthored
Bump azure-pylint-guidelines-checker from 0.5.7 to 0.5.9 (#48036)
* Bump azure-pylint-guidelines-checker from 0.5.7 to 0.5.8 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update azure-pylint-guidelines-checker to version 0.5.9 * Update azure-pylint-guidelines-checker to version 0.5.9 * pin pylint checker versions * remove accidental add --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 067059c commit 4168450

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

eng/apiview_reqs.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ mccabe==0.7.0
99
pkginfo==1.12.1.2
1010
platformdirs==4.3.6
1111
pylint==4.0.4
12-
azure-pylint-guidelines-checker==0.5.7
12+
azure-pylint-guidelines-checker==0.5.9
1313
six==1.17.0
1414
tomli==2.2.1
1515
tomlkit==0.13.2
1616
typing_extensions==4.15.0
1717
wrapt==1.17.2
1818
apiview-stub-generator==0.3.30
19-
pip==24.0
19+
pip==24.0

eng/tools/azure-sdk-tools/azpysdk/pylint.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
REPO_ROOT = discover_repo_root()
1616
PYLINT_VERSION = "4.0.4"
17+
PYLINT_GUIDELINES_CHECKER_VERSION = "0.5.7"
1718
NEXT_PYLINT_VERSION = "4.0.6"
19+
NEXT_PYLINT_GUIDELINES_CHECKER_VERSION = "0.5.9"
1820

1921

2022
class pylint(Check):
@@ -64,12 +66,22 @@ def run(self, args: argparse.Namespace) -> int:
6466
# install dependencies
6567
self.install_dev_reqs(executable, args, package_dir)
6668
try:
69+
if args.next:
70+
# use latest version of azure-pylint-guidelines-checker for next pylint checks
71+
cmds = [
72+
f"azure-pylint-guidelines-checker=={NEXT_PYLINT_GUIDELINES_CHECKER_VERSION}",
73+
]
74+
else:
75+
cmds = [
76+
f"azure-pylint-guidelines-checker=={PYLINT_GUIDELINES_CHECKER_VERSION}",
77+
]
78+
cmds.append(
79+
"--index-url=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
80+
)
81+
6782
install_into_venv(
6883
executable,
69-
[
70-
"azure-pylint-guidelines-checker==0.5.7",
71-
"--index-url=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/",
72-
],
84+
cmds,
7385
package_dir,
7486
)
7587
except CalledProcessError as e:

0 commit comments

Comments
 (0)