Giter Site home page Giter Site logo

python-lint-plus's People

Contributors

nbertagnolli avatar ricardochaves avatar weibullguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

python-lint-plus's Issues

mypy is missing library stubs

Hey there,
when I enable mypy with use-mypy: true and use any python library such as PyYAML, I run into errors since mypy can not find the library stubs, raising the following error during exeution:

rikai/pattern/parser.py:6: error: Library stubs not installed for "yaml"  [import]
rikai/pattern/parser.py:6: note: Hint: "python3 -m pip install types-PyYAML"
rikai/pattern/parser.py:6: note: (or run "mypy --install-types" to install all missing stub packages)
rikai/pattern/parser.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
rikai/tests/test_parser.py:2: error: Cannot find implementation or library stub for module named "pytest"  [import]

Trying to mitigate this issue by using extra-mypy-options: "--install-types" results in a different error, presumly because of a blocked pipe:

Running: mypy --install-types rikai
rikai/pattern/parser.py:6: error: Library stubs not installed for "yaml"  [import]
rikai/pattern/parser.py:6: note: Hint: "python3 -m pip install types-PyYAML"
rikai/pattern/parser.py:6: note: (or run "mypy --install-types" to install all missing stub packages)
rikai/pattern/parser.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
rikai/tests/test_parser.py:2: error: Cannot find implementation or library stub for module named "pytest"  [import]
Traceback (most recent call last):
  File "/github/workspace/python-lint-plus/bin/mypy", line 8, in <module>
    sys.exit(console_entry())
  File "/github/workspace/python-lint-plus/lib/python3.10/site-packages/mypy/__main__.py", line 15, in console_entry
    main()
  File "mypy/main.py", line 128, in main
  File "mypy/main.py", line 1[51](https://github.com/dewolf-research/rikai-frontend/actions/runs/4315049610/jobs/7528890235#step:4:52)4, in install_types
EOFError: EOF when reading a line
Found 2 errors in 2 files (checked 17 source files)

Installing missing stub packages:
/github/workspace/python-lint-plus/bin/python3 -m pip install types-PyYAML

Install? [yN] mypy error

I'd propose running mypy --install-types whenever use-mypy: true is set.

Thanks

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.