Code Monkey home page Code Monkey logo

Comments (4)

luto avatar luto commented on June 30, 2024 2

FYI: how to fix this in pre-commit for now

  - repo: https://github.com/klen/pylama
    rev: 8.3.8
    hooks:
      - id: pylama
        additional_dependencies:
          - pyflakes==2.4.0

==2.4.0 is not optimal, but at the time of writing it's the newest working version and I prefer pinning a specific, working on in this case.

from pylama.

bje- avatar bje- commented on June 30, 2024 2

Thanks! Will a new pylama version go up on PyPI soon?

from pylama.

wjandrea avatar wjandrea commented on June 30, 2024 1

@Mausy5043 You installed Pylama from conda-forge, eh? It's outdated there. You could install it with pip instead; that's what I did.

from pylama.

Mausy5043 avatar Mausy5043 commented on June 30, 2024

I'm getting still this error with pyflakes v3.0.1 called by pylama v7.7.1.

Is the advise to pin pyflakes at v2.4.0 still valid?

Traceback (most recent call last):
  File "/Users/maurice/miniconda3/envs/lektrix/bin/pylama", line 6, in <module>
    from pylama.main import shell
  File "/Users/maurice/miniconda3/envs/lektrix/lib/python3.9/site-packages/pylama/main.py", line 8, in <module>
    from .config import parse_options, CURDIR, setup_logger
  File "/Users/maurice/miniconda3/envs/lektrix/lib/python3.9/site-packages/pylama/config.py", line 12, in <module>
    from .lint.extensions import LINTERS
  File "/Users/maurice/miniconda3/envs/lektrix/lib/python3.9/site-packages/pylama/lint/extensions.py", line 32, in <module>
    from pylama.lint.pylama_pyflakes import Linter
  File "/Users/maurice/miniconda3/envs/lektrix/lib/python3.9/site-packages/pylama/lint/pylama_pyflakes.py", line 10, in <module>
    checker.messages.RedefinedInListComp.message = "W0621 list comprehension redefines %r from line %r"
AttributeError: module 'pyflakes.messages' has no attribute 'RedefinedInListComp'

from pylama.

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.