diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 700ae666..1d98c919 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -7,7 +7,7 @@ current_version = 0.1.0 search = version = "{current_version}" replace = version = "{new_version}" -[bumpversion:file:src/rics/__init__.py] +[bumpversion:file:src/rics/__version__.py] search = __version__ = "{current_version}" replace = __version__ = "{new_version}" diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..ef3bca04 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,29 @@ +[paths] +source = src + +[report] +omit = + tests/* + src/rics/translation/fetching/* + src/rics/translation/dio/* + src/rics/_internal* + */exceptions.py + +fail_under = 99 + +exclude_lines = + pragma: no cover + def __repr__ + if self.debug + if settings.DEBUG: + raise AssertionError + raise NotImplementedError + if 0: + if __name__ == __main__: + LOGGER.isEnabledFor + if not isinstance\(other + +show_missing = true + +[html] +directory = htmlcov diff --git a/.darglint b/.darglint index 2b03755a..944ae38c 100644 --- a/.darglint +++ b/.darglint @@ -1,2 +1,3 @@ [darglint] strictness = short +ignore_raise=AssertionError diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 3d01ece2..0fe73b8b 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v2.3.2 with: - python-version: 3.7 + python-version: 3.8 - name: Install pre-commit run: pip install pre-commit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d54843ae..2b077ed1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v2.3.2 with: - python-version: 3.7 + python-version: 3.8 - name: Install system deps shell: bash diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6d0a7d5b..b95fd31e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,6 +3,7 @@ name: tests on: push: branches: + - master pull_request: branches: @@ -13,10 +14,10 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v2.3.2 with: - python-version: 3.7 + python-version: 3.8 - name: Linting run: | @@ -30,7 +31,7 @@ jobs: strategy: matrix: os: [ Ubuntu, MacOS, Windows ] - python-version: [ '3.7', '3.8', '3.9', '3.10' ] + python-version: [ '3.8', '3.9', '3.10' ] fail-fast: true steps: - uses: actions/checkout@v2.3.4 @@ -72,10 +73,10 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v2.3.2 with: - python-version: 3.7 + python-version: 3.8 - name: Install system deps shell: bash diff --git a/.gitignore b/.gitignore index afeea786..9bc2ef61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,12 @@ +codecov + +# Data +*.pkl +*.gz +*.zip +*.csv +jupyterlab/data-cache/* + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/.idea/runConfigurations/run_all_tests.xml b/.idea/runConfigurations/run_all_tests.xml index 3ab10d3a..a03e4acd 100644 --- a/.idea/runConfigurations/run_all_tests.xml +++ b/.idea/runConfigurations/run_all_tests.xml @@ -1,11 +1,11 @@ - +