Comments (9)
Thanks.
from action-mypy.
Nnn...
@auscompgeek , your requirements.txt need mypy install.
Type below with your develop environment,
$ whiech -a mypy
If work do so OK. return executable path.
And then, GitHub workflow setup and other setting equals to your local develop environment.
CI env is isolated. that's mean direct install OK (not need virutalenv).
Like this.
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.6', '3.9' ]
name: Python ${{ matrix.python-version }} test
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install -r requirements.txt
- uses: tsuyoshicho/action-mypy@v2
from action-mypy.
I tried that, it doesn't work: https://github.com/auscompgeek/pyinfiniterecharge/runs/1838375342
(Compare to the output in https://github.com/auscompgeek/pyinfiniterecharge/runs/1838225877)
from action-mypy.
Your work is going well. 😄
Can you see the result?
This is because mypy evaluated it and put out what was NG.
https://github.com/auscompgeek/pyinfiniterecharge/runs/1838383519
Your selected reporter is github-check
.
This reporter are reported to github action log.
(Note: If you need report to PR comment, select github-pr-review
and work only pull-request.)
But mypy reported not "do not resolved package depends", there are "Cannot find implementation or library stub for module". (This is first problem)
Please setup setup.cfg
or mypy.ini
your project, and then set ignore_missing_imports
per missing stub file (.pyi) library.
(or you create stub)
from action-mypy.
The packages in question do have type stubs, as per the output from a plain mypy install (again, see the second run provided). Please check again.
from action-mypy.
Unn...
from action-mypy.
Simplified test case: https://github.com/auscompgeek/test-action-mypy/actions/runs/542487402
from action-mypy.
Thanks a lot. I continue to think this problem.
from action-mypy.
I've fixed this problem.
https://github.com/tsuyoshicho/test-action-mypy/actions/runs/542745250
Please use v3 for your repo.
(v3 change inner reason, args do not changed.)
Desc.
This issue reason: docker image run with inner docker python and libs, It dose not use project libs...sorry.
Changes
v3 as composition action, composition use workflow image and workflow setup python,mypy and libs.
This is work correctly.
from action-mypy.
Related Issues (20)
- Bug: invalidate setting with arguments
- Running mypy with reviewdog has no output HOT 5
- Deps are not installed HOT 5
- Bug: something fails during setup, no error occurs.
- "Running mypy with reviewdog 🐶 ..." does not comment and shows no error, despite errors. HOT 4
- one >53 errrors to report, reviewdog aborts GitHubActionLogWriter: "reported too many annotation" HOT 1
- Action Required: Fix Renovate Configuration
- feat: JSON Output support HOT 1
- local test need pip install
- Dependency Dashboard
- Multiple reviews generated for multiline mypy error HOT 13
- Allow specifying a mypy version HOT 4
- Some mypy errors are ignored HOT 2
- Custom MyPy binary HOT 4
- TODO: Ignore note refactor HOT 1
- Next major release HOT 1
- Running via Poetry doesn't seem to work HOT 10
- Feature request: Multiple targets for mypy HOT 3
- Suggestion: Allow user to choose mypy version manually HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-mypy.