Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mypy: --strict type checking#324

Merged
tony merged 10 commits intomasterfrom
strict-mypy
May 29, 2023
Merged

mypy: --strict type checking#324
tony merged 10 commits intomasterfrom
strict-mypy

Conversation

@tony
Copy link
Member

@tony tony commented Aug 17, 2022

cihai/unihan-etl#257, cihai/unihan-db#298, #324, cihai/cihai-cli#277

Ramp up type safety / create a typed library

Fixes #321

@tony tony force-pushed the strict-mypy branch 4 times, most recently from ac50206 to a4e4df8 Compare August 21, 2022 02:06
tony added a commit to cihai/unihan-etl that referenced this pull request Aug 21, 2022
@tony tony force-pushed the strict-mypy branch 4 times, most recently from 55c73b1 to be7f415 Compare August 28, 2022 14:01
@tony tony force-pushed the strict-mypy branch 2 times, most recently from 4f3f186 to 47c239c Compare April 14, 2023 10:33
@tony tony force-pushed the strict-mypy branch 2 times, most recently from 3451d3c to d9ad27f Compare May 6, 2023 13:46
@tony tony mentioned this pull request May 6, 2023
@tony tony force-pushed the strict-mypy branch 5 times, most recently from 66290da to 390e891 Compare May 20, 2023 12:30
@tony tony force-pushed the strict-mypy branch 2 times, most recently from 8c21093 to 36051ae Compare May 26, 2023 23:17
@tony tony force-pushed the strict-mypy branch 5 times, most recently from e7bf951 to 32a09a8 Compare May 29, 2023 10:31
@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Merging #324 (1a53d79) into master (f366c57) will increase coverage by 0.72%.
The diff coverage is 87.61%.

@@            Coverage Diff             @@
##           master     #324      +/-   ##
==========================================
+ Coverage   84.03%   84.75%   +0.72%     
==========================================
  Files          18       21       +3     
  Lines         526      702     +176     
==========================================
+ Hits          442      595     +153     
- Misses         84      107      +23     
Impacted Files Coverage Δ
docs/conf.py 59.00% <33.33%> (-0.60%) ⬇️
src/cihai/extend.py 76.66% <66.66%> (-18.34%) ⬇️
src/cihai/core.py 84.61% <78.37%> (-7.84%) ⬇️
examples/basic_usage.py 92.85% <80.00%> (-7.15%) ⬇️
examples/basic_usage_manual.py 93.75% <80.00%> (-6.25%) ⬇️
examples/variant_ts_difficulties.py 50.00% <80.00%> (+2.38%) ⬆️
src/cihai/db.py 91.30% <81.81%> (-8.70%) ⬇️
src/cihai/conversion.py 85.14% <82.97%> (-2.21%) ⬇️
src/cihai/config.py 89.47% <83.33%> (+15.39%) ⬆️
src/cihai/_internal/types.py 87.50% <87.50%> (ø)
... and 11 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tony tony force-pushed the strict-mypy branch 3 times, most recently from 7ba0755 to d181107 Compare May 29, 2023 11:22
tony added 6 commits May 29, 2023 06:38
~/.cache/pypoetry/virtualenvs/cihai-v-ARjhsq-py3.11/lib/python3.11/site-packages/_pytest/pathlib.py:587: in import_path
    raise ImportPathMismatchError(module_name, module_file, path)
E   _pytest.pathlib.ImportPathMismatchError: ('types', '~/.config/asdf/installs/python/3.11.0/lib/python3.11/types.py', PosixPath('~/work/cihai/cihai/src/cihai/_internal/types.py'))
tests/conftest.py: error: Duplicate module named "conftest" (also at "conftest.py")
tests/conftest.py: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
tests/conftest.py: note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH
make monkeytype_create monkeytype_apply black isort
tony added 3 commits May 29, 2023 06:45
@tony tony merged commit 3d3b353 into master May 29, 2023
@tony tony deleted the strict-mypy branch May 29, 2023 11:56
tony added a commit that referenced this pull request May 29, 2023
See also:
- #343: Drop Python 3.7
- #324: Strict mypy typings
@tony tony mentioned this pull request Jun 4, 2023
tony added a commit to cihai/unihan-etl that referenced this pull request Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant