Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mypy, coverage] Complete Type Checking for the Project and updates t…
…o Coverage configuration (#324) * update gitignore for pyenv files * ignore tox files * hardcode version instead of pulling from gh importing semver in setup caused an error bc it was being imported before requirements file could install it * move coverage requirement to tox config * remove version py file since it's hardcoded in setup * initial working tox commit * update required coverage versions to be more flexible * switch order formatters run * ignore env specific coverage files * update tox config to use coverage run instead of base python to execute tests * add coverage report env to tox config * update coverage-report description * update a env name for type checking * remove black and flake8 from requirments package and into tox envs * update contributing md file with tox instructions * add pyenv and tox instructions to CONTRIBUTING md * Update test.yml * adding comment to force testing on GH actions * removing comment to force testing on GH actions * Update test.yml to fix error caused by typo * Revert "remove version py file since it's hardcoded in setup" This reverts commit c41d140. * Revert "hardcode version instead of pulling from gh" This reverts commit e0f42e6. * add semver as a dep for testenv in tox ini * add pyproject toml to install semver as build requirement * update type default env to type-check this matches the actual env name since type was renamed to type-check * move all flake8 configs to tox.ini file flake8 was returning different results locally in virtual env and using tox. This is because the configuration in tox.ini takes precedence over the .flake8 config file. In addition, flake8 no longer supports a global config file after version 4 * remove toxinidir from flake8 command * remove all flake8 config from tox ini file and back into flake8 config so that GH actions aren't broken * add third party stubs for pandas and pytz for mypy as dependencies * initial mypy ini file with config to ignore pyspark imports * update mypy ini with global configs * interval.py passes mypy checks * resample.py passes mypy checks * io.py passes mypy checks * update type for freq_dict in respample.py * working changes to utils.py * formatting * changes to resample.py required for correct typing in utils.py * utils.py passes mypy checks * changes to interpol so that tsdf can type check * changes to resample so that tsdf can type check * tsdf passes mypy checks * changes to tsdf so that resample can type check successfully * changes to utils so that resample can type check successfully * resample passes mypy checks * interpol passes mypy checks * pin mypy version * update test.yml to include type check for GH Actions * remove ignore for F403 for flake8 config and violations * formatting * linting * add noqa for utils import * fix circular dependencies * interpol unit tests pass * resample passes unit tests * tsdf passing unit tests * utils passing unit tests updated test_display_unavailable to not take an arg for display_unavailable arg was never used in the implementation * fix a resample test case that failed * formatting * update workflow to install to before running it :) * using pip instead of sudo * using pip instead of sudo * fix error causing a test to fail with py39 * add coverage for asOfJoin in tempo/tsdf * increase coverage for interpol * excluding actual test files from coverage report * format and lint * update gitignore for mypy cache * update to coverage file to actually omit test files * trying to use tox to run coverage report * move coverage run configs from tox.ini to .coveragerc * potential fix for GH action fatal error * Revert "potential fix for GH action fatal error" This reverts commit b2661fc. * revert changes to use tox in gh actions for coverage * omit version.py from coverage report since used for build and not project and omit line calling unittest.main * move check for literals to resample from interpol to increase coverate * add seconds to typed freq dict * add minutes to typed freq dict * add second to freq dict and force unit to lowercase before checking * add additional valid frequences to typed freq dict * update checkAllowableFreq function to pass type checks * add test to check raise when invalid freq is passed to _appendAggKey * remove unneded check because valid freq is handled in checkAllowableFreq now * remove another unneeded check since checking for valid freq values is fully handled by checkAllowableFreq * fixes for type checking * remove unreachable pass after return statement * add ... as exclusion for non implemented methods * update typing because partition cols is optional for TSDF * new unit tests for tsdf * remove unneded check since literals are handled by checkAllowableFreq * formatting * formatting * new unit tests for tsdf * fix coverage report error parallel mode uses system info to not conflict with other reports * see if parallel mode works again if codecov combine is used * the updated GH workflow for previous commit * move coveragerc file to top dir so it's discoverable by IDEs * Revert "move coveragerc file to top dir so it's discoverable by IDEs" This reverts commit a4ca9b3. * move coveragerc file to project root * Revert "move coveragerc file to project root" This reverts commit eac55e5. --------- Co-authored-by: Lorin Dawson <[email protected]> Co-authored-by: Tristan Nixon <[email protected]>
- Loading branch information