Skip to content

Commit c265eeb

Browse files
committed
fix pylint in CI
1 parent 96136d3 commit c265eeb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/http-client-python/eng/scripts/ci/run_pylint.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ def _single_dir_pylint(mod):
4747
]
4848
if is_azure:
4949
pylint_args.append("--load-plugins=pylint_guidelines_checker")
50+
# Per-package suppressions for generated code where pylint's ignore-paths
51+
# is not honored (pylint 4.x + recursive + plugin). Keep the scope as
52+
# narrow as possible: only this package, only the offending check.
53+
per_package_disables = {
54+
"azure-client-generator-core-exact-name": ["client-incorrect-naming-convention"],
55+
}
56+
extra_disables = per_package_disables.get(mod.name)
57+
if extra_disables:
58+
pylint_args.append("--disable={}".format(",".join(extra_disables)))
5059
pylint_args.append(str(inner_class.absolute()))
5160
try:
5261
check_call(pylint_args)

0 commit comments

Comments
 (0)