Git Product home page Git Product logo

Comments (4)

jameshearttech avatar jameshearttech commented on June 21, 2024 1

In our current image using python:3-slim as the base the version of pylint is 2.17.5 and astroid 2.15.6. I see that visit_typealias does not exist in rebuilder.py for tag v2.15.6. Looks like it was added in pylint-dev/astroid@6d4f364.

from pylint.

jameshearttech avatar jameshearttech commented on June 21, 2024

We are using the python:3-slim image (i.e., Debian stable / bookworm). I tested using the debian:unstable-slim image and found the problem doesn't occur in this case. I noted older versions of Python and the Gitpython module, but newer versions of pylint and astroid. I'm guessing the newer version of pylint or astroid fixed the problem?

# apt list --installed | grep py

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libpython3-dev/unstable,now 3.11.6-1 amd64 [installed,automatic]
libpython3-stdlib/unstable,now 3.11.6-1 amd64 [installed,automatic]
libpython3.11-dev/unstable,now 3.11.8-1 amd64 [installed,automatic]
libpython3.11-minimal/unstable,now 3.11.8-1 amd64 [installed,automatic]
libpython3.11-stdlib/unstable,now 3.11.8-1 amd64 [installed,automatic]
libpython3.11/unstable,now 3.11.8-1 amd64 [installed,automatic]
libsharpyuv0/unstable,now 1.3.2-0.4 amd64 [installed,automatic]
pylint/unstable,now 3.0.3-1 all [installed]
python3-astroid/unstable,now 3.0.2-1 all [installed,automatic]
python3-dev/unstable,now 3.11.6-1 amd64 [installed,automatic]
python3-dill/unstable,now 0.3.8-1 all [installed,automatic]
python3-distutils/unstable,now 3.11.5-1 all [installed,automatic]
python3-git/unstable,now 3.1.37-3 all [installed]
python3-gitdb/unstable,now 4.0.11-1 all [installed,automatic]
python3-importlib-metadata/unstable,now 4.12.0-1 all [installed,automatic]
python3-isort/unstable,now 5.6.4-1 all [installed,automatic]
python3-lib2to3/unstable,now 3.11.5-1 all [installed,automatic]
python3-logilab-common/unstable,now 1.9.8-1 all [installed,automatic]
python3-mccabe/unstable,now 0.7.0-1 all [installed,automatic]
python3-minimal/unstable,now 3.11.6-1 amd64 [installed,automatic]
python3-more-itertools/unstable,now 10.2.0-1 all [installed,automatic]
python3-mypy-extensions/unstable,now 1.0.0-1 all [installed,automatic]
python3-pip/unstable,now 24.0+dfsg-1 all [installed]
python3-pkg-resources/unstable,now 68.1.2-2 all [installed,automatic]
python3-platformdirs/unstable,now 4.2.0-1 all [installed,automatic]
python3-setuptools/unstable,now 68.1.2-2 all [installed,automatic]
python3-six/unstable,now 1.16.0-4 all [installed,automatic]
python3-smmap/unstable,now 6.0.0-1 all [installed,automatic]
python3-tk/unstable,now 3.11.5-1 amd64 [installed,automatic]
python3-toml/unstable,now 0.10.2-1 all [installed,automatic]
python3-tomlkit/unstable,now 0.12.3-1 all [installed,automatic]
python3-typing-extensions/unstable,now 4.9.0-1 all [installed,automatic]
python3-wheel/unstable,now 0.42.0-1 all [installed,automatic]
python3-zipp/unstable,now 1.0.0-6 all [installed,automatic]
python3.11-dev/unstable,now 3.11.8-1 amd64 [installed,automatic]
python3.11-minimal/unstable,now 3.11.8-1 amd64 [installed,automatic]
python3.11/unstable,now 3.11.8-1 amd64 [installed,automatic]
python3/unstable,now 3.11.6-1 amd64 [installed,automatic]
# pip freeze
astroid==3.0.2
dill==0.3.8
gitdb==4.0.11
GitPython==3.1.37
importlib-metadata==4.12.0
isort==5.6.4
logilab-common==1.9.8
mccabe==0.7.0
more-itertools==10.2.0
mypy-extensions==1.0.0
platformdirs==4.2.0
pylint==3.0.3
six==1.16.0
smmap==6.0.0
toml==0.10.2
tomlkit==0.12.3
typing_extensions==4.9.0
zipp==1.0.0
# pylint get_git_tag.py

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

from pylint.

Pierre-Sassoulas avatar Pierre-Sassoulas commented on June 21, 2024

I'm guessing the newer version of pylint or astroid fixed the problem?

Yes, python 3.12 can only be used to run pylint with pylint 3 or higher. We do not limit the python interpreter in metadata because most of the time we're still compatible with future interpreters.

from pylint.

jameshearttech avatar jameshearttech commented on June 21, 2024

@Pierre-Sassoulas sorry still green. I get it now. I just needed to update my modules to later versions. Thanks!

from pylint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.