Comments (13)
Work in progress...
from action-mypy.
Hi,
I have added tsuyoshicho/test-action-mypy#2, but needs your approval to run CI.
For the initial sample error above, mypy
can probably hide the note:
lines without --show-error-context
, therefore this time I created another kind of error that mypy cannot suppress.
from action-mypy.
Thanks a lot. (report and PR)
from action-mypy.
@tsuyoshicho OK it's done.
from action-mypy.
@abelcheung san
With no progress on JSON support, I've introduced a workaround.
You can ignore the notice of note.
Please try setting according to your needs.
Release 3.10.0 https://github.com/tsuyoshicho/action-mypy/releases/tag/v3.10.0
test result for ignore note: tsuyoshicho/action-test-repo#27
This issue remains open.
from action-mypy.
Hi @abelcheung san,
github.com/tsuyoshicho/test-action-mypy/pull/1
Simply reproduction PR
Basically, mypy report only error and work fine it.
If your project mypy.ini report note:
, option mypy_flags
use to suppress it.
If you have a problem that you haven't set up that way,
I want you to make a minimum reproduction PR and report it here. (like above PR)
from action-mypy.
As an example, following image shows the behavior I want to see -- multiple lines which are related to the same error can be grouped together.
from action-mypy.
FYI
https://github.com/jordemort/action-pyright
use rdjson format (rich error report support),
mypy json report python/mypy#10816
I will think about it.
from action-mypy.
Ouch, you're right, it is not easy to handle mypy error in its current state. It is fine to put the idea on hold until mypy has done something to improve the situation.
from action-mypy.
tsuyoshicho/action-test-repo#21
Reproduce PR create in my test repo.
This code is same as abel's test code.
@abelcheung san
Your PR are closed
Please remove forked test-action-mypy
repository.
This original test-action-mypy
repository are other user test repo...Sorry.
I remove my forked repository too.
from action-mypy.
Note:
python/mypy#10816 (comment)
FYI:
Relation File Format information.
reviewdog are diagnostics parsing tool, and that support json file.
https://github.com/reviewdog/reviewdog/tree/master/proto/rdf#rdjsonaction-pyright using converted rdjson from original json.
When mypy implements Pyright's format json, converting the json using already existing action-pyright's method will be solved this issue.
from action-mypy.
@tsuyoshicho I have tried the ignore_note
setting and it works fine here. It seems mypy developers don't have interest in implementing JSON support, so your workaround is probably the best approach right now.
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
- Type checking with third party packages HOT 9
- local test need pip install
- Dependency Dashboard
- 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
- Read mypy arguments from config file HOT 11
- 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.