Skip to content

Fix mypy check #156

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

Merged
merged 17 commits into from
Apr 13, 2020
Merged

Fix mypy check #156

merged 17 commits into from
Apr 13, 2020

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented Apr 9, 2020

  • style
    • fix all the mypy warning
    • config: move .flake8 to setup.cfg and add mypy, pytest config
  • ci
    • add mypy check
    • add stricter config but comment out those we not yet follow
    • remove redundant arugment (it's been configed in setup.cfg)
  • test(cz/customize): add test case initialize_cz_customize_failed

@Lee-W Lee-W marked this pull request as draft April 9, 2020 09:45
@codecov
Copy link

codecov bot commented Apr 9, 2020

Codecov Report

Merging #156 into master will increase coverage by 0.03%.
The diff coverage is 93.10%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #156      +/-   ##
==========================================
+ Coverage   91.54%   91.58%   +0.03%     
==========================================
  Files          33       33              
  Lines         769      784      +15     
==========================================
+ Hits          704      718      +14     
- Misses         65       66       +1     
Flag Coverage Δ
#unittests 91.58% <93.10%> (+0.03%) ⬆️
Impacted Files Coverage Δ
commitizen/config/__init__.py 82.60% <50.00%> (ø)
commitizen/cz/customize/customize.py 84.78% <78.57%> (-0.22%) ⬇️
commitizen/commands/check.py 100.00% <100.00%> (ø)
commitizen/config/base_config.py 91.30% <100.00%> (ø)
commitizen/config/ini_config.py 84.61% <100.00%> (+0.83%) ⬆️
commitizen/config/toml_config.py 93.10% <100.00%> (+0.51%) ⬆️
commitizen/cz/__init__.py 100.00% <100.00%> (ø)
commitizen/cz/base.py 100.00% <100.00%> (ø)
...en/cz/conventional_commits/conventional_commits.py 100.00% <100.00%> (ø)
commitizen/cz/jira/jira.py 100.00% <100.00%> (ø)
... and 6 more

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 7d4e3b9...906d1fb. Read the comment docs.

@Lee-W Lee-W marked this pull request as ready for review April 9, 2020 10:40
@Lee-W
Copy link
Member Author

Lee-W commented Apr 9, 2020

@woile I made some change on config files (i.e. setup.cfg) of this project. Could you check whether they make sense to you? Other than that is just fixing mypy warnings.

@Lee-W Lee-W changed the title WIP: Fix mypy check Fix mypy check Apr 10, 2020
@woile
Copy link
Member

woile commented Apr 10, 2020

Thanks for taking the time to do this!

@Lee-W
Copy link
Member Author

Lee-W commented Apr 13, 2020

@woile If other configurations look good to you, I'll merge this pull request late today 🙂

@woile
Copy link
Member

woile commented Apr 13, 2020

Yes it's fine 👍 if any of the new settings starts annoying we can discuss about changing it.

@Lee-W Lee-W merged commit a762c9e into master Apr 13, 2020
@Lee-W Lee-W deleted the fix-mypy-check branch April 20, 2020 04:05
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.

2 participants