Skip to content
Snippets Groups Projects
Commit 8cf069cc authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Pylint: use Github Actions warning, only disable import-error

parent 1ddf2c37
No related branches found
No related tags found
No related merge requests found
...@@ -65,12 +65,6 @@ def main(): ...@@ -65,12 +65,6 @@ def main():
"""Process command line args and run Pylint.""" """Process command line args and run Pylint."""
args = [] 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:]: for arg in sys.argv[1:]:
if arg.startswith(YAML_RCFILE_PREFIX): if arg.startswith(YAML_RCFILE_PREFIX):
config_path = arg[len(YAML_RCFILE_PREFIX):] config_path = arg[len(YAML_RCFILE_PREFIX):]
...@@ -79,6 +73,12 @@ def main(): ...@@ -79,6 +73,12 @@ def main():
else: else:
args.append(arg) 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)) logger.info(" ".join(shlex.quote(arg) for arg in ["pylint"] + args))
pylint.lint.Run(args) pylint.lint.Run(args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment