Skip to content

Commit

Permalink
Pylint: use Github Actions warning, only disable import-error
Browse files Browse the repository at this point in the history
inducer committed Dec 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1ddf2c3 commit 8cf069c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions run-pylint.py
Original file line number Diff line number Diff line change
@@ -65,12 +65,6 @@ def main():
"""Process command line args and run Pylint."""
args = []

if sys.version_info >= (3, 13):
print("*** skipping pylint run because we're on Python 3.13")
print("*** context: https://github.com/pylint-dev/pylint/issues/10112")

return

for arg in sys.argv[1:]:
if arg.startswith(YAML_RCFILE_PREFIX):
config_path = arg[len(YAML_RCFILE_PREFIX):]
@@ -79,6 +73,12 @@ def main():
else:
args.append(arg)

if sys.version_info >= (3, 13):
print("::warning:: modifying pylint run because we're on Python 3.13")
print("::warning:: context: https://github.com/pylint-dev/pylint/issues/10112")

args.append("--disable=import-error")

logger.info(" ".join(shlex.quote(arg) for arg in ["pylint"] + args))
pylint.lint.Run(args)

0 comments on commit 8cf069c

Please sign in to comment.