Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support mypy.ini #110

Merged
merged 5 commits into from
Apr 26, 2020
Merged

support mypy.ini #110

merged 5 commits into from
Apr 26, 2020

Conversation

koxudaxi
Copy link
Owner

This PR supports mypy.ini for compatible pydantic-mypy config.
https://pydantic-docs.helpmanual.io/mypy_plugin/#configuring-the-plugin
The PR cover init_typed and warn_untyped_fields.

This feature is enabled When a project has mypy.ini.
Otherwise, the plugin uses the values in the config panel of PyCharm.

Related issues

#36

TODO

  • update unittest

@codecov
Copy link

codecov bot commented Apr 24, 2020

Codecov Report

Merging #110 into master will increase coverage by 3.58%.
The diff coverage is 78.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #110      +/-   ##
============================================
+ Coverage     66.94%   70.53%   +3.58%     
- Complexity      103      128      +25     
============================================
  Files            14       14              
  Lines           832      862      +30     
  Branches        252      257       +5     
============================================
+ Hits            557      608      +51     
+ Misses          149      123      -26     
- Partials        126      131       +5     
Impacted Files Coverage Δ Complexity Δ
src/com/koxudaxi/pydantic/PydanticConfigPanel.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
src/com/koxudaxi/pydantic/PydanticTypeProvider.kt 67.93% <0.00%> (ø) 46.00 <0.00> (ø)
src/com/koxudaxi/pydantic/PydanticInitializer.kt 85.71% <89.18%> (+51.23%) 20.00 <8.00> (+15.00)
src/com/koxudaxi/pydantic/PydanticConfigService.kt 87.50% <100.00%> (+5.68%) 14.00 <7.00> (+10.00)
src/com/koxudaxi/pydantic/PydanticInspection.kt 68.11% <100.00%> (ø) 2.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d78089d...d28098d. Read the comment docs.

@koxudaxi koxudaxi changed the title [WIP] support mypy.ini support mypy.ini Apr 26, 2020
@koxudaxi koxudaxi merged commit ae8e147 into master Apr 26, 2020
@koxudaxi koxudaxi deleted the support_mypyini branch April 26, 2020 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant