pixie icon indicating copy to clipboard operation
pixie copied to clipboard

Python/mypy linting broken with Ubuntu noble linter image

Open ddelnano opened this issue 1 year ago • 0 comments

Since the migration to Ubuntu noble for the linter and dev docker images, mypy linting is no longer working. The flake8 integration used has been deprecated since 2020 and it seems that mypy is stuck with using an older interpreter. This would be a good candidate to migrate to the next linting solution (#1896).

Steps to reproduce:

  1. Introduce change to a python file
  2. Run arc lint
  3. See the following error
>>> Lint for tools/licenses/checker.py:
   Error  (T499) flake8 T499
    usage: mypy [-h] [-v] [-V] [more options; see below]
    >>>        1 #!/usr/bin/env python3
                 ^
               2 
               3 # Copyright 2018- The Pixie Authors.
               4 #
   Error  (T499) flake8 T499
    [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
               1 #!/usr/bin/env python3
    >>>        2 
                 ^
               3 # Copyright 2018- The Pixie Authors.
               4 #
               5 # Licensed under the Apache License, Version 2.0 (the "License");
   Error  (T499) flake8 T499
    mypy: error: argument --python-version: Python 3.6 is not supported (must
    be 3.8 or higher)
               1 #!/usr/bin/env python3
               2 
    >>>        3 # Copyright 2018- The Pixie Authors.
                 ^
               4 #
               5 # Licensed under the Apache License, Version 2.0 (the "License");
               6 # you may not use this file except in compliance with the License.

ddelnano avatar Jun 24 '24 22:06 ddelnano