weibullguy / python-lint-plus Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ricardochaves/python-lint
GitHub Action to QA Your Python Code
License: MIT License
This project forked from ricardochaves/python-lint
GitHub Action to QA Your Python Code
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.