pax_global_header00006660000000000000000000000064144153605140014515gustar00rootroot0000000000000052 comment=7c3b5f772b788fd9ee760f9781ad05a128c5c716 coincidence-0.6.5/000077500000000000000000000000001441536051400137705ustar00rootroot00000000000000coincidence-0.6.5/.bumpversion.cfg000066400000000000000000000007761441536051400171120ustar00rootroot00000000000000[bumpversion] current_version = 0.6.5 commit = True tag = True [bumpversion:file:repo_helper.yml] [bumpversion:file:README.rst] [bumpversion:file:doc-source/index.rst] [bumpversion:file:coincidence/__init__.py] search = : str = "{current_version}" replace = : str = "{new_version}" [bumpversion:file:pyproject.toml] search = version = "{current_version}" replace = version = "{new_version}" [bumpversion:file:.github/workflows/conda_ci.yml] search = ={current_version}=py_1 replace = ={new_version}=py_1 coincidence-0.6.5/.dependabot/000077500000000000000000000000001441536051400161535ustar00rootroot00000000000000coincidence-0.6.5/.dependabot/config.yml000066400000000000000000000003101441536051400201350ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- version: 1 update_configs: - package_manager: python directory: / update_schedule: weekly default_reviewers: - domdfcoding coincidence-0.6.5/.github/000077500000000000000000000000001441536051400153305ustar00rootroot00000000000000coincidence-0.6.5/.github/ISSUE_TEMPLATE/000077500000000000000000000000001441536051400175135ustar00rootroot00000000000000coincidence-0.6.5/.github/ISSUE_TEMPLATE/bug_report.md000066400000000000000000000022341441536051400222060ustar00rootroot00000000000000--- name: Bug report about: Create a report to help us improve labels: bug assignees: domdfcoding --- ## Description ## Steps to Reproduce 1. 2. 3. ## Actual result: ## Expected result: ## Reproduces how often: ## Version * Operating System: * Python: * coincidence: ## Installation source ## Other Additional Information: coincidence-0.6.5/.github/ISSUE_TEMPLATE/feature_request.md000066400000000000000000000012171441536051400232410ustar00rootroot00000000000000--- name: Feature request about: Suggest an idea for this project labels: "enhancement" assignees: domdfcoding --- ## Description ## Version * Operating System: * Python: * coincidence: ## Other Additional Information: coincidence-0.6.5/.github/auto_assign.yml000066400000000000000000000003471441536051400203730ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- addReviewers: true addAssignees: true reviewers: - domdfcoding numberOfReviewers: 0 # more settings at https://github.com/marketplace/actions/auto-assign-action coincidence-0.6.5/.github/dependabot.yml000066400000000000000000000002771441536051400201660ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- version: 2 updates: - package-ecosystem: pip directory: / schedule: interval: weekly reviewers: - domdfcoding coincidence-0.6.5/.github/milestones.py000077500000000000000000000012401441536051400200640ustar00rootroot00000000000000#!/usr/bin/env python # stdlib import os import sys # 3rd party from github3 import GitHub from github3.repos import Repository from packaging.version import InvalidVersion, Version latest_tag = os.environ["GITHUB_REF_NAME"] try: current_version = Version(latest_tag) except InvalidVersion: sys.exit() gh: GitHub = GitHub(token=os.environ["GITHUB_TOKEN"]) repo: Repository = gh.repository(*os.environ["GITHUB_REPOSITORY"].split('/', 1)) for milestone in repo.milestones(state="open"): try: milestone_version = Version(milestone.title) except InvalidVersion: continue if milestone_version == current_version: sys.exit(not milestone.update(state="closed")) coincidence-0.6.5/.github/stale.yml000066400000000000000000000040211441536051400171600ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. # Configuration for probot-stale - https://github.com/probot/stale --- # Number of days of inactivity before an Issue or Pull Request becomes stale daysUntilStale: 180 # Number of days of inactivity before an Issue or Pull Request with the stale label is closed. # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. daysUntilClose: false # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) onlyLabels: [] # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable exemptLabels: - pinned - security - "[Status] Maybe Later" # Set to true to ignore issues in a project (defaults to false) exemptProjects: false # Set to true to ignore issues in a milestone (defaults to false) exemptMilestones: false # Set to true to ignore issues with an assignee (defaults to false) exemptAssignees: false # Label to use when marking as stale staleLabel: stale # Comment to post when marking as stale. Set to `false` to disable markComment: false # This issue has been automatically marked as stale because it has not had # recent activity. It will be closed if no further activity occurs. Thank you # for your contributions. # Comment to post when removing the stale label. # unmarkComment: > # Your comment here. # Comment to post when closing a stale Issue or Pull Request. # closeComment: > # Your comment here. # Limit the number of actions per hour, from 1-30. Default is 30 limitPerRun: 30 # Limit to only `issues` or `pulls` # only: issues # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': # pulls: # daysUntilStale: 30 # markComment: > # This pull request has been automatically marked as stale because it has not had # recent activity. It will be closed if no further activity occurs. Thank you # for your contributions. # issues: # exemptLabels: # - confirmed coincidence-0.6.5/.github/workflows/000077500000000000000000000000001441536051400173655ustar00rootroot00000000000000coincidence-0.6.5/.github/workflows/conda_ci.yml000066400000000000000000000036331441536051400216540ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: Conda Tests on: push: branches: ["master"] permissions: contents: read jobs: tests: name: "Conda" runs-on: ubuntu-22.04 defaults: run: shell: bash -l {0} steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Setup Python 🐍 uses: "actions/setup-python@v4" with: python-version: "3.8" - name: Setup Conda uses: conda-incubator/setup-miniconda@v2 with: activate-environment: env conda-build-version: 3.23.3 python-version: "3.8" miniforge-variant: Mambaforge - name: Install dependencies 🔧 run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade "whey-conda" "whey" # $CONDA is an environment variable pointing to the root of the miniconda directory $CONDA/bin/conda update -n base conda $CONDA/bin/conda config --add channels conda-forge $CONDA/bin/conda config --add channels domdfcoding - name: "Build and index channel" run: | python -m whey --builder whey_conda --out-dir conda-bld/noarch $CONDA/bin/conda index ./conda-bld || exit 1 - name: "Search for package" run: | $CONDA/bin/conda search -c file://$(pwd)/conda-bld coincidence $CONDA/bin/conda search -c file://$(pwd)/conda-bld --override-channels coincidence - name: "Install package" run: | $CONDA/bin/conda install -c file://$(pwd)/conda-bld coincidence=0.6.5=py_1 -y || exit 1 - name: "Run Tests" run: | rm -rf coincidence $CONDA/bin/conda install pytest coincidence || exit 1 pip install -r tests/requirements.txt pytest tests/ coincidence-0.6.5/.github/workflows/docs_test_action.yml000066400000000000000000000015501441536051400234350ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: "Docs Check" on: push: branches-ignore: - 'repo-helper-update' - 'pre-commit-ci-update-config' - 'imgbot' pull_request: permissions: contents: read jobs: docs: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Check for changed files uses: dorny/paths-filter@v2 id: changes with: list-files: "json" filters: | code: - '!tests/**' - name: Install and Build 🔧 uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1 if: steps.changes.outputs.code == 'true' with: pre-build-command: python -m pip install tox docs-folder: "doc-source/" build-command: "tox -e docs -- -W " coincidence-0.6.5/.github/workflows/flake8.yml000066400000000000000000000023361441536051400212660ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: Flake8 on: push: branches-ignore: - 'repo-helper-update' - 'pre-commit-ci-update-config' - 'imgbot' pull_request: permissions: contents: read jobs: Run: name: "Flake8" runs-on: "ubuntu-20.04" steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Check for changed files uses: dorny/paths-filter@v2 id: changes with: list-files: "json" filters: | code: - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' - name: Setup Python 🐍 if: steps.changes.outputs.code == 'true' uses: "actions/setup-python@v4" with: python-version: "3.8" - name: Install dependencies 🔧 if: steps.changes.outputs.code == 'true' run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install tox~=3.0 - name: "Run Flake8" if: steps.changes.outputs.code == 'true' run: "python -m tox -e lint -s false -- --format github" coincidence-0.6.5/.github/workflows/mypy.yml000066400000000000000000000024501441536051400211070ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: mypy on: push: branches-ignore: - 'repo-helper-update' - 'pre-commit-ci-update-config' - 'imgbot' pull_request: permissions: contents: read jobs: Run: name: "mypy / ${{ matrix.os }}" runs-on: ${{ matrix.os }} strategy: matrix: os: ['ubuntu-20.04', 'windows-2019'] fail-fast: false steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Check for changed files uses: dorny/paths-filter@v2 id: changes with: list-files: "json" filters: | code: - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' - name: Setup Python 🐍 if: steps.changes.outputs.code == 'true' uses: "actions/setup-python@v4" with: python-version: "3.8" - name: Install dependencies 🔧 run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0 - name: "Run mypy" if: steps.changes.outputs.code == 'true' run: "python -m tox -e mypy -s false" coincidence-0.6.5/.github/workflows/octocheese.yml000066400000000000000000000006161441536051400222340ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: "GitHub Releases" on: schedule: - cron: 0 12 * * * jobs: Run: runs-on: ubuntu-latest steps: - uses: domdfcoding/octocheese@master with: pypi_name: "coincidence" env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} if: startsWith(github.ref, 'refs/tags/') != true coincidence-0.6.5/.github/workflows/python_ci.yml000066400000000000000000000056661441536051400221210ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: Windows on: push: branches-ignore: - 'repo-helper-update' - 'pre-commit-ci-update-config' - 'imgbot' pull_request: permissions: actions: write issues: write contents: read jobs: tests: name: "windows-2019 / Python ${{ matrix.config.python-version }}" runs-on: "windows-2019" continue-on-error: ${{ matrix.config.experimental }} env: USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False matrix: config: - {python-version: "3.6", testenvs: "py36,build", experimental: False} - {python-version: "3.7", testenvs: "py37,build", experimental: False} - {python-version: "3.8", testenvs: "py38,build", experimental: False} - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - {python-version: "3.11", testenvs: "py311,build", experimental: False} - {python-version: "3.12.0-alpha.7", testenvs: "py312-dev,build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True} - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True} - {python-version: "pypy-3.9", testenvs: "pypy39", experimental: True} steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Check for changed files if: startsWith(github.ref, 'refs/tags/') != true uses: dorny/paths-filter@v2 id: changes with: list-files: "json" filters: | code: - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' - name: Setup Python 🐍 id: setup-python if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }} uses: "actions/setup-python@v4" with: python-version: "${{ matrix.config.python-version }}" - name: Install dependencies 🔧 if: steps.setup-python.outcome == 'success' run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0 - name: "Run Tests for Python ${{ matrix.config.python-version }}" if: steps.setup-python.outcome == 'success' run: python -m tox -e "${{ matrix.config.testenvs }}" -s false - name: "Upload Coverage 🚀" uses: actions/upload-artifact@v3 if: ${{ always() && steps.setup-python.outcome == 'success' }} with: name: "coverage-${{ matrix.config.python-version }}" path: .coverage coincidence-0.6.5/.github/workflows/python_ci_linux.yml000066400000000000000000000172411441536051400233300ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: Linux on: push: branches-ignore: - 'repo-helper-update' - 'pre-commit-ci-update-config' - 'imgbot' tags: - '*' pull_request: permissions: actions: write issues: write contents: read jobs: tests: name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}" runs-on: "ubuntu-20.04" continue-on-error: ${{ matrix.config.experimental }} env: USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False matrix: config: - {python-version: "3.6", testenvs: "py36,build", experimental: False} - {python-version: "3.7", testenvs: "py37,build", experimental: False} - {python-version: "3.8", testenvs: "py38,build", experimental: False} - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - {python-version: "3.11", testenvs: "py311,build", experimental: False} - {python-version: "3.12.0-alpha.7", testenvs: "py312-dev,build", experimental: True} - {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False} - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True} - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True} - {python-version: "pypy-3.9", testenvs: "pypy39", experimental: True} steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Check for changed files if: startsWith(github.ref, 'refs/tags/') != true uses: dorny/paths-filter@v2 id: changes with: list-files: "json" filters: | code: - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' - name: Setup Python 🐍 id: setup-python if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }} uses: "actions/setup-python@v4" with: python-version: "${{ matrix.config.python-version }}" - name: Install dependencies 🔧 if: steps.setup-python.outcome == 'success' run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0 python -m pip install --upgrade coverage_pyver_pragma - name: "Run Tests for Python ${{ matrix.config.python-version }}" if: steps.setup-python.outcome == 'success' run: python -m tox -e "${{ matrix.config.testenvs }}" -s false - name: "Upload Coverage 🚀" uses: actions/upload-artifact@v3 if: ${{ always() && steps.setup-python.outcome == 'success' }} with: name: "coverage-${{ matrix.config.python-version }}" path: .coverage Coverage: needs: tests runs-on: "ubuntu-20.04" steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Setup Python 🐍 uses: "actions/setup-python@v4" with: python-version: 3.8 - name: Install dependencies 🔧 run: | python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade "coveralls>=3.0.0" coverage_pyver_pragma - name: "Download Coverage 🪂" uses: actions/download-artifact@v3 with: path: coverage - name: Display structure of downloaded files id: show run: ls -R working-directory: coverage continue-on-error: true - name: Combine Coverage 👷 if: ${{ steps.show.outcome != 'failure' }} run: | shopt -s globstar python -m coverage combine coverage/**/.coverage - name: "Upload Combined Coverage Artefact 🚀" if: ${{ steps.show.outcome != 'failure' }} uses: actions/upload-artifact@v3 with: name: "combined-coverage" path: .coverage - name: "Upload Combined Coverage to Coveralls" if: ${{ steps.show.outcome != 'failure' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | coveralls --service=github Deploy: needs: tests runs-on: "ubuntu-20.04" steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" if: startsWith(github.ref, 'refs/tags/') - name: Setup Python 🐍 uses: "actions/setup-python@v4" if: startsWith(github.ref, 'refs/tags/') with: python-version: 3.8 - name: Install dependencies 🔧 if: startsWith(github.ref, 'refs/tags/') run: | python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade tox~=3.0 - name: Build distributions 📦 if: startsWith(github.ref, 'refs/tags/') run: | tox -e build - name: Upload distribution to PyPI 🚀 if: startsWith(github.ref, 'refs/tags/') uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} skip_existing: true - name: Close milestone 🚪 if: startsWith(github.ref, 'refs/tags/') run: | python -m pip install --upgrade github3.py packaging python .github/milestones.py env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Conda: needs: deploy runs-on: ubuntu-22.04 if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true) steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Setup Python 🐍 uses: "actions/setup-python@v4" with: python-version: 3.8 - name: Setup Conda uses: conda-incubator/setup-miniconda@v2 with: activate-environment: env conda-build-version: 3.23.3 python-version: "3.8" miniforge-variant: Mambaforge - name: Install dependencies 🔧 run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade "mkrecipe" "whey" # $CONDA is an environment variable pointing to the root of the miniconda directory $CONDA/bin/conda config --set always_yes yes --set changeps1 no $CONDA/bin/conda update -n base conda $CONDA/bin/conda info -a $CONDA/bin/conda config --add channels conda-forge $CONDA/bin/conda config --add channels domdfcoding $CONDA/bin/conda config --remove channels defaults - name: Build Conda Package 📦 run: | python -m mkrecipe --type wheel || exit 1 $CONDA/bin/conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist - name: Deploy Conda Package 🚀 if: startsWith(github.ref, 'refs/tags/') run: | $CONDA/bin/conda config --set always_yes yes --set changeps1 no $CONDA/bin/conda install anaconda-client $CONDA/bin/conda info -a for f in conda/dist/noarch/coincidence-*.tar.bz2; do [ -e "$f" ] || continue echo "$f" conda install "$f" || exit 1 echo "Deploying to Anaconda.org..." $CONDA/bin/anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1 echo "Successfully deployed to Anaconda.org." done env: ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} coincidence-0.6.5/.github/workflows/python_ci_macos.yml000066400000000000000000000055231441536051400232730ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- name: macOS on: push: branches-ignore: - 'repo-helper-update' - 'pre-commit-ci-update-config' - 'imgbot' pull_request: permissions: actions: write issues: write contents: read jobs: tests: name: "macos-latest / Python ${{ matrix.config.python-version }}" runs-on: "macos-latest" continue-on-error: ${{ matrix.config.experimental }} env: USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.7,pypy-3.8,pypy-3.9' strategy: fail-fast: False matrix: config: - {python-version: "3.6", testenvs: "py36,build", experimental: False} - {python-version: "3.7", testenvs: "py37,build", experimental: False} - {python-version: "3.8", testenvs: "py38,build", experimental: False} - {python-version: "3.9", testenvs: "py39,build", experimental: False} - {python-version: "3.10", testenvs: "py310,build", experimental: False} - {python-version: "3.11", testenvs: "py311,build", experimental: False} - {python-version: "3.12.0-alpha.7", testenvs: "py312-dev,build", experimental: True} - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True} - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True} - {python-version: "pypy-3.9", testenvs: "pypy39", experimental: True} steps: - name: Checkout 🛎️ uses: "actions/checkout@v3" - name: Check for changed files if: startsWith(github.ref, 'refs/tags/') != true uses: dorny/paths-filter@v2 id: changes with: list-files: "json" filters: | code: - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' - name: Setup Python 🐍 id: setup-python if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }} uses: "actions/setup-python@v4" with: python-version: "${{ matrix.config.python-version }}" - name: Install dependencies 🔧 if: steps.setup-python.outcome == 'success' run: | python -VV python -m site python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0 - name: "Run Tests for Python ${{ matrix.config.python-version }}" if: steps.setup-python.outcome == 'success' run: python -m tox -e "${{ matrix.config.testenvs }}" -s false - name: "Upload Coverage 🚀" uses: actions/upload-artifact@v3 if: ${{ always() && steps.setup-python.outcome == 'success' }} with: name: "coverage-${{ matrix.config.python-version }}" path: .coverage coincidence-0.6.5/.gitignore000066400000000000000000000020161441536051400157570ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. __pycache__/ *.py[cod] *$py.class *.so .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ *.egg-info/ .installed.cfg *.egg *.egg* *.manifest *.spec pip-log.txt pip-delete-this-directory.txt htmlcov/ .tox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover .hypothesis/ .pytest_cache/ cover/ *.mo *.pot *.log local_settings.py db.sqlite3 instance/ .webassets-cache .scrapy docs/_build/ doc/build target/ .ipynb_checkpoints .python-version celerybeat-schedule celerybeat.pid *.sage.py .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ .spyderproject .spyproject .ropeproject /site .mypy_cache/ .dmypy.json dmypy.json *.iml *.ipr cmake-build-*/ .idea/**/mongoSettings.xml *.iws out/ atlassian-ide-plugin.xml com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties fabric.properties .idea build **/__pycache__ **/conda __pypackages__/ profile_default/ ipython_config.py Pipfile.lock .pyre/ coincidence-0.6.5/.imgbotconfig000066400000000000000000000001151441536051400164350ustar00rootroot00000000000000{ "schedule": "weekly", "ignoredFiles": [ "**/*.svg" ] } coincidence-0.6.5/.pre-commit-config.yaml000066400000000000000000000042501441536051400202520ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. --- exclude: ^$ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/repo-helper/pyproject-parser rev: v0.7.0 hooks: - id: reformat-pyproject - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: check-added-large-files - id: check-ast - id: fix-byte-order-marker - id: check-byte-order-marker - id: check-case-conflict - id: check-executables-have-shebangs - id: check-json - id: check-toml - id: check-yaml - id: check-merge-conflict - id: check-symlinks - id: check-vcs-permalinks - id: detect-private-key - id: trailing-whitespace - id: mixed-line-ending - id: end-of-file-fixer - repo: https://github.com/domdfcoding/pre-commit-hooks rev: v0.4.0 hooks: - id: requirements-txt-sorter args: - --allow-git - id: check-docstring-first exclude: ^(doc-source/conf|__pkginfo__|setup|tests/.*)\.py$ - id: bind-requirements - repo: https://github.com/domdfcoding/flake8-dunder-all rev: v0.2.2 hooks: - id: ensure-dunder-all files: ^coincidence/.*\.py$ - repo: https://github.com/domdfcoding/flake2lint rev: v0.4.2 hooks: - id: flake2lint - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0 hooks: - id: python-no-eval - id: rst-backticks - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/asottile/pyupgrade rev: v2.12.0 hooks: - id: pyupgrade args: - --py36-plus - --keep-runtime-typing - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.5.1 hooks: - id: remove-crlf - id: forbid-crlf - repo: https://github.com/python-formate/snippet-fmt rev: v0.1.4 hooks: - id: snippet-fmt - repo: https://github.com/python-formate/formate rev: v0.4.10 hooks: - id: formate exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$ - repo: https://github.com/domdfcoding/dep_checker rev: v0.7.0 hooks: - id: dep_checker args: - coincidence # Custom hooks can be added below this comment coincidence-0.6.5/.pylintrc000066400000000000000000000346201441536051400156420ustar00rootroot00000000000000[MASTER] # Specify a configuration file. #rcfile= # Python code to execute, usually for sys.path manipulation such as # pygtk.require(). #init-hook= # Add files or directories to the blacklist. They should be base names, not # paths. ignore=CVS # Add files or directories matching the regex patterns to the blacklist. The # regex matches against base names, not paths. ignore-patterns= # Pickle collected data for later comparisons. persistent=yes # List of plugins (as comma separated values of python modules names) to load, # usually to register additional checkers. load-plugins= # Use multiple processes to speed up Pylint. jobs=1 # Allow loading of arbitrary C extensions. Extensions are imported into the # active Python interpreter and may run arbitrary code. unsafe-load-any-extension=no # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code extension-pkg-whitelist= # Allow optimization of some AST trees. This will activate a peephole AST # optimizer, which will apply various small optimizations. For instance, it can # be used to obtain the result of joining multiple strings with the addition # operator. Joining a lot of strings can lead to a maximum recursion error in # Pylint and this flag can prevent that. It has one side effect, the resulting # AST will be different than the one from reality. This option is deprecated # and it will be removed in Pylint 2.0. optimize-ast=no [MESSAGES CONTROL] # Only show warnings with the listed confidence levels. Leave empty to show # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED confidence= # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option # multiple time (only on the command line, not in the configuration file where # it should appear only once). See also the "--disable" option for examples. #enable= # Disable the message, report, category or checker with the given id(s). You # can either give multiple identifiers separated by comma (,) or put this # option multiple times (only on the command line, not in the configuration # file where it should appear only once).You can also use "--disable=all" to # disable everything first and then reenable specific checks. For example, if # you want to run only the similarities checker, you can use "--disable=all # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use"--disable=all --enable=classes # --disable=W" disable=all enable=assert-on-tuple,astroid-error,bad-except-order,bad-inline-option,bad-option-value,bad-reversed-sequence,bare-except,binary-op-exception,boolean-datetime,catching-non-exception,cell-var-from-loop,confusing-with-statement,consider-merging-isinstance,consider-using-enumerate,consider-using-ternary,continue-in-finally,deprecated-pragma,django-not-available,duplicate-except,duplicate-key,eval-used,exec-used,expression-not-assigned,fatal,file-ignored,fixme,global-at-module-level,global-statement,global-variable-not-assigned,global-variable-undefined,http-response-with-content-type-json,http-response-with-json-dumps,invalid-all-object,invalid-characters-in-docstring,len-as-condition,literal-comparison,locally-disabled,locally-enabled,lost-exception,lowercase-l-suffix,misplaced-bare-raise,missing-kwoa,mixed-line-endings,model-has-unicode,model-missing-unicode,model-no-explicit-unicode,model-unicode-not-callable,multiple-imports,new-db-field-with-default,non-ascii-bytes-literals,nonexistent-operator,not-in-loop,notimplemented-raised,overlapping-except,parse-error,pointless-statement,pointless-string-statement,raising-bad-type,raising-non-exception,raw-checker-failed,redefine-in-handler,redefined-argument-from-local,redefined-builtin,redundant-content-type-for-json-response,reimported,relative-import,return-outside-function,simplifiable-if-statement,singleton-comparison,syntax-error,trailing-comma-tuple,trailing-newlines,unbalanced-tuple-unpacking,undefined-all-variable,undefined-loop-variable,unexpected-line-ending-format,unidiomatic-typecheck,unnecessary-lambda,unnecessary-pass,unnecessary-semicolon,unneeded-not,unpacking-non-sequence,unreachable,unrecognized-inline-option,used-before-assignment,useless-else-on-loop,using-constant-test,wildcard-import,yield-outside-function,useless-return [REPORTS] # Set the output format. Available formats are text, parseable, colorized, msvs # (visual studio) and html. You can also give a reporter class, eg # mypackage.mymodule.MyReporterClass. output-format=text # Put messages in a separate file for each module / package specified on the # command line instead of printing them on stdout. Reports (if any) will be # written in a file name "pylint_global.[txt|html]". This option is deprecated # and it will be removed in Pylint 2.0. files-output=no # Tells whether to display a full report or only the messages reports=no # Python expression which should return a note less than 10 (10 is the highest # note). You have access to the variables errors warning, statement which # respectively contain the number of errors / warnings messages and the total # number of statements analyzed. This is used by the global evaluation report # (RP0004). evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) # Template used to display messages. This is a python new-style format string # used to format the message information. See doc for all details #msg-template= [BASIC] # Good variable names which should always be accepted, separated by a comma good-names=i,j,k,ex,Run,_ # Bad variable names which should always be refused, separated by a comma bad-names=foo,bar,baz,toto,tutu,tata # Colon-delimited sets of names that determine each other's naming style when # the name regexes allow several styles. name-group= # Include a hint for the correct naming format with invalid-name include-naming-hint=no # List of decorators that produce properties, such as abc.abstractproperty. Add # to this list to register other decorators that produce valid properties. property-classes=abc.abstractproperty # Regular expression matching correct function names function-rgx=[a-z_][a-z0-9_]{2,30}$ # Naming hint for function names function-name-hint=[a-z_][a-z0-9_]{2,30}$ # Regular expression matching correct variable names variable-rgx=[a-z_][a-z0-9_]{2,30}$ # Naming hint for variable names variable-name-hint=[a-z_][a-z0-9_]{2,30}$ # Regular expression matching correct constant names const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ # Naming hint for constant names const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ # Regular expression matching correct attribute names attr-rgx=[a-z_][a-z0-9_]{2,30}$ # Naming hint for attribute names attr-name-hint=[a-z_][a-z0-9_]{2,30}$ # Regular expression matching correct argument names argument-rgx=[a-z_][a-z0-9_]{2,30}$ # Naming hint for argument names argument-name-hint=[a-z_][a-z0-9_]{2,30}$ # Regular expression matching correct class attribute names class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ # Naming hint for class attribute names class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ # Regular expression matching correct inline iteration names inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ # Naming hint for inline iteration names inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ # Regular expression matching correct class names class-rgx=[A-Z_][a-zA-Z0-9]+$ # Naming hint for class names class-name-hint=[A-Z_][a-zA-Z0-9]+$ # Regular expression matching correct module names module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ # Naming hint for module names module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ # Regular expression matching correct method names method-rgx=[a-z_][a-z0-9_]{2,30}$ # Naming hint for method names method-name-hint=[a-z_][a-z0-9_]{2,30}$ # Regular expression which should only match function or class names that do # not require a docstring. no-docstring-rgx=^_ # Minimum line length for functions/classes that require docstrings, shorter # ones are exempt. docstring-min-length=-1 [ELIF] # Maximum number of nested blocks for function / method body max-nested-blocks=5 [FORMAT] # Maximum number of characters on a single line. max-line-length=159 # Regexp for a line that is allowed to be longer than the limit. ignore-long-lines=^\s*(# )??$ # Allow the body of an if to be on the same line as the test if there is no # else. single-line-if-stmt=no # List of optional constructs for which whitespace checking is disabled. `dict- # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. # `trailing-comma` allows a space between comma and closing bracket: (a, ). # `empty-line` allows space-only lines. no-space-check=trailing-comma,dict-separator # Maximum number of lines in a module max-module-lines=1000 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 # tab). indent-string=' ' # Number of spaces of indent required inside a hanging or continued line. indent-after-paren=4 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF. expected-line-ending-format= [LOGGING] # Logging modules to check that the string format arguments are in logging # function parameter format logging-modules=logging [MISCELLANEOUS] # List of note tags to take in consideration, separated by a comma. notes=FIXME,XXX,TODO [SIMILARITIES] # Minimum lines number of a similarity. min-similarity-lines=4 # Ignore comments when computing similarities. ignore-comments=yes # Ignore docstrings when computing similarities. ignore-docstrings=yes # Ignore imports when computing similarities. ignore-imports=no [SPELLING] # Spelling dictionary name. Available dictionaries: none. To make it working # install python-enchant package. spelling-dict= # List of comma separated words that should not be checked. spelling-ignore-words= # A path to a file that contains private dictionary; one word per line. spelling-private-dict-file= # Tells whether to store unknown words to indicated private dictionary in # --spelling-private-dict-file option instead of raising a message. spelling-store-unknown-words=no [TYPECHECK] # Tells whether missing members accessed in mixin class should be ignored. A # mixin class is detected if its name ends with "mixin" (case insensitive). ignore-mixin-members=yes # List of module names for which member attributes should not be checked # (useful for modules/projects where namespaces are manipulated during runtime # and thus existing member attributes cannot be deduced by static analysis. It # supports qualified module names, as well as Unix pattern matching. ignored-modules= # List of class names for which member attributes should not be checked (useful # for classes with dynamically set attributes). This supports the use of # qualified names. ignored-classes=optparse.Values,thread._local,_thread._local # List of members which are set dynamically and missed by pylint inference # system, and so shouldn't trigger E1101 when accessed. Python regular # expressions are accepted. generated-members= # List of decorators that produce context managers, such as # contextlib.contextmanager. Add to this list to register other decorators that # produce valid context managers. contextmanager-decorators=contextlib.contextmanager [VARIABLES] # Tells whether we should check for unused import in __init__ files. init-import=no # A regular expression matching the name of dummy variables (i.e. expectedly # not used). dummy-variables-rgx=(_+[a-zA-Z0-9]*?$)|dummy # List of additional names supposed to be defined in builtins. Remember that # you should avoid to define new builtins when possible. additional-builtins= # List of strings which can identify a callback function by name. A callback # name must start or end with one of those strings. callbacks=cb_,_cb # List of qualified module names which can have objects that can redefine # builtins. redefining-builtins-modules=six.moves,future.builtins [CLASSES] # List of method names used to declare (i.e. assign) instance attributes. defining-attr-methods=__init__,__new__,setUp # List of valid names for the first argument in a class method. valid-classmethod-first-arg=cls # List of valid names for the first argument in a metaclass class method. valid-metaclass-classmethod-first-arg=mcs # List of member names, which should be excluded from the protected access # warning. exclude-protected=_asdict,_fields,_replace,_source,_make [DESIGN] # Maximum number of arguments for function / method max-args=5 # Argument names that match this expression will be ignored. Default to name # with leading underscore ignored-argument-names=_.* # Maximum number of locals for function / method body max-locals=15 # Maximum number of return / yield for function / method body max-returns=6 # Maximum number of branch for function / method body max-branches=12 # Maximum number of statements in function / method body max-statements=60 # Maximum number of parents for a class (see R0901). max-parents=7 # Maximum number of attributes for a class (see R0902). max-attributes=7 # Minimum number of public methods for a class (see R0903). min-public-methods=2 # Maximum number of public methods for a class (see R0904). max-public-methods=20 # Maximum number of boolean expressions in a if statement max-bool-expr=5 [IMPORTS] # Deprecated modules which should not be used, separated by a comma deprecated-modules=regsub,TERMIOS,Bastion,rexec # Create a graph of every (i.e. internal and external) dependencies in the # given file (report RP0402 must not be disabled) import-graph= # Create a graph of external dependencies in the given file (report RP0402 must # not be disabled) ext-import-graph= # Create a graph of internal dependencies in the given file (report RP0402 must # not be disabled) int-import-graph= # Force import order to recognize a module as part of the standard # compatibility libraries. known-standard-library= # Force import order to recognize a module as part of a third party library. known-third-party=enchant # Analyse import fallback blocks. This can be used to support both Python 2 and # 3 compatible code, which means that the block might have code that exists # only in one or another interpreter, leading to false positives when analysed. analyse-fallback-blocks=no [EXCEPTIONS] # Exceptions that will emit a warning when being caught. Defaults to # "Exception" overgeneral-exceptions=Exception coincidence-0.6.5/.readthedocs.yml000066400000000000000000000005351441536051400170610ustar00rootroot00000000000000# This file is managed by 'repo_helper'. Don't edit it directly. # Read the Docs configuration file --- version: 2 sphinx: builder: html configuration: doc-source/conf.py formats: - pdf - htmlzip python: version: 3.8 install: - requirements: requirements.txt - requirements: doc-source/requirements.txt - method: pip path: . coincidence-0.6.5/.style.yapf000066400000000000000000000272001441536051400160700ustar00rootroot00000000000000[style] # Align closing bracket with visual indentation. align_closing_bracket_with_visual_indent=True # Allow dictionary keys to exist on multiple lines. For example: # # x = { # ('this is the first element of a tuple', # 'this is the second element of a tuple'): # value, # } allow_multiline_dictionary_keys=True # Allow lambdas to be formatted on more than one line. allow_multiline_lambdas=False # Allow splitting before a default / named assignment in an argument list. allow_split_before_default_or_named_assigns=True # Allow splits before the dictionary value. allow_split_before_dict_value=True # Let spacing indicate operator precedence. For example: # # a = 1 * 2 + 3 / 4 # b = 1 / 2 - 3 * 4 # c = (1 + 2) * (3 - 4) # d = (1 - 2) / (3 + 4) # e = 1 * 2 - 3 # f = 1 + 2 + 3 + 4 # # will be formatted as follows to indicate precedence: # # a = 1*2 + 3/4 # b = 1/2 - 3*4 # c = (1+2) * (3-4) # d = (1-2) / (3+4) # e = 1*2 - 3 # f = 1 + 2 + 3 + 4 # arithmetic_precedence_indication=False # Number of blank lines surrounding top-level function and class # definitions. blank_lines_around_top_level_definition=2 # Insert a blank line before a class-level docstring. blank_line_before_class_docstring=False # Insert a blank line before a module docstring. blank_line_before_module_docstring=False # Insert a blank line before a 'def' or 'class' immediately nested # within another 'def' or 'class'. For example: # # class Foo: # # <------ this blank line # def method(): # ... blank_line_before_nested_class_or_def=True # Do not split consecutive brackets. Only relevant when # dedent_closing_brackets is set. For example: # # call_func_that_takes_a_dict( # { # 'key1': 'value1', # 'key2': 'value2', # } # ) # # would reformat to: # # call_func_that_takes_a_dict({ # 'key1': 'value1', # 'key2': 'value2', # }) coalesce_brackets=True # The column limit. column_limit=115 # The style for continuation alignment. Possible values are: # # - SPACE: Use spaces for continuation alignment. This is default behavior. # - FIXED: Use fixed number (CONTINUATION_INDENT_WIDTH) of columns # (ie: CONTINUATION_INDENT_WIDTH/INDENT_WIDTH tabs or # CONTINUATION_INDENT_WIDTH spaces) for continuation alignment. # - VALIGN-RIGHT: Vertically align continuation lines to multiple of # INDENT_WIDTH columns. Slightly right (one tab or a few spaces) if # cannot vertically align continuation lines with indent characters. continuation_align_style=VALIGN-RIGHT # Indent width used for line continuations. continuation_indent_width=8 # Put closing brackets on a separate line, dedented, if the bracketed # expression can't fit in a single line. Applies to all kinds of brackets, # including function definitions and calls. For example: # # config = { # 'key1': 'value1', # 'key2': 'value2', # } # <--- this bracket is dedented and on a separate line # # time_series = self.remote_client.query_entity_counters( # entity='dev3246.region1', # key='dns.query_latency_tcp', # transform=Transformation.AVERAGE(window=timedelta(seconds=60)), # start_ts=now()-timedelta(days=3), # end_ts=now(), # ) # <--- this bracket is dedented and on a separate line dedent_closing_brackets=False # Disable the heuristic which places each list element on a separate line # if the list is comma-terminated. disable_ending_comma_heuristic=False # Place each dictionary entry onto its own line. each_dict_entry_on_separate_line=False # Require multiline dictionary even if it would normally fit on one line. # For example: # # config = { # 'key1': 'value1' # } force_multiline_dict=False # The regex for an i18n comment. The presence of this comment stops # reformatting of that line, because the comments are required to be # next to the string they translate. ;i18n_comment= # The i18n function call names. The presence of this function stops # reformattting on that line, because the string it has cannot be moved # away from the i18n comment. ;i18n_function_call= # Indent blank lines. indent_blank_lines=False # Put closing brackets on a separate line, indented, if the bracketed # expression can't fit in a single line. Applies to all kinds of brackets, # including function definitions and calls. For example: # # config = { # 'key1': 'value1', # 'key2': 'value2', # } # <--- this bracket is indented and on a separate line # # time_series = self.remote_client.query_entity_counters( # entity='dev3246.region1', # key='dns.query_latency_tcp', # transform=Transformation.AVERAGE(window=timedelta(seconds=60)), # start_ts=now()-timedelta(days=3), # end_ts=now(), # ) # <--- this bracket is indented and on a separate line indent_closing_brackets=True # Indent the dictionary value if it cannot fit on the same line as the # dictionary key. For example: # # config = { # 'key1': # 'value1', # 'key2': value1 + # value2, # } indent_dictionary_value=True # The number of columns to use for indentation. indent_width=4 # Join short lines into one line. E.g., single line 'if' statements. join_multiple_lines=False # Do not include spaces around selected binary operators. For example: # # 1 + 2 * 3 - 4 / 5 # # will be formatted as follows when configured with "*,/": # # 1 + 2*3 - 4/5 ;no_spaces_around_selected_binary_operators= # Use spaces around default or named assigns. spaces_around_default_or_named_assign=False # Adds a space after the opening '{' and before the ending '}' dict delimiters. # # {1: 2} # # will be formatted as: # # { 1: 2 } spaces_around_dict_delimiters=False # Adds a space after the opening '[' and before the ending ']' list delimiters. # # [1, 2] # # will be formatted as: # # [ 1, 2 ] spaces_around_list_delimiters=False # Use spaces around the power operator. spaces_around_power_operator=False # Use spaces around the subscript / slice operator. For example: # # my_list[1 : 10 : 2] spaces_around_subscript_colon=False # Adds a space after the opening '(' and before the ending ')' tuple delimiters. # # (1, 2, 3) # # will be formatted as: # # ( 1, 2, 3 ) spaces_around_tuple_delimiters=False # The number of spaces required before a trailing comment. # This can be a single value (representing the number of spaces # before each trailing comment) or list of values (representing # alignment column values; trailing comments within a block will # be aligned to the first column value that is greater than the maximum # line length within the block). For example: # # With spaces_before_comment=5: # # 1 + 1 # Adding values # # will be formatted as: # # 1 + 1 # Adding values <-- 5 spaces between the end of the statement and comment # # With spaces_before_comment=15, 20: # # 1 + 1 # Adding values # two + two # More adding # # longer_statement # This is a longer statement # short # This is a shorter statement # # a_very_long_statement_that_extends_beyond_the_final_column # Comment # short # This is a shorter statement # # will be formatted as: # # 1 + 1 # Adding values <-- end of line comments in block aligned to col 15 # two + two # More adding # # longer_statement # This is a longer statement <-- end of line comments in block aligned to col 20 # short # This is a shorter statement # # a_very_long_statement_that_extends_beyond_the_final_column # Comment <-- the end of line comments are aligned based on the line length # short # This is a shorter statement # spaces_before_comment=2 # Insert a space between the ending comma and closing bracket of a list, # etc. space_between_ending_comma_and_closing_bracket=True # Use spaces inside brackets, braces, and parentheses. For example: # # method_call( 1 ) # my_dict[ 3 ][ 1 ][ get_index( *args, **kwargs ) ] # my_set = { 1, 2, 3 } space_inside_brackets=False # Split before arguments split_all_comma_separated_values=False # Split before arguments, but do not split all subexpressions recursively # (unless needed). split_all_top_level_comma_separated_values=True # Split before arguments if the argument list is terminated by a # comma. split_arguments_when_comma_terminated=False # Set to True to prefer splitting before '+', '-', '*', '/', '//', or '@' # rather than after. split_before_arithmetic_operator=True # Set to True to prefer splitting before '&', '|' or '^' rather than # after. split_before_bitwise_operator=True # Split before the closing bracket if a list or dict literal doesn't fit on # a single line. split_before_closing_bracket=True # Split before a dictionary or set generator (comp_for). For example, note # the split before the 'for': # # foo = { # variable: 'Hello world, have a nice day!' # for variable in bar if variable != 42 # } split_before_dict_set_generator=True # Split before the '.' if we need to split a longer expression: # # foo = ('This is a really long string: {}, {}, {}, {}'.format(a, b, c, d)) # # would reformat to something like: # # foo = ('This is a really long string: {}, {}, {}, {}' # .format(a, b, c, d)) split_before_dot=False # Split after the opening paren which surrounds an expression if it doesn't # fit on a single line. split_before_expression_after_opening_paren=True # If an argument / parameter list is going to be split, then split before # the first argument. split_before_first_argument=False # Set to True to prefer splitting before 'and' or 'or' rather than # after. split_before_logical_operator=True # Split named assignments onto individual lines. split_before_named_assigns=True # Set to True to split list comprehensions and generators that have # non-trivial expressions and multiple clauses before each of these # clauses. For example: # # result = [ # a_long_var + 100 for a_long_var in xrange(1000) # if a_long_var % 10] # # would reformat to something like: # # result = [ # a_long_var + 100 # for a_long_var in xrange(1000) # if a_long_var % 10] split_complex_comprehension=True # The penalty for splitting right after the opening bracket. split_penalty_after_opening_bracket=100 # The penalty for splitting the line after a unary operator. split_penalty_after_unary_operator=10000 # The penalty of splitting the line around the '+', '-', '*', '/', '//', # ``%``, and '@' operators. split_penalty_arithmetic_operator=300 # The penalty for splitting right before an if expression. split_penalty_before_if_expr=0 # The penalty of splitting the line around the '&', '|', and '^' # operators. split_penalty_bitwise_operator=300 # The penalty for splitting a list comprehension or generator # expression. split_penalty_comprehension=80 # The penalty for characters over the column limit. split_penalty_excess_character=7000 # The penalty incurred by adding a line split to the unwrapped line. The # more line splits added the higher the penalty. split_penalty_for_added_line_split=30 # The penalty of splitting a list of "import as" names. For example: # # from a_very_long_or_indented_module_name_yada_yad import (long_argument_1, # long_argument_2, # long_argument_3) # # would reformat to something like: # # from a_very_long_or_indented_module_name_yada_yad import ( # long_argument_1, long_argument_2, long_argument_3) split_penalty_import_names=0 # The penalty of splitting the line around the 'and' and 'or' # operators. split_penalty_logical_operator=300 # Use the Tab character for indentation. use_tabs=True coincidence-0.6.5/CONTRIBUTING.rst000066400000000000000000000025041441536051400164320ustar00rootroot00000000000000============== Contributing ============== .. This file based on https://github.com/PyGithub/PyGithub/blob/master/CONTRIBUTING.md ``coincidence`` uses `tox `_ to automate testing and packaging, and `pre-commit `_ to maintain code quality. Install ``pre-commit`` with ``pip`` and install the git hook: .. code-block:: bash $ python -m pip install pre-commit $ pre-commit install Coding style -------------- `formate `_ is used for code formatting. It can be run manually via ``pre-commit``: .. code-block:: bash $ pre-commit run formate -a Or, to run the complete autoformatting suite: .. code-block:: bash $ pre-commit run -a Automated tests ------------------- Tests are run with ``tox`` and ``pytest``. To run tests for a specific Python version, such as Python 3.6: .. code-block:: bash $ tox -e py36 To run tests for all Python versions, simply run: .. code-block:: bash $ tox Type Annotations ------------------- Type annotations are checked using ``mypy``. Run ``mypy`` using ``tox``: .. code-block:: bash $ tox -e mypy Build documentation locally ------------------------------ The documentation is powered by Sphinx. A local copy of the documentation can be built with ``tox``: .. code-block:: bash $ tox -e docs coincidence-0.6.5/LICENSE000066400000000000000000000020501441536051400147720ustar00rootroot00000000000000Copyright (c) 2021 Dominic Davis-Foster Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. coincidence-0.6.5/README.rst000066400000000000000000000123671441536051400154700ustar00rootroot00000000000000############ coincidence ############ .. start short_desc **Helper functions for pytest.** .. end short_desc .. start shields .. list-table:: :stub-columns: 1 :widths: 10 90 * - Docs - |docs| |docs_check| * - Tests - |actions_linux| |actions_windows| |actions_macos| |coveralls| * - PyPI - |pypi-version| |supported-versions| |supported-implementations| |wheel| * - Anaconda - |conda-version| |conda-platform| * - Activity - |commits-latest| |commits-since| |maintained| |pypi-downloads| * - QA - |codefactor| |actions_flake8| |actions_mypy| * - Other - |license| |language| |requires| .. |docs| image:: https://img.shields.io/readthedocs/coincidence/latest?logo=read-the-docs :target: https://coincidence.readthedocs.io/en/latest :alt: Documentation Build Status .. |docs_check| image:: https://github.com/python-coincidence/coincidence/workflows/Docs%20Check/badge.svg :target: https://github.com/python-coincidence/coincidence/actions?query=workflow%3A%22Docs+Check%22 :alt: Docs Check Status .. |actions_linux| image:: https://github.com/python-coincidence/coincidence/workflows/Linux/badge.svg :target: https://github.com/python-coincidence/coincidence/actions?query=workflow%3A%22Linux%22 :alt: Linux Test Status .. |actions_windows| image:: https://github.com/python-coincidence/coincidence/workflows/Windows/badge.svg :target: https://github.com/python-coincidence/coincidence/actions?query=workflow%3A%22Windows%22 :alt: Windows Test Status .. |actions_macos| image:: https://github.com/python-coincidence/coincidence/workflows/macOS/badge.svg :target: https://github.com/python-coincidence/coincidence/actions?query=workflow%3A%22macOS%22 :alt: macOS Test Status .. |actions_flake8| image:: https://github.com/python-coincidence/coincidence/workflows/Flake8/badge.svg :target: https://github.com/python-coincidence/coincidence/actions?query=workflow%3A%22Flake8%22 :alt: Flake8 Status .. |actions_mypy| image:: https://github.com/python-coincidence/coincidence/workflows/mypy/badge.svg :target: https://github.com/python-coincidence/coincidence/actions?query=workflow%3A%22mypy%22 :alt: mypy status .. |requires| image:: https://dependency-dash.repo-helper.uk/github/python-coincidence/coincidence/badge.svg :target: https://dependency-dash.repo-helper.uk/github/python-coincidence/coincidence/ :alt: Requirements Status .. |coveralls| image:: https://img.shields.io/coveralls/github/python-coincidence/coincidence/master?logo=coveralls :target: https://coveralls.io/github/python-coincidence/coincidence?branch=master :alt: Coverage .. |codefactor| image:: https://img.shields.io/codefactor/grade/github/python-coincidence/coincidence?logo=codefactor :target: https://www.codefactor.io/repository/github/python-coincidence/coincidence :alt: CodeFactor Grade .. |pypi-version| image:: https://img.shields.io/pypi/v/coincidence :target: https://pypi.org/project/coincidence/ :alt: PyPI - Package Version .. |supported-versions| image:: https://img.shields.io/pypi/pyversions/coincidence?logo=python&logoColor=white :target: https://pypi.org/project/coincidence/ :alt: PyPI - Supported Python Versions .. |supported-implementations| image:: https://img.shields.io/pypi/implementation/coincidence :target: https://pypi.org/project/coincidence/ :alt: PyPI - Supported Implementations .. |wheel| image:: https://img.shields.io/pypi/wheel/coincidence :target: https://pypi.org/project/coincidence/ :alt: PyPI - Wheel .. |conda-version| image:: https://img.shields.io/conda/v/domdfcoding/coincidence?logo=anaconda :target: https://anaconda.org/domdfcoding/coincidence :alt: Conda - Package Version .. |conda-platform| image:: https://img.shields.io/conda/pn/domdfcoding/coincidence?label=conda%7Cplatform :target: https://anaconda.org/domdfcoding/coincidence :alt: Conda - Platform .. |license| image:: https://img.shields.io/github/license/python-coincidence/coincidence :target: https://github.com/python-coincidence/coincidence/blob/master/LICENSE :alt: License .. |language| image:: https://img.shields.io/github/languages/top/python-coincidence/coincidence :alt: GitHub top language .. |commits-since| image:: https://img.shields.io/github/commits-since/python-coincidence/coincidence/v0.6.5 :target: https://github.com/python-coincidence/coincidence/pulse :alt: GitHub commits since tagged version .. |commits-latest| image:: https://img.shields.io/github/last-commit/python-coincidence/coincidence :target: https://github.com/python-coincidence/coincidence/commit/master :alt: GitHub last commit .. |maintained| image:: https://img.shields.io/maintenance/yes/2023 :alt: Maintenance .. |pypi-downloads| image:: https://img.shields.io/pypi/dm/coincidence :target: https://pypi.org/project/coincidence/ :alt: PyPI - Downloads .. end shields Installation -------------- .. start installation ``coincidence`` can be installed from PyPI or Anaconda. To install with ``pip``: .. code-block:: bash $ python -m pip install coincidence To install with ``conda``: * First add the required channels .. code-block:: bash $ conda config --add channels https://conda.anaconda.org/conda-forge $ conda config --add channels https://conda.anaconda.org/domdfcoding * Then install .. code-block:: bash $ conda install coincidence .. end installation coincidence-0.6.5/coincidence-256.png000066400000000000000000000376471441536051400172740ustar00rootroot00000000000000PNG  IHDR\rf pHYs C<tEXtSoftwarewww.inkscape.org< IDATxyxy}и %^uKlˉc#{9=;l6l2$d׉7wGf&58Xd"EQ<$R w?T >hTU~BP( BP( BP( BP( BP( BP( BP( BP(;x׃ 1 3ֶƋ%B4mg"4+gk[ K7;>9;P%\?(rcmV4 `wz\jn=@`~cρDY U_+"  `gοJ4\E ~Mq 3K"lXu@Af*4ˌ!ދW WۀS^ V{]QChifPϽZE໯|z( o ZE@~f@ _SjZyܺ~ m]jwHÌZ-T ` =3 u/@ounjEVQ?)Ϭ:}kj@HU^3"VyRTck׮EVc==ΫU oߵkuB̂6*Ó[֪x!V鎾5tYܿ;ٲbҋ><ٺ'[?B+59~ ~窋AwaZ繇@ujUu=ܳ6{{z>~СWNv/ē%ci&y14G,c Ր1ud f@ 'ܔ ?gXxB^ ,k3hbc$ ]+xTC/<۳ @̛_t|k(aֿw4 02gbܴk`C1>;ATS1=R9 3c%pG4M) X#(y!77o{)y}sj: Zט9e퐌 |8ۀ53r-kixokYxd<!$L WMxM`_JA 4,|Mrs 8MM7ŋ8~-B^uSUKŬ@HdtB3^܀vhۛųxf&oss ꜀ áltڃ??o^USfOtV_iFv @Fu=t5x]>77"cjPw0K{N2,\5آEXZSu@:^tIQH([OTVǷOv cn~03}5x"ko}\/D:Su_riSXzk\v.5b*m4`>MD&E"tQ?u7 hefMLhFljJA ~xe5qz]1VK-J1:eY6 z;8dhLŗѨRPu&?_B6?A3~47`@ L[N}(phN0i'~KDBP^_aCxd0VNv%ah>MFfcV ~,AZs\0}TV]UСC`[U͉Q.xr]?_źmCQ4x}!;"#vmǎȊ6~_aI[)T5Qv *ieYV0 .Փn ; [87:!< ]n GZb}QKa:+΋D)ѿ)Ӌ:.A'Ʊ=hpCoāA\;í`߸vtC'0 ܺ "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mc^uces 0:2xbR#jV8kАr֘м UX`zz wyI$(LMM233͝qfyaZ[햻ѕfPPi.lԈ/ACY;scL10pk18 ybL&C<}<᪞CAEuSl$ !3񄫡*AgW7]*l\6Kan'Z`kE)6 QEXb!: N$ BY^&CC5,Kv`Ohm(_lqs2NNk82z?33w/bUٻ>:MƸ6p#8@eƘ<H Rb bϴ88qO]׹)4*)_WQ I,1쮔+օ ?ý{yc;tRg0;z{kw'q._Gý{8ΏUziPUؐrDlxW +$]B;,9Za?6yn >9X>x>KҍȊ ^ R_D'F,ѳe Fn{>צiWu=Dk|lARo ҳmy_"*C&+=!.mm} l芲F243WCUse&ծEőH3k""=p5 pxtr!RJV:Uj<:}Fl:=^~HW5y}4z쭭_?7'jUW`W|ѲijPDK&Vjw@g &иKU# ujl_qrB1S8E9JZq7m,gϞ2F]#c!|*{^&LXlaBX\忂Rt Vb%\L]%V]g"2Q4v꥗^J_[=?dqL<Ɖ>FWWO}IffgH&Xj B_B&DKk+'Nt۷s!8p`?{&HpSI$mm^µ"YW+tºJB0CCR[Tyʧ&-ϯ0w/ "޽l.}ÑÇk_,]ܺu uٷocck{ Ī6ށi[Ё۸0L3`qg7XP"WLQ&3hSBX9vWvw ?=|—}^"ݢO_E|vZ=?==dT_AZ%8bk{Hb-ő_<{yHyzn{\n-'7{7:sRwܓĚǃ˯{e}|I`b[5#d){_ ]PHTJs|E#Vpzpw image/svg+xml Coincidence A Ω OFF V mV mA V COM A mA mV 28.20 coincidence-0.6.5/coincidence/000077500000000000000000000000001441536051400162335ustar00rootroot00000000000000coincidence-0.6.5/coincidence/__init__.py000066400000000000000000000057331441536051400203540ustar00rootroot00000000000000#!/usr/bin/env python3 # # __init__.py """ Helper functions for pytest. """ # # Copyright © 2020-2021 Dominic Davis-Foster # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE # OR OTHER DEALINGS IN THE SOFTWARE. # # stdlib import datetime # this package from coincidence.fixtures import fixed_datetime, original_datadir, path_separator, tmp_pathplus # noqa: F401 from coincidence.params import count, testing_boolean_values, whitespace_perms # noqa: F401 from coincidence.regressions import ( # noqa: F401 AdvancedDataRegressionFixture, AdvancedFileRegressionFixture, SupportsAsDict, advanced_data_regression, advanced_file_regression, check_file_output, check_file_regression ) from coincidence.selectors import ( # noqa: F401 max_version, min_version, not_docker, not_macos, not_pypy, not_windows, only_docker, only_macos, only_pypy, only_version, only_windows, platform_boolean_factory ) from coincidence.utils import ( # noqa: F401 generate_falsy_values, generate_truthy_values, is_docker, whitespace, whitespace_perms_list, with_fixed_datetime ) # import sys __author__: str = "Dominic Davis-Foster" __copyright__: str = "2020-2021 Dominic Davis-Foster" __license__: str = "MIT License" __version__: str = "0.6.5" __email__: str = "dominic@davis-foster.co.uk" __all__ = ("pytest_report_header", "PEP_563") def pytest_report_header(config, startdir) -> str: # noqa: MAN001 """ Prints the start time of the pytest session. """ return f"Test session started at {datetime.datetime.now():%H:%M:%S}" PEP_563: bool = False # (sys.version_info[:2] >= (3, 11)) """ :py:obj:`True` if the current Python version implements :pep:`563` -- Postponed Evaluation of Annotations. .. note:: This is currently set to :py:obj:`False` until the future of typing PEPs has been determined. No released versions of Python currently have :pep:`563` enabled by default. .. versionchanged:: 0.6.0 Temporarily set to :py:obj:`False` regardless of version. """ coincidence-0.6.5/coincidence/fixtures.py000066400000000000000000000073561441536051400204710ustar00rootroot00000000000000#!/usr/bin/env python # # fixtures.py r""" Pytest fixtures. To enable the fixtures add the following to ``conftest.py`` in your test directory: .. code-block:: python pytest_plugins = ("coincidence", ) See `the pytest documentation`_ for more information. .. _the pytest documentation: https://pytest.org/en/latest/how-to/plugins.html """ # # Copyright © 2020-2021 Dominic Davis-Foster # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE # OR OTHER DEALINGS IN THE SOFTWARE. # # stdlib import datetime import os from pathlib import Path from typing import Iterator # 3rd party import pytest from domdf_python_tools.paths import PathPlus # this package from coincidence.utils import with_fixed_datetime __import__("pytest_datadir") __all__ = ("fixed_datetime", "original_datadir", "tmp_pathplus", "path_separator") @pytest.fixture() def tmp_pathplus(tmp_path: Path) -> PathPlus: """ Pytest fixture which returns a temporary directory in the form of a :class:`~domdf_python_tools.paths.PathPlus` object. The directory is unique to each test function invocation, created as a sub directory of the base temporary directory. Use it as follows: .. code-block:: python pytest_plugins = ("coincidence", ) def test_something(tmp_pathplus: PathPlus): assert True """ # noqa: D400 return PathPlus(tmp_path) @pytest.fixture() def original_datadir(request) -> Path: # noqa: D103 # Work around pycharm confusing datadir with test file. return PathPlus(os.path.splitext(request.module.__file__)[0] + '_') @pytest.fixture() def fixed_datetime(monkeypatch) -> Iterator: """ Pytest fixture to pretend the current datetime is 2:20 AM on 13th October 2020. .. seealso:: The :func:`~.with_fixed_datetime` contextmanager. .. attention:: The monkeypatching only works when datetime is used and imported like: .. code-block:: python import datetime print(datetime.datetime.now()) Using ``from datetime import datetime`` won't work. """ with with_fixed_datetime(datetime.datetime(2020, 10, 13, 2, 20)): yield @pytest.fixture( params=[ pytest.param( '/', id="forward", marks=pytest.mark.skipif( os.sep == '\\', reason=r"Output differs on platforms where os.sep == '\\'" ) ), pytest.param( '\\', id="backward", marks=pytest.mark.skipif( os.sep == '/', reason="Output differs on platforms where os.sep == '/'" ) ), ] ) def path_separator(request) -> str: r""" Parametrized pytest fixture which returns the current filesystem path separator and skips the test for the other. This is useful when the test output differs on platforms with ``\`` as the path separator, such as windows. .. versionadded:: 0.4.0 :rtype: .. clearpage:: """ return request.param coincidence-0.6.5/coincidence/params.py000066400000000000000000000200741441536051400200730ustar00rootroot00000000000000#!/usr/bin/env python # # params.py """ `pytest.mark.parametrize `_ decorators. """ # # Copyright © 2020-2021 Dominic Davis-Foster # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE # OR OTHER DEALINGS IN THE SOFTWARE. # # "param" based on pytest # Copyright (c) 2004-2020 Holger Krekel and others # MIT Licensed # # stdlib import itertools import random from typing import Callable, Collection, Iterable, List, Optional, Sequence, Tuple, TypeVar, Union, cast, overload # 3rd party import pytest from _pytest.mark import Mark, MarkDecorator, ParameterSet # nodep from domdf_python_tools.iterative import extend_with_none # this package from coincidence.selectors import _make_version, only_version from coincidence.utils import generate_falsy_values, generate_truthy_values, whitespace_perms_list __all__ = ("count", "whitespace_perms", "testing_boolean_values", "param", "parametrized_versions") _T = TypeVar("_T") MarkDecorator.__module__ = "_pytest.mark" def testing_boolean_values( extra_truthy: Sequence = (), extra_falsy: Sequence = (), ratio: float = 1, ) -> MarkDecorator: """ Returns a `pytest.mark.parametrize `__ decorator which provides a list of strings, integers and booleans, and the boolean representations of them. The parametrized arguments are ``boolean_string`` for the input value, and ``expected_boolean`` for the expected output. Optionally, a random selection of the values can be returned using the ``ratio`` argument. :param extra_truthy: Additional values to treat as :py:obj:`True`. :param extra_falsy: Additional values to treat as :py:obj:`False`. :param ratio: The ratio of the number of values to select to the total number of values. """ # noqa: D400 truthy = generate_truthy_values(extra_truthy, ratio) falsy = generate_falsy_values(extra_falsy, ratio) boolean_strings = [ # pylint: disable=use-tuple-over-list *itertools.zip_longest(truthy, [], fillvalue=True), *itertools.zip_longest(falsy, [], fillvalue=False), ] return pytest.mark.parametrize("boolean_string, expected_boolean", boolean_strings) def whitespace_perms(ratio: float = 0.5) -> MarkDecorator: r""" Returns a `pytest.mark.parametrize `__ decorator which provides permutations of whitespace. For this function whitespace is only ``␣\n\t\r``. Not all permutations are returned, as there are a lot of them; instead a random selection of the permutations is returned. By default ½ of the permutations are returned, but this can be configured using the ``ratio`` argument. The single parametrized argument is ``char``. :param ratio: The ratio of the number of permutations to select to the total number of permutations. """ # noqa: D400 perms = whitespace_perms_list() return pytest.mark.parametrize("char", random.sample(perms, int(len(perms) * ratio))) def count(stop: int, start: int = 0, step: int = 1) -> MarkDecorator: """ Returns a `pytest.mark.parametrize `__ decorator which provides a list of numbers between ``start`` and ``stop`` with an interval of ``step``. The single parametrized argument is ``count``. :param stop: The stop value passed to :class:`range`. :param start: The start value passed to :class:`range`. :param step: The step passed to :class:`range`. """ # noqa: D400 return pytest.mark.parametrize("count", range(start, stop, step)) @overload def param( *values: object, marks: Union[MarkDecorator, Collection[Union[MarkDecorator, Mark]]] = (), id: Optional[str] = ..., # noqa: A002 # pylint: disable=redefined-builtin ) -> ParameterSet: ... @overload def param( *values: object, marks: Union[MarkDecorator, Collection[Union[MarkDecorator, Mark]]] = (), idx: Optional[int], ) -> ParameterSet: ... @overload def param( *values: _T, marks: Union[MarkDecorator, Collection[Union[MarkDecorator, Mark]]] = (), key: Optional[Callable[[Tuple[_T, ...]], str]], ) -> ParameterSet: ... def param( *values: _T, marks: Union[MarkDecorator, Collection[Union[MarkDecorator, Mark]]] = (), id: Optional[str] = None, # noqa: A002 # pylint: disable=redefined-builtin idx: Optional[int] = None, key: Optional[Callable[[Tuple[_T, ...]], str]] = None, ) -> ParameterSet: r""" Specify a parameter in `pytest.mark.parametrize `__ calls or :ref:`parametrized fixtures `. **Examples:** .. code-block:: python @pytest.mark.parametrize("test_input, expected", [ ("3+5", 8), param("6*9", 42, marks=pytest.mark.xfail), param("2**2", 4, idx=0), param("3**2", 9, id="3^2"), param("sqrt(9)", 3, key=itemgetter(0)), ]) def test_eval(test_input, expected): assert eval (test_input) == expected .. versionadded:: 0.4.0 :param \*values: Variable args of the values of the parameter set, in order. :param marks: A single mark or a list of marks to be applied to this parameter set. :param id: The id to attribute to this parameter set. :param idx: The index of the value in ``*values`` to use as the id. :param key: A callable which is given ``values`` (as a :class:`tuple`) and returns the value to use as the id. :rtype: .. clearpage:: """ # noqa: D400 if len([x for x in (id, idx, key) if x is not None]) > 1: raise ValueError("'id', 'idx' and 'key' are mutually exclusive.") if idx is not None: # pytest will catch the type error later on id = cast(str, values[idx]) # noqa: A001 # pylint: disable=redefined-builtin elif key is not None: id = key(values) # noqa: A001 # pylint: disable=redefined-builtin return ParameterSet.param(*values, marks=marks, id=id) def parametrized_versions( *versions: Union[str, float, Tuple[int, ...]], reasons: Union[str, Iterable[Optional[str]]] = (), ) -> List[ParameterSet]: r""" Return a list of parametrized version numbers. **Examples:** .. code-block:: python @pytest.mark.parametrize( "version", parametrized_versions( 3.6, 3.7, 3.8, reason="Output differs on each version.", ), ) def test_something(version: str): pass .. code-block:: python @pytest.fixture( params=parametrized_versions( 3.6, 3.7, 3.8, reason="Output differs on each version.", ), ) def version(request): return request.param def test_something(version: str): pass .. versionadded:: 0.4.0 :param \*versions: The Python versions to parametrize. :param reasons: The reasons to use when skipping versions. Either a string value to use for all versions, or a list of values which correspond to ``*versions``. """ version_list = list(versions) params = [] if isinstance(reasons, str): reasons = [reasons] * len(version_list) else: reasons = extend_with_none(reasons, len(version_list)) for version, reason in zip(version_list, reasons): version_ = _make_version(version) the_param = pytest.param( f"{version_.major}.{version_.minor}", marks=only_version(version_, reason=reason), ) params.append(the_param) return params coincidence-0.6.5/coincidence/py.typed000066400000000000000000000000001441536051400177200ustar00rootroot00000000000000coincidence-0.6.5/coincidence/regressions.py000066400000000000000000000300571441536051400211550ustar00rootroot00000000000000#!/usr/bin/env python # # regressions.py """ Regression test helpers. """ # # Copyright © 2020-2021 Dominic Davis-Foster # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE # OR OTHER DEALINGS IN THE SOFTWARE. # # Based on https://github.com/ESSS/pytest-regressions # Copyright (c) 2018 ESSS # MIT Licensed # # stdlib import collections import pathlib from collections import ChainMap, Counter, OrderedDict, defaultdict from contextlib import suppress from functools import partial from types import MappingProxyType from typing import Any, Callable, Collection, Dict, Mapping, Optional, Sequence, Type, TypeVar, Union, cast # 3rd party import pytest from _pytest.capture import CaptureResult # nodep from domdf_python_tools.paths import PathPlus from domdf_python_tools.stringlist import StringList from domdf_python_tools.typing import PathLike from pytest_regressions.common import check_text_files, perform_regression_check from pytest_regressions.file_regression import FileRegressionFixture from typing_extensions import Protocol, runtime_checkable __all__ = ( "AdvancedDataRegressionFixture", "AdvancedFileRegressionFixture", "SupportsAsDict", "advanced_data_regression", "advanced_file_regression", "check_file_regression", "check_file_output", ) _C = TypeVar("_C", bound=Callable) try: # 3rd party from pytest_regressions.data_regression import DataRegressionFixture, RegressionYamlDumper def _representer_for(*data_type: Type): # noqa: MAN002 def deco(representer_fn: _C) -> _C: for dtype in data_type: RegressionYamlDumper.add_custom_yaml_representer(dtype, representer_fn) return representer_fn return deco @_representer_for( collections.abc.Mapping, collections.OrderedDict, collections.Counter, collections.defaultdict, MappingProxyType, ) def _represent_mappings(dumper: RegressionYamlDumper, data: Mapping): # noqa: MAN002 data = dict(data) return dumper.represent_data(data) @_representer_for(collections.abc.Sequence, tuple) def _represent_sequences(dumper: RegressionYamlDumper, data: Collection): # noqa: MAN002 if isinstance(data, SupportsAsDict): data = dict(data._asdict()) else: data = list(data) return dumper.represent_data(data) @_representer_for(CaptureResult) def _represent_captureresult(dumper: RegressionYamlDumper, data): # noqa: MAN001,MAN002 data = dict(out=data.out.splitlines(), err=data.err.splitlines()) return dumper.represent_data(data) with suppress(ImportError): # 3rd party import toml _representer_for(toml.decoder.InlineTableDict)(_represent_mappings) @_representer_for( pathlib.PurePath, pathlib.PurePosixPath, pathlib.PureWindowsPath, pathlib.Path, PathPlus, ) def _represent_pathlib(dumper: RegressionYamlDumper, data: pathlib.PurePath): # noqa: MAN002 return dumper.represent_str(data.as_posix()) except ImportError as e: # pragma: no cover if not str(e).endswith("'yaml'"): raise class DataRegressionFixture: # type: ignore[no-redef] """ Placeholder ``DataRegressionFixture`` for when PyYAML can't be imported. """ def __init__(self, *args, **kwargs): raise e def check_file_regression( data: Union[str, StringList], file_regression: FileRegressionFixture, extension: str = ".txt", **kwargs, ) -> bool: r""" Check the given data against that in the reference file. :param data: :param file_regression: The file regression fixture for the test. :param extension: The extension of the reference file. :param \*\*kwargs: Additional keyword arguments passed to :meth:`pytest_regressions.file_regression.FileRegressionFixture.check`. .. seealso:: :meth:`.AdvancedFileRegressionFixture.check` """ __tracebackhide__ = True if isinstance(data, StringList): data = str(data) file_regression.check(data, encoding="UTF-8", extension=extension, **kwargs) return True def check_file_output( filename: PathLike, file_regression: FileRegressionFixture, extension: Optional[str] = None, newline: Optional[str] = '\n', **kwargs, ) -> bool: r""" Check the content of the given text file against the reference file. :param filename: :param file_regression: The file regression fixture for the test. :param extension: The extension of the reference file. If :py:obj:`None` the extension is determined from ``filename``. :param newline: Controls how universal newlines mode works. See :func:`open`. :param \*\*kwargs: Additional keyword arguments passed to :meth:`pytest_regressions.file_regression.FileRegressionFixture.check`. .. seealso:: :meth:`.AdvancedFileRegressionFixture.check_file` """ filename = PathPlus(filename) data = filename.read_text(encoding="UTF-8") extension = extension or filename.suffix if extension == ".py": extension = "._py_" __tracebackhide__ = True return check_file_regression(data, file_regression, extension, newline=newline, **kwargs) @runtime_checkable class SupportsAsDict(Protocol): """ :class:`typing.Protocol` for classes like :func:`collections.namedtuple` and :class:`typing.NamedTuple` which implement an :meth:`~._asdict` method. """ # noqa: D400 def _asdict(self) -> Dict[str, Any]: """ Return a new dict which maps field names to their corresponding values. """ class AdvancedDataRegressionFixture(DataRegressionFixture): """ Subclass of :class:`~pytest_regressions.data_regression.DataRegressionFixture` with support for additional types. The following types and their subclasses are supported: * :class:`collections.abc.Mapping`, :class:`typing.Mapping` (including :class:`dict` and :class:`typing.Dict`) * :class:`collections.abc.Sequence`, :class:`typing.Sequence` (including :class:`list`, :py:obj:`typing.Tuple` etc.) * :class:`collections.OrderedDict`, :class:`typing.OrderedDict` * :class:`collections.Counter`, :class:`typing.Counter` * :class:`types.MappingProxyType` (cannot be subclassed) * :class:`_pytest.capture.CaptureResult` (the type of :meth:`capsys.readouterr() `) * Any type which implements the :protocol:`SupportsAsDict` protocol (including :func:`collections.namedtuple` and :class:`typing.NamedTuple`) .. clearpage:: .. autoclasssumm:: AdvancedDataRegressionFixture :autosummary-sections: ;; """ def check( self, data_dict: Union[Sequence, SupportsAsDict, Mapping, MappingProxyType, CaptureResult], basename: Optional[str] = None, fullpath: Optional[str] = None, ) -> None: """ Checks ``data`` against a previously recorded version, or generates a new file. :param data_dict: :param basename: The basename of the file to test/record. If not given the name of the test is used. :param fullpath: The complete path to use as a reference file. This option will ignore ``datadir`` fixture when reading *expected* files, but will still use it to write *obtained* files. Useful if a reference file is located in the session data dir, for example. .. note:: ``basename`` and ``fullpath`` are exclusive. """ if isinstance(data_dict, (Mapping, OrderedDict, Counter, defaultdict, MappingProxyType, ChainMap)): data_dict = dict(data_dict) elif isinstance(data_dict, CaptureResult) and isinstance(data_dict.out, str): data_dict = dict( out=data_dict.out.splitlines(), err=data_dict.err.splitlines(), # type: ignore[attr-defined] ) elif isinstance(data_dict, SupportsAsDict): data_dict = dict(data_dict._asdict()) elif isinstance(data_dict, Sequence): data_dict = list(data_dict) __tracebackhide__ = True super().check(data_dict, basename=basename, fullpath=fullpath) @pytest.fixture() def advanced_data_regression(datadir, original_datadir, request) -> AdvancedDataRegressionFixture: # noqa: MAN001 """ Pytest fixture for performing regression tests on lists, dictionaries and namedtuples. """ return AdvancedDataRegressionFixture(datadir, original_datadir, request) class AdvancedFileRegressionFixture(FileRegressionFixture): """ Subclass of :class:`~pytest_regressions.file_regression.FileRegressionFixture` with UTF-8 by default and some extra methods. .. versionadded:: 0.2.0 """ # noqa: D400 def check( # type: ignore[override] self, contents: Union[str, StringList], encoding: Optional[str] = "UTF-8", extension: str = ".txt", newline: Optional[str] = None, basename: Optional[str] = None, fullpath: Optional[str] = None, binary: bool = False, obtained_filename: Optional[str] = None, check_fn: Optional[Callable[[Any, Any], Any]] = None, ) -> None: r""" Checks the contents against a previously recorded version, or generates a new file. :param contents: :param extension: The extension of the reference file. :param \*\*kwargs: Additional keyword arguments passed to :meth:`pytest_regressions.file_regression.FileRegressionFixture.check`. .. seealso:: :func:`~.check_file_regression` """ __tracebackhide__ = True if isinstance(contents, StringList): contents = str(contents) if not isinstance(contents, str): raise TypeError(f"Expected text contents but received type {type(contents).__name__!r}") if check_fn is None: check_fn = partial(check_text_files, encoding="UTF-8") def dump_fn(filename: PathLike) -> None: PathPlus(filename).write_clean(cast(str, contents)) perform_regression_check( datadir=self.datadir, original_datadir=self.original_datadir, request=self.request, check_fn=check_fn, dump_fn=dump_fn, extension=extension, basename=basename, fullpath=fullpath, force_regen=self.force_regen, obtained_filename=obtained_filename, ) def check_bytes(self, contents: bytes, **kwargs) -> None: # pragma: no cover (Windows) r""" Checks the bytes contents against a previously recorded version, or generates a new file. :param contents: :param \*\*kwargs: Additional keyword arguments passed to :meth:`pytest_regressions.file_regression.FileRegressionFixture.check`. """ __tracebackhide__ = True super().check(contents, binary=True, **kwargs) def check_file( self, filename: PathLike, extension: Optional[str] = None, newline: Optional[str] = '\n', **kwargs, ) -> None: r""" Check the content of the given text file against the reference file. :param filename: :param extension: The extension of the reference file. If :py:obj:`None` the extension is determined from ``filename``. :param newline: Controls how universal newlines mode works. See :func:`open`. :param \*\*kwargs: Additional keyword arguments passed to :meth:`pytest_regressions.file_regression.FileRegressionFixture.check`. .. seealso:: :func:`~.check_file_output` """ filename = PathPlus(filename) data = filename.read_text(encoding="UTF-8") extension = extension or filename.suffix if extension == ".py": extension = "._py_" __tracebackhide__ = True return self.check(data, extension=extension, newline=newline, **kwargs) @pytest.fixture() def advanced_file_regression(datadir, original_datadir, request) -> AdvancedFileRegressionFixture: # noqa: MAN001 r""" Pytest fixture for performing regression tests on strings, bytes and files. .. versionadded:: 0.2.0 """ return AdvancedFileRegressionFixture(datadir, original_datadir, request) coincidence-0.6.5/coincidence/selectors.py000066400000000000000000000162201441536051400206110ustar00rootroot00000000000000#!/usr/bin/env python # # selectors.py """ Pytest decorators for selectively running tests. """ # # Copyright © 2020-2021 Dominic Davis-Foster # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE # OR OTHER DEALINGS IN THE SOFTWARE. # # stdlib import inspect import sys from textwrap import dedent from typing import Callable, Optional, Tuple, Union, cast # 3rd party import pytest from _pytest.mark import MarkDecorator # nodep from domdf_python_tools.compat import PYPY from domdf_python_tools.versions import Version # this package from coincidence.utils import is_docker __all__ = ( "min_version", "max_version", "only_version", "not_windows", "only_windows", "not_pypy", "only_pypy", "not_macos", "only_macos", "not_docker", "not_linux", "only_linux", "only_docker", "platform_boolean_factory", ) def _make_version(version: Union[str, float, Tuple[int, ...]]) -> Version: if isinstance(version, float): return Version.from_float(version) elif isinstance(version, str): return Version.from_str(version) else: return Version.from_tuple(version) def min_version( version: Union[str, float, Tuple[int, ...]], reason: Optional[str] = None, ) -> MarkDecorator: """ Factory function to return a ``@pytest.mark.skipif`` decorator which will skip a test if the current Python version is less than the required one. :param version: The version number to compare to :py:data:`sys.version_info`. :param reason: The reason to display when skipping. :default reason: :file:`'Requires Python {} or greater.'` """ # noqa: D400 version_ = _make_version(version) if reason is None: # pragma: no cover reason = f"Requires Python {version_} or greater." return pytest.mark.skipif(condition=sys.version_info[:3] < version_, reason=reason) def max_version( version: Union[str, float, Tuple[int, ...]], reason: Optional[str] = None, ) -> MarkDecorator: """ Factory function to return a ``@pytest.mark.skipif`` decorator which will skip a test if the current Python version is greater than the required one. :param version: The version number to compare to :py:data:`sys.version_info`. :param reason: The reason to display when skipping. :default reason: :file:`'Not needed after Python {}.'` """ # noqa: D400 version_ = _make_version(version) if reason is None: # pragma: no cover reason = f"Not needed after Python {version_}." return pytest.mark.skipif(condition=sys.version_info[:3] > version_, reason=reason) def only_version( version: Union[str, float, Tuple[int, ...]], reason: Optional[str] = None, ) -> MarkDecorator: """ Factory function to return a ``@pytest.mark.skipif`` decorator which will skip a test if the current Python version not the required one. :param version: The version number to compare to :py:data:`sys.version_info`. :param reason: The reason to display when skipping. :default reason: :file:`'Not needed on Python {}.'` """ # noqa: D400 version_ = _make_version(version) if reason is None: # pragma: no cover reason = f"Not needed on Python {version_}." return pytest.mark.skipif(condition=sys.version_info[:2] != version_[:2], reason=reason) def platform_boolean_factory( condition: bool, platform: str, versionadded: Optional[str] = None, *, module: Optional[str] = None, ) -> Tuple[Callable[..., MarkDecorator], Callable[..., MarkDecorator]]: """ Factory function to return decorators such as :func:`~.not_pypy` and :func:`~.only_windows`. :param condition: Should evaluate to :py:obj:`True` if the test should be skipped. :param platform: :param versionadded: :param module: The module to set the function as belonging to in ``__module__``. If :py:obj:`None` ``__module__`` is set to ``'coincidence.selectors'``. :return: 2-element tuple of ``not_function``, ``only_function``. """ default_reason = f"{{}} required on {platform}" module = module or platform_boolean_factory.__module__ def not_function(reason: str = default_reason.format("Not")) -> MarkDecorator: return pytest.mark.skipif(condition=condition, reason=reason) def only_function(reason: str = default_reason.format("Only")) -> MarkDecorator: return pytest.mark.skipif(condition=not condition, reason=reason) docstring = dedent( """\ Factory function to return a ``@pytest.mark.skipif`` decorator which will skip a test {why} the current platform is {platform}. {versionadded_string} :param reason: The reason to display when skipping. """ ) if versionadded: versionadded_string = f".. versionadded:: {versionadded}\n" else: versionadded_string = '' not_function.__name__ = not_function.__qualname__ = f"not_{platform.lower()}" not_function.__module__ = module not_function.__doc__ = docstring.format(why="if", platform=platform, versionadded_string=versionadded_string) only_function.__name__ = only_function.__qualname__ = f"only_{platform.lower()}" only_function.__module__ = module only_function.__doc__ = docstring.format( why="unless", platform=platform, versionadded_string=versionadded_string ) return not_function, only_function not_windows, only_windows = platform_boolean_factory(condition=sys.platform == "win32", platform="Windows") only_windows.__doc__ = f"""\ {inspect.cleandoc(only_windows.__doc__ or '')} :rtype: .. latex:clearpage:: """ not_macos, only_macos = platform_boolean_factory(condition=sys.platform == "darwin", platform="macOS") not_linux, only_linux = platform_boolean_factory( condition=sys.platform == "linux", platform="Linux", versionadded="0.2.0" ) not_linux.__doc__ = f"""\ {inspect.cleandoc(not_linux.__doc__ or '')} :rtype: .. latex:clearpage:: """ not_docker, only_docker = platform_boolean_factory(condition=is_docker(), platform="Docker") not_docker.__doc__ = cast(str, not_docker.__doc__).replace("the current platform is", "running on") only_docker.__doc__ = cast(str, only_docker.__doc__).replace("the current platform is", "running on") not_pypy, only_pypy = platform_boolean_factory(condition=PYPY, platform="PyPy") not_pypy.__doc__ = cast(str, not_pypy.__doc__).replace("current platform", "current Python implementation") only_pypy.__doc__ = cast(str, only_pypy.__doc__).replace("current platform", "current Python implementation") coincidence-0.6.5/coincidence/utils.py000066400000000000000000000150011441536051400177420ustar00rootroot00000000000000#!/usr/bin/env python # # utils.py """ Test helper utilities. """ # # Copyright © 2020-2021 Dominic Davis-Foster # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE # OR OTHER DEALINGS IN THE SOFTWARE. # # is_docker based on https://github.com/jaraco/jaraco.docker # Copyright Jason R. Coombs # MIT Licensed # # stdlib import datetime import os import random from contextlib import contextmanager from functools import lru_cache from itertools import chain, permutations from typing import Any, Iterable, Iterator, List, Optional, Sequence, TypeVar, Union # 3rd party import pytest from domdf_python_tools.compat import PYPY from domdf_python_tools.iterative import Len from domdf_python_tools.paths import PathPlus __all__ = ( "generate_truthy_values", "generate_falsy_values", "is_docker", "with_fixed_datetime", "whitespace", "whitespace_perms_list", ) _T = TypeVar("_T") _cgroup = PathPlus("/proc/self/cgroup") _dockerenv = "/.dockerenv" def is_docker() -> bool: """ Returns whether the current Python instance is running in Docker. """ if os.path.exists(_dockerenv): return True if _cgroup.is_file(): try: return any("docker" in line for line in _cgroup.read_lines()) except FileNotFoundError: return False return False class _DateMeta(type): # pragma: no cover (PyPy) _date = datetime.date def __instancecheck__(self, instance: Any): # noqa: MAN002 return isinstance(instance, self._date) class _DatetimeMeta(type): # pragma: no cover (PyPy) _datetime = datetime.datetime def __instancecheck__(self, instance: Any) -> bool: return isinstance(instance, self._datetime) @contextmanager def with_fixed_datetime(fixed_datetime: datetime.datetime) -> Iterator: """ Context manager to set a fixed datetime for the duration of the ``with`` block. :param fixed_datetime: .. seealso:: The :fixture:`~.fixed_datetime` fixture. .. attention:: The monkeypatching only works when datetime is used and imported like: .. code-block:: python import datetime print(datetime.datetime.now()) Using ``from datetime import datetime`` won't work. """ if PYPY: # pragma: no cover (!PyPy) with pytest.MonkeyPatch.context() as monkeypatch: monkeypatch.setattr( datetime.date, "today", lambda *args: datetime.date( fixed_datetime.year, fixed_datetime.month, fixed_datetime.day, ) ) monkeypatch.setattr( datetime.datetime, "today", lambda *args: datetime.datetime( fixed_datetime.year, fixed_datetime.month, fixed_datetime.day, ) ) monkeypatch.setattr(datetime.datetime, "now", lambda *args: fixed_datetime) yield else: # pragma: no cover (PyPy) class D(datetime.date, metaclass=_DateMeta): @classmethod def today(cls) -> datetime.date: # type: ignore[override] return datetime.date( fixed_datetime.year, fixed_datetime.month, fixed_datetime.day, ) class DT(datetime.datetime, metaclass=_DatetimeMeta): @classmethod def today(cls) -> datetime.datetime: # type: ignore[override] return datetime.datetime( fixed_datetime.year, fixed_datetime.month, fixed_datetime.day, ) @classmethod def now(cls, tz: Optional[datetime.tzinfo] = None) -> datetime.datetime: # type: ignore[override] return datetime.datetime.fromtimestamp(fixed_datetime.timestamp()) D.__name__ = "date" D.__qualname__ = "date" DT.__qualname__ = "datetime" DT.__name__ = "datetime" D.__module__ = "datetime" DT.__module__ = "datetime" with pytest.MonkeyPatch.context() as monkeypatch: monkeypatch.setattr(datetime, "date", D) monkeypatch.setattr(datetime, "datetime", DT) yield def generate_truthy_values( extra_truthy: Iterable[Union[str, int, _T]] = (), ratio: float = 1, ) -> Iterator[Union[str, int, _T]]: """ Returns an iterator of strings, integers and booleans which should be considered :py:obj:`True`. Optionally, a random selection of the values can be returned using the ``ratio`` argument. :param extra_truthy: Additional values which should be considered :py:obj:`True`. :param ratio: The ratio of the number of values to select to the total number of values. """ truthy_values: Sequence[Union[str, int, _T]] = [ True, "True", "true", "tRUe", 'y', 'Y', "YES", "yes", "Yes", "yEs", "ON", "on", '1', 1, *extra_truthy, ] if ratio < 1: truthy_values = random.sample(truthy_values, int(len(truthy_values) * ratio)) yield from truthy_values def generate_falsy_values( extra_falsy: Iterable[Union[str, int, _T]] = (), ratio: float = 1, ) -> Iterator[Union[str, int, _T]]: """ Returns an iterator of strings, integers and booleans which should be considered :py:obj:`False`. Optionally, a random selection of the values can be returned using the ``ratio`` argument. :param extra_falsy: Additional values which should be considered :py:obj:`True`. :param ratio: The ratio of the number of values to select to the total number of values. """ falsy_values: Sequence[Union[str, int, _T]] = [ False, "False", "false", "falSE", 'n', 'N', "NO", "no", "nO", "OFF", "off", "oFF", '0', 0, *extra_falsy, ] if ratio < 1: falsy_values = random.sample(falsy_values, int(len(falsy_values) * ratio)) yield from falsy_values whitespace = " \t\n\r" @lru_cache(1) def whitespace_perms_list() -> List[str]: # noqa: D103 perms = chain.from_iterable(permutations(whitespace, n) for n in Len(whitespace)) return list(''.join(x) for x in perms) coincidence-0.6.5/doc-source/000077500000000000000000000000001441536051400160335ustar00rootroot00000000000000coincidence-0.6.5/doc-source/404.rst000066400000000000000000000003271441536051400170760ustar00rootroot00000000000000:orphan: =============== 404 =============== We looked everywhere but we couldn't find that page! .. image:: not-found.png :align: center Try using the links in the sidebar to find what you are looking for. coincidence-0.6.5/doc-source/Source.rst000066400000000000000000000026001441536051400200230ustar00rootroot00000000000000========================= Downloading source code ========================= The ``coincidence`` source code is available on GitHub, and can be accessed from the following URL: https://github.com/python-coincidence/coincidence If you have ``git`` installed, you can clone the repository with the following command: .. prompt:: bash git clone https://github.com/python-coincidence/coincidence .. parsed-literal:: Cloning into 'coincidence'... remote: Enumerating objects: 47, done. remote: Counting objects: 100% (47/47), done. remote: Compressing objects: 100% (41/41), done. remote: Total 173 (delta 16), reused 17 (delta 6), pack-reused 126 Receiving objects: 100% (173/173), 126.56 KiB | 678.00 KiB/s, done. Resolving deltas: 100% (66/66), done. | Alternatively, the code can be downloaded in a 'zip' file by clicking: | :guilabel:`Clone or download` --> :guilabel:`Download Zip` .. figure:: git_download.png :alt: Downloading a 'zip' file of the source code. Downloading a 'zip' file of the source code Building from source ----------------------- The recommended way to build ``coincidence`` is to use `tox `_: .. prompt:: bash tox -e build The source and wheel distributions will be in the directory ``dist``. If you wish, you may also use `pep517.build `_ or another :pep:`517`-compatible build tool. coincidence-0.6.5/doc-source/_static/000077500000000000000000000000001441536051400174615ustar00rootroot00000000000000coincidence-0.6.5/doc-source/_static/style.css000066400000000000000000000001571441536051400213360ustar00rootroot00000000000000/* This file is managed by 'repo_helper'. Don't edit it directly. */ .longtable.autosummary { width: 100%; } coincidence-0.6.5/doc-source/_templates/000077500000000000000000000000001441536051400201705ustar00rootroot00000000000000coincidence-0.6.5/doc-source/_templates/layout.html000066400000000000000000000003441441536051400223740ustar00rootroot00000000000000 {% extends "!layout.html" %} {% block extrahead %} {% endblock %} coincidence-0.6.5/doc-source/api/000077500000000000000000000000001441536051400166045ustar00rootroot00000000000000coincidence-0.6.5/doc-source/api/coincidence.rst000066400000000000000000000001741441536051400216030ustar00rootroot00000000000000===================== :mod:`coincidence` ===================== .. autosummary-widths:: 45/100 .. automodule:: coincidence coincidence-0.6.5/doc-source/api/fixtures.rst000066400000000000000000000002361441536051400212100ustar00rootroot00000000000000============================= :mod:`coincidence.fixtures` ============================= .. autosummary-widths:: 35/100 .. automodule:: coincidence.fixtures coincidence-0.6.5/doc-source/api/params.rst000066400000000000000000000002601441536051400206170ustar00rootroot00000000000000============================= :mod:`coincidence.params` ============================= .. autosummary-widths:: 1/2 .. automodule:: coincidence.params :member-order: bysource coincidence-0.6.5/doc-source/api/regressions.rst000066400000000000000000000003001441536051400216720ustar00rootroot00000000000000=============================== :mod:`coincidence.regressions` =============================== .. autosummary-widths:: 33/64 .. automodule:: coincidence.regressions :member-order: bysource coincidence-0.6.5/doc-source/api/selectors.rst000066400000000000000000000002731441536051400213430ustar00rootroot00000000000000=============================== :mod:`coincidence.selectors` =============================== .. autosummary-widths:: 7/16 .. automodule:: coincidence.selectors :member-order: bysource coincidence-0.6.5/doc-source/api/utils.rst000066400000000000000000000002461441536051400205000ustar00rootroot00000000000000========================= :mod:`coincidence.utils` ========================= .. autosummary-widths:: 1/2 .. automodule:: coincidence.utils :member-order: bysource coincidence-0.6.5/doc-source/changelog.rst000066400000000000000000000040721441536051400205170ustar00rootroot00000000000000=============== Changelog =============== 0.6.0 ---------- :func:`coincidence.PEP_563` is temporarily set to :py:obj:`False` for all versions until the future of typing PEPs has been determined. No released versions of Python currently have :pep:`563` enabled by default. 0.5.0 ---------- * :meth:`coincidence.regressions.AdvancedDataRegressionFixture` -- Add support for :mod:`pathlib` and :class:`domdf_python_tools.paths.PathPlus`. 0.4.3 ------------- Bugs Fixed ^^^^^^^^^^^^^ * :func:`coincidence.utils.with_fixed_datetime` -- Correctly handle monkeypatching of datetime in PyPy. 0.4.1 ------------- Bugs Fixed ^^^^^^^^^^^^^ * :func:`coincidence.PEP_563` -- Is now :py:obj:`True` on Python >=3.11, per the deferral of :pep:`563`. 0.4.0 ---------- .. changelog:: 0.4.0 0.3.1 ---------- Bugs Fixed ^^^^^^^^^^^^^ :mod:`coincidence.regressions` -- Ensure the custom YAML representers are only configured if PyYAML can be imported. 0.3.0 ---------- :class:`coincidence.regressions.AdvancedDataRegressionFixture` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Handle ``toml.decoder.InlineTableDict`` the ``toml`` module is available. * Improve handling of custom subclasses, especially for nested types. 0.2.3 ---------- Bugs Fixed ^^^^^^^^^^^^^ Disabled the entry point as it was resulting in a confused plugin loading order and did not work. The way of enabling the plugin reverts to: .. code-block:: python # conftest.py pytest_plugins = ("coincidence", ) 0.2.0 ---------- * Switched to whey_ as the build backend. * Added support for PyPy 3.7 * :del:`Added an entry point for pytest to avoid the need to enable the plugin in conftest.` (reverted in 0.2.3) .. _whey: https://whey.readthedocs.io/en/latest/ .. changelog:: 0.2.0 0.1.2 ---------- * :meth:`coincidence.regressions.AdvancedDataRegressionFixture.check` -- Add support for ``_pytest.capture.CaptureResult``. 0.1.1 ---------- * :class:`coincidence.regressions.AdvancedDataRegressionFixture` -- Add a fake version when PyYAML cannot be imported. 0.1.0 ---------- Initial release. coincidence-0.6.5/doc-source/conf.py000066400000000000000000000054111441536051400173330ustar00rootroot00000000000000#!/usr/bin/env python3 # This file is managed by 'repo_helper'. Don't edit it directly. # stdlib import os import re import sys # 3rd party from sphinx_pyproject import SphinxConfig sys.path.append('.') config = SphinxConfig(globalns=globals()) project = config["project"] author = config["author"] documentation_summary = config.description github_url = "https://github.com/{github_username}/{github_repository}".format_map(config) rst_prolog = f""".. |pkgname| replace:: coincidence .. |pkgname2| replace:: ``coincidence`` .. |browse_github| replace:: `Browse the GitHub Repository <{github_url}>`__ """ slug = re.sub(r'\W+', '-', project.lower()) release = version = config.version sphinx_builder = os.environ.get("SPHINX_BUILDER", "html").lower() todo_include_todos = int(os.environ.get("SHOW_TODOS", 0)) and sphinx_builder != "latex" intersphinx_mapping = { "python": ("https://docs.python.org/3/", None), "sphinx": ("https://www.sphinx-doc.org/en/stable/", None), "pytest": ("https://docs.pytest.org/en/stable", None), "pytest-regressions": ("https://pytest-regressions.readthedocs.io/en/latest/", None), } html_theme_options = {"logo_only": False} html_context = { "display_github": True, "github_user": "python-coincidence", "github_repo": "coincidence", "github_version": "master", "conf_py_path": "/doc-source/", } htmlhelp_basename = slug latex_documents = [("index", f'{slug}.tex', project, author, "manual")] man_pages = [("index", slug, project, [author], 1)] texinfo_documents = [("index", slug, project, author, slug, project, "Miscellaneous")] toctree_plus_types = set(config["toctree_plus_types"]) autodoc_default_options = { "members": None, # Include all members (methods). "special-members": None, "autosummary": None, "show-inheritance": None, "exclude-members": ','.join(config["autodoc_exclude_members"]), } latex_elements = { "printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}", "tableofcontents": "\\pdfbookmark[0]{\\contentsname}{toc}\\sphinxtableofcontents", } def setup(app): # 3rd party from sphinx_toolbox.latex import better_header_layout app.connect("config-inited", lambda app, config: better_header_layout(config)) nitpicky = True needspace_amount = r"5\baselineskip" favicons = [{ "rel": "icon", "href": "https://python-coincidence.github.io/assets/coincidence.ico", "sizes": "48x48", "type": "image/vnd.microsoft.icon" }] toctree_plus_types.add("fixture") html_logo = "../coincidence.png" latex_elements["preamble"] = "\\usepackage{soul}" changelog_sections_numbered = False ignore_missing_xrefs = [ "^pytest_regressions\\.file_regression\\.FileRegressionFixture$", "^pytest_regressions\\.data_regression\\.DataRegressionFixture$", "^coincidence\\.(utils|params)\\._T$", "^_pytest\\.", ] coincidence-0.6.5/doc-source/docutils.conf000066400000000000000000000000501441536051400205230ustar00rootroot00000000000000[restructuredtext parser] tab_width = 4 coincidence-0.6.5/doc-source/git_download.png000066400000000000000000000642761441536051400212320ustar00rootroot00000000000000PNG  IHDRnvgAMA a cHRMz&u0`:pQ<bKGDgIDATx]T^~v%kR~"EC[)j#TxXxVJRZ`- ɀ_L2OU__4u񏘪6=am+ vlc#Vrv2& ܭ>O.ݿkC֜")6 YZ ۭ9ʌ\e[}`kNB 愥??G69rW!kOyb¦Xst##еC y]~;Q/$ ׽Z?$oE9~_}8o' xWv鍳z"' ۾\*]EOn3%H溷=AK(OOҼ{N_/ݨ8u~ ަ2"f)Y󭫕4zYUc4k ,EQ|cX+,4O.VV/. x벟*n ;Kt=s')tSZ{e񯇮kCfvtOx򛯿[nn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!c8[f,7&>(`yjf10=x unuMx~C߅Ѡ?9P?Zd?峁,j??_:/| %tEXtdate:create2020-05-24T20:00:42+00:00v%tEXtdate:modify2020-05-24T20:00:42+00:00TtEXtSoftwareShutterc IENDB`coincidence-0.6.5/doc-source/index.rst000066400000000000000000000071161441536051400177010ustar00rootroot00000000000000############ coincidence ############ .. start short_desc .. documentation-summary:: :meta: .. end short_desc .. start shields .. only:: html .. list-table:: :stub-columns: 1 :widths: 10 90 * - Docs - |docs| |docs_check| * - Tests - |actions_linux| |actions_windows| |actions_macos| |coveralls| * - PyPI - |pypi-version| |supported-versions| |supported-implementations| |wheel| * - Anaconda - |conda-version| |conda-platform| * - Activity - |commits-latest| |commits-since| |maintained| |pypi-downloads| * - QA - |codefactor| |actions_flake8| |actions_mypy| * - Other - |license| |language| |requires| .. |docs| rtfd-shield:: :project: coincidence :alt: Documentation Build Status .. |docs_check| actions-shield:: :workflow: Docs Check :alt: Docs Check Status .. |actions_linux| actions-shield:: :workflow: Linux :alt: Linux Test Status .. |actions_windows| actions-shield:: :workflow: Windows :alt: Windows Test Status .. |actions_macos| actions-shield:: :workflow: macOS :alt: macOS Test Status .. |actions_flake8| actions-shield:: :workflow: Flake8 :alt: Flake8 Status .. |actions_mypy| actions-shield:: :workflow: mypy :alt: mypy status .. |requires| image:: https://dependency-dash.repo-helper.uk/github/python-coincidence/coincidence/badge.svg :target: https://dependency-dash.repo-helper.uk/github/python-coincidence/coincidence/ :alt: Requirements Status .. |coveralls| coveralls-shield:: :alt: Coverage .. |codefactor| codefactor-shield:: :alt: CodeFactor Grade .. |pypi-version| pypi-shield:: :project: coincidence :version: :alt: PyPI - Package Version .. |supported-versions| pypi-shield:: :project: coincidence :py-versions: :alt: PyPI - Supported Python Versions .. |supported-implementations| pypi-shield:: :project: coincidence :implementations: :alt: PyPI - Supported Implementations .. |wheel| pypi-shield:: :project: coincidence :wheel: :alt: PyPI - Wheel .. |conda-version| image:: https://img.shields.io/conda/v/domdfcoding/coincidence?logo=anaconda :target: https://anaconda.org/domdfcoding/coincidence :alt: Conda - Package Version .. |conda-platform| image:: https://img.shields.io/conda/pn/domdfcoding/coincidence?label=conda%7Cplatform :target: https://anaconda.org/domdfcoding/coincidence :alt: Conda - Platform .. |license| github-shield:: :license: :alt: License .. |language| github-shield:: :top-language: :alt: GitHub top language .. |commits-since| github-shield:: :commits-since: v0.6.5 :alt: GitHub commits since tagged version .. |commits-latest| github-shield:: :last-commit: :alt: GitHub last commit .. |maintained| maintained-shield:: 2023 :alt: Maintenance .. |pypi-downloads| pypi-shield:: :project: coincidence :downloads: month :alt: PyPI - Downloads .. end shields Installation --------------- .. start installation .. installation:: coincidence :pypi: :github: :anaconda: :conda-channels: conda-forge, domdfcoding .. end installation API Reference ---------------- .. html-section:: .. toctree:: :hidden: Home .. toctree:: :maxdepth: 3 :glob: api/coincidence api/* .. toctree:: :maxdepth: 2 changelog .. sidebar-links:: :caption: About :github: :pypi: coincidence Contributing Guide Source license .. start links .. only:: html View the :ref:`Function Index ` or browse the `Source Code <_modules/index.html>`__. :github:repo:`Browse the GitHub Repository ` .. end links coincidence-0.6.5/doc-source/internal_autoprotocol.py000066400000000000000000000043441441536051400230400ustar00rootroot00000000000000# stdlib from typing import Any, List, Tuple # 3rd party from sphinx.application import Sphinx from sphinx.ext.autodoc import INSTANCEATTR from sphinx.util.inspect import safe_getattr from sphinx_toolbox.more_autodoc.autoprotocol import ProtocolDocumenter from sphinx_toolbox.utils import SphinxExtMetadata, allow_subclass_add, filter_members_warning class CoincidenceProtocolDocumenter(ProtocolDocumenter): def filter_members( self, members: List[Tuple[str, Any]], want_all: bool, ) -> List[Tuple[str, Any, bool]]: """ Filter the given member list. :param members: :param want_all: """ ret = [] # process members and determine which to skip for (membername, member) in members: # if isattr is True, the member is documented as an attribute if safe_getattr(member, "__sphinx_mock__", False): # mocked module or object keep = False # pragma: no cover elif ( self.options.get("exclude-protocol-members", []) and membername in self.options["exclude-protocol-members"] ): # remove members given by exclude-protocol-members keep = False # pragma: no cover elif membername in {"_abc_impl", "_is_runtime_protocol"}: keep = False elif membername not in self.globally_excluded_methods: # Magic method you wouldn't overload, or private method. if membername in dir(self.object.__base__): keep = member is not getattr(self.object.__base__, membername) else: keep = True else: keep = False # give the user a chance to decide whether this member # should be skipped if self.env.app: # let extensions preprocess docstrings try: skip_user = self.env.app.emit_firstresult( "autodoc-skip-member", self.objtype, membername, member, not keep, self.options, ) if skip_user is not None: keep = not skip_user except Exception as exc: filter_members_warning(member, exc) keep = False if keep: ret.append((membername, member, member is INSTANCEATTR)) return ret def setup(app: Sphinx) -> SphinxExtMetadata: app.setup_extension("sphinx_toolbox.more_autodoc.autoprotocol") allow_subclass_add(app, CoincidenceProtocolDocumenter) return {"parallel_read_safe": True} coincidence-0.6.5/doc-source/license.rst000066400000000000000000000002201441536051400202010ustar00rootroot00000000000000========= License ========= ``coincidence`` is licensed under the :choosealicense:`MIT` .. license-info:: MIT .. license:: :py: coincidence coincidence-0.6.5/doc-source/local_extension.py000066400000000000000000000035451441536051400216020ustar00rootroot00000000000000# stdlib from typing import List, Optional, Tuple # 3rd party from docutils import nodes, utils from docutils.nodes import Node, system_message from domdf_python_tools.paths import PathPlus from sphinx.application import Sphinx from sphinx.util.docutils import SphinxRole from sphinx.writers.html import HTMLTranslator from sphinx.writers.latex import LaTeXTranslator class del_node(nodes.paragraph): pass class DelRole(SphinxRole): def run(self) -> Tuple[List[Node], List[system_message]]: node = del_node(text=utils.unescape(self.text)) node["docname"] = self.inliner.document.settings.env.docname node["rawtext"] = self.rawtext return [node], [] def html_visit_del_node(translator: HTMLTranslator, node: del_node) -> None: translator.body.append("") translator.visit_paragraph(node) def html_depart_del_node(translator: HTMLTranslator, node: del_node) -> None: translator.body.append("") translator.depart_paragraph(node) def visit_del_node_latex(translator: LaTeXTranslator, node: del_node) -> None: translator.body.append(r"\st{") def depart_del_node_latex(translator: LaTeXTranslator, node: del_node) -> None: translator.body.append('}') def replace_geq(app: Sphinx, exception: Optional[Exception] = None): if exception: return if app.builder.name.lower() != "latex": return output_file = PathPlus(app.builder.outdir) / f"{app.builder.titles[0][1]}.tex" output_content = output_file.read_text() output_content = output_content.replace('≥', r" $\geq$ ") output_file.write_clean(output_content) def setup(app: Sphinx): app.add_node( del_node, html=(html_visit_del_node, html_depart_del_node), latex=(visit_del_node_latex, depart_del_node_latex), ) app.add_role("del", DelRole()) app.connect("build-finished", replace_geq) return { "parallel_read_safe": True, "parallel_write_safe": True, } coincidence-0.6.5/doc-source/not-found.png000066400000000000000000001352371441536051400204650ustar00rootroot00000000000000PNG  IHDR\rf'zTXtRaw profile type exifxڭi7sp`?C)J͈M*3wÃ__S4Kk{q3_Ow>?h]?3}$ׅ}>9"~|? K~\ꌟo)_S{~7rcvU)ƓBYA.u|KH ?nO7ui~^oQ?A(??|pv;_vȕ_=exd{[Ww2?"8/?B\rab9",{\D(Wv2"q.}-}n;X-_ޥ- ޾\O^E@[y?6ٸ?r+8'^W[g5c }44XyL9N"JEƜREJ=-kԷ&QRM4V΅iȡQRɥZZ1Wz5\KUhVZmYmXlŪ536z ,֭>Ft\kwfiYfms,gUV]mk&vm{Hq)v3.vͷz۵׿ZZ|]ڷKIQ̈X́7EsT3ߣ,Ȣظ1BO#r7W9D'Q"BOT??6\!Ru\[ 5pmv[]`c-[s%YeS@E"t_n1˗YX:@[ -a39rA ;Ni|Ș8)v n;+ẳZXeOn mݕܜNf< +Zxeo m7͋ mQZllbvPՕMrpɝvG;7xa<˧0oUAkSl7wbiu?qu8 I];^$N7-4uǽ~lM'"g;jxcz\Rq7sʙmkMccCڷⵉerW$My5lv<~iqJ?^Ch G"ms3;';+}%|✠?˗:UQqsYi`߈wA/&u)KD>@髺`8 ,-4"X՗I kZ wQQ"apR=i&( D uM %+][ `CvZn(&_p91tC D45[Ko0JJA:KArHkl]]K,`0J5 #ut!50Ie3¨o2jj@yAeM̍<]=8C#',ԔͲ39KjS9~7~pB8Mfz441*'3$:D*\Ҥ[m98eAP}*DDgPX@wqEE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-page>=0.7.1 sphinx-prompt>=1.1.0 sphinx-pyproject>=0.1.0 sphinx-tabs>=1.1.13 sphinx-toolbox>=3.1.0 sphinxcontrib-httpdomain>=1.7.0 sphinxemoji>=0.1.6 toctree-plus>=0.5.0 coincidence-0.6.5/formate.toml000066400000000000000000000017641441536051400163320ustar00rootroot00000000000000[hooks] dynamic_quotes = 10 collections-import-rewrite = 20 reformat-generics = 40 noqa-reformat = 60 ellipsis-reformat = 70 squish_stubs = 80 [config] indent = "\t" line_length = 115 [hooks.yapf] priority = 30 [hooks.isort] priority = 50 [hooks.yapf.kwargs] yapf_style = ".style.yapf" [hooks.isort.kwargs] indent = "\t\t" multi_line_output = 8 import_heading_stdlib = "stdlib" import_heading_thirdparty = "3rd party" import_heading_firstparty = "this package" import_heading_localfolder = "this package" balanced_wrapping = false lines_between_types = 0 use_parentheses = true remove_redundant_aliases = true default_section = "THIRDPARTY" known_third_party = [ "backports_entry_points_selectable", "coverage", "coverage_pyver_pragma", "domdf_python_tools", "github", "importlib_metadata", "pytest", "pytest_cov", "pytest_randomly", "pytest_regressions", "pytest_timeout", "requests", "toml", "typing_extensions", ] known_first_party = "coincidence" coincidence-0.6.5/justfile000066400000000000000000000005731441536051400155450ustar00rootroot00000000000000default: lint pdf-docs: latex-docs make -C doc-source/build/latex/ latex-docs: SPHINX_BUILDER=latex tox -e docs unused-imports: tox -e lint -- --select F401 incomplete-defs: tox -e lint -- --select MAN vdiff: git diff $(repo-helper show version -q)..HEAD bare-ignore: greppy '# type:? *ignore(?!\[|\w)' -s lint: unused-imports incomplete-defs bare-ignore tox -n qa coincidence-0.6.5/pyproject.toml000066400000000000000000000101331441536051400167020ustar00rootroot00000000000000[build-system] requires = [ "whey",] build-backend = "whey" [project] name = "coincidence" version = "0.6.5" description = "Helper functions for pytest." readme = "README.rst" requires-python = ">=3.6" keywords = [ "pytest", "regression", "testing", "unittest", "utilities",] dynamic = [ "classifiers", "dependencies",] [[project.authors]] name = "Dominic Davis-Foster" email = "dominic@davis-foster.co.uk" [project.license] file = "LICENSE" [project.urls] Homepage = "https://github.com/python-coincidence/coincidence" "Issue Tracker" = "https://github.com/python-coincidence/coincidence/issues" "Source Code" = "https://github.com/python-coincidence/coincidence" Documentation = "https://coincidence.readthedocs.io/en/latest" [tool.whey] base-classifiers = [ "Development Status :: 4 - Beta", "Framework :: Pytest", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Testing :: Unit", "Typing :: Typed", ] python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11",] python-implementations = [ "CPython", "PyPy",] platforms = [ "Windows", "macOS", "Linux",] license-key = "MIT" [tool.mkrecipe] extras = "all" conda-channels = [ "conda-forge", "domdfcoding",] [tool.sphinx-pyproject] github_username = "python-coincidence" github_repository = "coincidence" author = "Dominic Davis-Foster" project = "coincidence" copyright = "2020-2021 Dominic Davis-Foster" language = "en" package_root = "coincidence" extensions = [ "sphinx_toolbox", "sphinx_toolbox.more_autodoc", "sphinx_toolbox.more_autosummary", "sphinx_toolbox.documentation_summary", "sphinx_toolbox.tweaks.param_dash", "sphinxcontrib.toctree_plus", "sphinx_toolbox.tweaks.latex_layout", "sphinx_toolbox.tweaks.latex_toc", "sphinx.ext.intersphinx", "sphinx.ext.mathjax", "sphinxcontrib.extras_require", "sphinx.ext.todo", "sphinxemoji.sphinxemoji", "notfound.extension", "sphinx_copybutton", "sphinxcontrib.default_values", "sphinx_debuginfo", "sphinx_licenseinfo", "seed_intersphinx_mapping", "html_section", "sphinx_autofixture", "internal_autoprotocol", "local_extension", "sphinx_favicon", "sphinx_toolbox.latex.succinct_seealso", "sphinx_toolbox.more_autosummary.column_widths", "sphinx_toolbox_experimental.changelog", "sphinx_toolbox_experimental.missing_xref", ] sphinxemoji_style = "twemoji" gitstamp_fmt = "%d %b %Y" templates_path = [ "_templates",] html_static_path = [ "_static",] source_suffix = ".rst" master_doc = "index" suppress_warnings = [ "image.nonlocal_uri",] pygments_style = "default" html_theme = "domdf_sphinx_theme" html_theme_path = [ "../..",] html_show_sourcelink = true toctree_plus_types = [ "class", "confval", "data", "directive", "enum", "exception", "flag", "function", "namedtuple", "protocol", "role", "typeddict", ] add_module_names = false hide_none_rtype = true all_typevars = true overloads_location = "bottom" html_codeblock_linenos_style = "table" autodoc_exclude_members = [ "__dict__", "__class__", "__dir__", "__weakref__", "__module__", "__annotations__", "__orig_bases__", "__parameters__", "__subclasshook__", "__init_subclass__", "__attrs_attrs__", "__init__", "__new__", "__getnewargs__", "__abstractmethods__", "__hash__", ] [tool.mypy] python_version = "3.8" namespace_packages = true check_untyped_defs = true warn_unused_ignores = true no_implicit_optional = true show_error_codes = true [tool.snippet-fmt] directives = [ "code-block",] [tool.dependency-dash."requirements.txt"] order = 10 [tool.dependency-dash."tests/requirements.txt"] order = 20 include = false [tool.dependency-dash."doc-source/requirements.txt"] order = 30 include = false [tool.snippet-fmt.languages.python] reformat = true [tool.snippet-fmt.languages.TOML] reformat = true [tool.snippet-fmt.languages.ini] [tool.snippet-fmt.languages.json] coincidence-0.6.5/repo_helper.yml000066400000000000000000000042611441536051400170220ustar00rootroot00000000000000# Configuration for 'repo_helper' (https://github.com/domdfcoding/repo_helper) --- modname: 'coincidence' copyright_years: '2020-2021' author: 'Dominic Davis-Foster' email: 'dominic@davis-foster.co.uk' username: 'python-coincidence' assignee: 'domdfcoding' version: '0.6.5' license: 'MIT' short_desc: 'Helper functions for pytest.' primary_conda_channel: domdfcoding conda_channels: - conda-forge min_coverage: 100 requires_python: 3.6 use_whey: true docs_fail_on_warning: true python_versions: - '3.6' - '3.7' - '3.8' - '3.9' - '3.10' - '3.11' - 3.12-dev - pypy36 - pypy37 - pypy38 - pypy39 classifiers: - 'Development Status :: 4 - Beta' - 'Framework :: Pytest' - 'Intended Audience :: Developers' - 'Topic :: Software Development :: Libraries :: Python Modules' - 'Topic :: Software Development :: Quality Assurance' - 'Topic :: Software Development :: Testing' - 'Topic :: Software Development :: Testing :: Unit' keywords: - utilities - pytest - testing - unittest - regression sphinx_conf_epilogue: - nitpicky = True - needspace_amount = r"5\baselineskip" - 'favicons = [{"rel": "icon", "href": "https://python-coincidence.github.io/assets/coincidence.ico", "sizes": "48x48", "type": "image/vnd.microsoft.icon"}]' - toctree_plus_types.add("fixture") - html_logo = "../coincidence.png" - latex_elements["preamble"] = "\\usepackage{soul}" - changelog_sections_numbered = False - ignore_missing_xrefs = [ - ' "^pytest_regressions\\.file_regression\\.FileRegressionFixture$",' - ' "^pytest_regressions\\.data_regression\\.DataRegressionFixture$",' - ' "^coincidence\\.(utils|params)\\._T$",' - ' "^_pytest\\.",' - "]" intersphinx_mapping: - "'pytest': ('https://docs.pytest.org/en/stable', None)" - "'pytest-regressions': ('https://pytest-regressions.readthedocs.io/en/latest/', None)" extra_sphinx_extensions: - sphinx_autofixture - internal_autoprotocol - local_extension - sphinx_favicon - sphinx_toolbox.latex.succinct_seealso - sphinx_toolbox.more_autosummary.column_widths - sphinx_toolbox_experimental.changelog - sphinx_toolbox_experimental.missing_xref #entry_points: # pytest11: # - "coincidence = coincidence" exclude_files: - contributing coincidence-0.6.5/requirements.txt000066400000000000000000000001351441536051400172530ustar00rootroot00000000000000domdf-python-tools>=2.8.0 pytest>=6.2.0 pytest-regressions>=2.0.2 typing-extensions>=3.7.4.3 coincidence-0.6.5/stubs.txt000066400000000000000000000001551441536051400156720ustar00rootroot00000000000000git+https://github.com/domdfcoding/pytest-regressions-stubs git+https://github.com/repo-helper/toml@py.typed coincidence-0.6.5/tests/000077500000000000000000000000001441536051400151325ustar00rootroot00000000000000coincidence-0.6.5/tests/__init__.py000066400000000000000000000000001441536051400172310ustar00rootroot00000000000000coincidence-0.6.5/tests/conftest.py000066400000000000000000000000431441536051400173260ustar00rootroot00000000000000pytest_plugins = ("coincidence", ) coincidence-0.6.5/tests/requirements.txt000066400000000000000000000003661441536051400204230ustar00rootroot00000000000000backports-entry-points-selectable>=1.0.2 coverage>=5.1 coverage-pyver-pragma>=0.2.1 domdf-python-tools[testing]>=2.0.1 importlib-metadata>=3.6.0 iniconfig!=1.1.0,>=1.0.1 pytest-cov>=2.8.1 pytest-randomly>=3.7.0 pytest-timeout>=1.4.2 toml>=0.10.2 coincidence-0.6.5/tests/test_fixtures.py000066400000000000000000000021431441536051400204140ustar00rootroot00000000000000# stdlib import datetime # 3rd party import pytest from domdf_python_tools.paths import PathPlus original_datetime = datetime.datetime def test_tmp_pathplus(tmp_pathplus: PathPlus): assert isinstance(tmp_pathplus, PathPlus) assert tmp_pathplus.exists() @pytest.mark.usefixtures("fixed_datetime") def test_fixed_datetime(): assert datetime.datetime.today() == datetime.datetime(2020, 10, 13) assert datetime.datetime.now() == datetime.datetime(2020, 10, 13, 2, 20) assert datetime.datetime.__name__ == "datetime" assert datetime.datetime.__qualname__ == "datetime" assert datetime.datetime.__module__ == "datetime" assert datetime.date.today() == datetime.date(2020, 10, 13) assert datetime.date.__name__ == "date" assert datetime.date.__qualname__ == "date" assert datetime.date.__module__ == "datetime" assert datetime.datetime.now() - datetime.datetime(2019, 10, 13, 2, 20) == datetime.timedelta(days=366) assert datetime.datetime.now() - original_datetime(2019, 10, 13, 2, 20) == datetime.timedelta(days=366) def test_path_separator(path_separator: str): assert isinstance(path_separator, str) coincidence-0.6.5/tests/test_params.py000066400000000000000000000120431441536051400200260ustar00rootroot00000000000000# stdlib import random import re from operator import itemgetter from typing import no_type_check # 3rd party import pytest from _pytest.mark import Mark, MarkDecorator, ParameterSet from domdf_python_tools.paths import PathPlus from domdf_python_tools.utils import strtobool # this package from coincidence.params import count, param, parametrized_versions from coincidence.params import testing_boolean_values as boolean_values_for_tests from coincidence.params import whitespace_perms def test_testing_boolean_strings(): assert isinstance(boolean_values_for_tests(), MarkDecorator) assert isinstance(boolean_values_for_tests().mark, Mark) assert "boolean_string, expected_boolean" in boolean_values_for_tests().mark.args assert boolean_values_for_tests().mark.args[0] == "boolean_string, expected_boolean" assert len(boolean_values_for_tests().mark.args[1]) == 28 assert isinstance(boolean_values_for_tests().mark.args[1], list) assert isinstance(boolean_values_for_tests().mark.args[1][0], tuple) assert len(boolean_values_for_tests().mark.args[1][0]) == 2 assert isinstance(boolean_values_for_tests().mark.args[1][0][0], bool) assert isinstance(boolean_values_for_tests().mark.args[1][0][1], bool) for value, expects in boolean_values_for_tests().mark.args[1]: assert strtobool(value) is expects def test_count(): assert isinstance(count(100), MarkDecorator) assert isinstance(count(100).mark, Mark) assert "count" in count(100).mark.args assert count(100).mark.args[0] == "count" assert count(100).mark.args[1] == range(0, 100) assert count(10).mark.args[1] == range(0, 10) assert count(10, 5).mark.args[1] == range(5, 10) # order of count is "stop, start, step" assert count(10, 5, 2).mark.args[1] == range(5, 10, 2) # order of count is "stop, start, step" def test_whitespace_perms(): random.seed(1234) assert isinstance(whitespace_perms(), MarkDecorator) assert isinstance(whitespace_perms().mark, Mark) assert "char" in whitespace_perms().mark.args assert whitespace_perms().mark.args[0] == "char" assert len(whitespace_perms().mark.args[1]) == 20 assert len(whitespace_perms(1).mark.args[1]) == 41 assert len(whitespace_perms(0.1).mark.args[1]) == 4 assert isinstance(whitespace_perms(0.1).mark.args[1], list) assert isinstance(whitespace_perms(0.1).mark.args[1][0], str) assert whitespace_perms(0.1).mark.args[1] == ["\n\t\r", "\r\t", "\t \n", "\n\r"] for string in whitespace_perms().mark.args[1]: assert re.match(r"^\s*$", string) def test_param(): assert param("6*9", 42, marks=pytest.mark.xfail).id is None assert param("2**2", 4, idx=0).id == "2**2" assert param("3**2", 9, id="3^2").id == "3^2" assert param("sqrt(9)", 3, key=itemgetter(0)).id == "sqrt(9)" with pytest.raises(ValueError, match="'id', 'idx' and 'key' are mutually exclusive."): param("sqrt(9)", 3, id="√9", key=itemgetter(0)) # type: ignore[call-overload] with pytest.raises(ValueError, match="'id', 'idx' and 'key' are mutually exclusive."): param("sqrt(9)", 3, id="√9", idx=0) # type: ignore[call-overload] with pytest.raises(ValueError, match="'id', 'idx' and 'key' are mutually exclusive."): param("sqrt(9)", 3, idx=0, key=itemgetter(0)) # type: ignore[call-overload] with pytest.raises(ValueError, match="'id', 'idx' and 'key' are mutually exclusive."): param("sqrt(9)", 3, id="√9", idx=0, key=itemgetter(0)) # type: ignore[call-overload] assert param(PathPlus("code.py"), key=lambda t: t[0].name).id == "code.py" @no_type_check def test_parametrized_versions(): versions = parametrized_versions(3.6, 3.7, 3.8, reasons="Output differs on each version.") assert len(versions) == 3 assert all(isinstance(v, ParameterSet) for v in versions) assert versions[0].values == ("3.6", ) assert versions[1].values == ("3.7", ) assert versions[2].values == ("3.8", ) assert versions[0].marks[0].mark.name == "skipif" assert versions[1].marks[0].mark.name == "skipif" assert versions[2].marks[0].mark.name == "skipif" assert versions[0].marks[0].kwargs["reason"] == "Output differs on each version." assert versions[1].marks[0].kwargs["reason"] == "Output differs on each version." assert versions[2].marks[0].kwargs["reason"] == "Output differs on each version." assert all(len(v.marks) == 1 for v in versions) @no_type_check def test_parametrized_versions_list(): versions = parametrized_versions( "3.6", (3, 7), 3.9, reasons=["Output differs on each version.", "Output differs on Python 3.7."], ) assert len(versions) == 3 assert all(isinstance(v, ParameterSet) for v in versions) assert versions[0].values == ("3.6", ) assert versions[1].values == ("3.7", ) assert versions[2].values == ("3.9", ) assert versions[0].marks[0].mark.name == "skipif" assert versions[1].marks[0].mark.name == "skipif" assert versions[2].marks[0].mark.name == "skipif" assert versions[0].marks[0].kwargs["reason"] == "Output differs on each version." assert versions[1].marks[0].kwargs["reason"] == "Output differs on Python 3.7." assert versions[2].marks[0].kwargs["reason"] == "Not needed on Python v3.9.0." assert all(len(v.marks) == 1 for v in versions) coincidence-0.6.5/tests/test_regressions.py000066400000000000000000000146521441536051400211160ustar00rootroot00000000000000# stdlib import pathlib import sys from collections import ChainMap, Counter, OrderedDict, defaultdict, namedtuple from types import MappingProxyType from typing import Any, Dict, Iterator, Mapping, NamedTuple, Sequence # 3rd party import pytest import toml from domdf_python_tools.compat import PYPY37_PLUS from domdf_python_tools.paths import PathPlus from domdf_python_tools.stringlist import StringList from pytest_regressions.file_regression import FileRegressionFixture # this package from coincidence.regressions import ( AdvancedDataRegressionFixture, AdvancedFileRegressionFixture, check_file_output, check_file_regression ) from coincidence.selectors import not_windows class Count(NamedTuple): a: int b: int c: int Count2 = namedtuple("Count2", "a, b, c") class DictSubclass(dict): pass class TypingDictSubclass(Dict): pass class CustomMapping(Mapping): def __init__(self, *args, **kwargs): self._dict = dict(*args, **kwargs) def __getitem__(self, item): # noqa: MAN001,MAN002 return self._dict[item] def __iter__(self) -> Iterator: yield from self._dict def __len__(self) -> int: return len(self._dict) class CustomSequence(Sequence): def __init__(self, *args, **kwargs): self._elements = tuple(*args, **kwargs) def __getitem__(self, item): # noqa: MAN001,MAN002 return self._elements[item] def __iter__(self) -> Iterator: yield from self._elements def __len__(self) -> int: return len(self._elements) some_toml = "[section]\ntable = {a = 1, b = 2, c = 3}" @pytest.mark.parametrize( "data", [ pytest.param({'a': 1, 'b': 2, 'c': 3}, id="dict"), pytest.param(DictSubclass(a=1, b=2, c=3), id="DictSubclass"), pytest.param(TypingDictSubclass(a=1, b=2, c=3), id="TypingDictSubclass"), pytest.param(CustomMapping(a=1, b=2, c=3), id="CustomMapping"), pytest.param(CustomSequence([1, 2, 3]), id="CustomSequence"), pytest.param(OrderedDict(a=1, b=2, c=3), id="OrderedDict"), pytest.param(Counter(a=1, b=2, c=3), id="Counter"), pytest.param(defaultdict(int, a=1, b=2, c=3), id="defaultdict"), pytest.param(Count(a=1, b=2, c=3), id="typing.NamedTuple"), pytest.param(Count2(a=1, b=2, c=3), id="collections.namedtuple"), pytest.param(['a', 1, 'b', 2, 'c', 3], id="list"), pytest.param(('a', 1, 'b', 2, 'c', 3), id="tuple"), pytest.param(MappingProxyType({'a': 1, 'b': 2, 'c': 3}), id="MappingProxyType"), pytest.param(ChainMap({'a': 1}, {'b': 2}, {'c': 3}), id="ChainMap"), pytest.param( OrderedDict({'a': MappingProxyType({'a': 1})}), id="Nested_OrderedDict_MappingProxyType" ), pytest.param( OrderedDict({'a': CustomSequence([1, 2, 3])}), id="Nested_OrderedDict_CustomSequence" ), pytest.param( CustomSequence([MappingProxyType({'a': 1})]), id="Nested_CustomSequence_MappingProxyType" ), pytest.param(CustomMapping({'a': Count(a=1, b=2, c=3)}), id="Nested_CustomMapping_NamedTuple"), pytest.param(toml.loads(some_toml)["section"]["table"], id="Toml_InlineTableDict"), pytest.param(pathlib.PurePath("/foo/bar/baz"), id="pathlib_purepath"), pytest.param(pathlib.PurePosixPath("/foo/bar/baz"), id="pathlib_pureposixpath"), pytest.param(pathlib.PureWindowsPath(r"c:\foo\bar\baz"), id="pathlib_purewindowspath"), pytest.param(pathlib.Path("/foo/bar/baz"), id="pathlib_path"), pytest.param(PathPlus("/foo/bar/baz"), id="pathplus"), ] ) def test_advanced_data_regression(advanced_data_regression: AdvancedDataRegressionFixture, data: Any): print(type(data)) print(data) advanced_data_regression.check(data) def test_advanced_data_regression_capsys(advanced_data_regression: AdvancedFileRegressionFixture, capsys): print("Hello World") print("\t\tBoo!\t\t") print("Trailing whitespace bad ", file=sys.stderr) advanced_data_regression.check(capsys.readouterr()) def test_advanced_data_regression_capsys_nested(advanced_data_regression: AdvancedDataRegressionFixture, capsys): print("Hello World") print("\t\tBoo!\t\t") print("Trailing whitespace bad ", file=sys.stderr) advanced_data_regression.check(OrderedDict({'a': capsys.readouterr()})) if PYPY37_PLUS: no_such_file_pattern = r"No such file or directory: .*PathPlus\('.*'\)" else: no_such_file_pattern = "No such file or directory: '.*'" def test_check_file_output(tmp_pathplus: PathPlus, file_regression: FileRegressionFixture): with pytest.raises(FileNotFoundError, match=no_such_file_pattern): check_file_output(tmp_pathplus / "file.txt", file_regression) (tmp_pathplus / "file.txt").write_text("Success!") check_file_output(tmp_pathplus / "file.txt", file_regression) (tmp_pathplus / "file.py").write_text("print('Success!')") check_file_output(tmp_pathplus / "file.py", file_regression) def test_check_file_regression(tmp_pathplus: PathPlus, file_regression: FileRegressionFixture): with pytest.raises(FileNotFoundError, match=no_such_file_pattern): check_file_output(tmp_pathplus / "file.txt", file_regression) check_file_regression("Success!\n\nThis is a test.", file_regression) result = StringList("Success!") result.blankline() result.blankline(ensure_single=True) result.append("This is a test.") check_file_regression(result, file_regression) @pytest.mark.parametrize("contents", ["Hello\nWorld", "Hello World", StringList(["Hello", "World"])]) def test_advanced_file_regression(advanced_file_regression: AdvancedFileRegressionFixture, contents: str): advanced_file_regression.check(contents) @pytest.mark.parametrize("contents", [b"hello world", ("hello world", ), [ "hello world", ], 12345]) def test_advanced_file_regression_bad_type(advanced_file_regression: AdvancedFileRegressionFixture, contents: str): with pytest.raises(TypeError, match="Expected text contents but received type '.*'"): advanced_file_regression.check(contents) @not_windows("It's Windows") def test_advanced_file_regression_bytes(advanced_file_regression: AdvancedFileRegressionFixture): advanced_file_regression.check_bytes(b"Hello World\n") def test_advanced_file_regression_output( tmp_pathplus: PathPlus, advanced_file_regression: AdvancedFileRegressionFixture, ): with pytest.raises(FileNotFoundError, match=no_such_file_pattern): advanced_file_regression.check_file(tmp_pathplus / "file.txt") (tmp_pathplus / "file.txt").write_text("Success!") advanced_file_regression.check_file(tmp_pathplus / "file.txt") (tmp_pathplus / "file.py").write_text("print('Success!')") advanced_file_regression.check_file(tmp_pathplus / "file.py") coincidence-0.6.5/tests/test_regressions_/000077500000000000000000000000001441536051400206735ustar00rootroot00000000000000coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_ChainMap_.yml000066400000000000000000000000171441536051400313500ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_Counter_.yml000066400000000000000000000000171441536051400313070ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_CustomMapping_.yml000066400000000000000000000000171441536051400324560ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_CustomSequence_.yml000066400000000000000000000000141441536051400326300ustar00rootroot00000000000000- 1 - 2 - 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_DictSubclass_.yml000066400000000000000000000000171441536051400322530ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_MappingProxyType_.yml000066400000000000000000000000171441536051400331670ustar00rootroot00000000000000a: 1 b: 2 c: 3 test_advanced_data_regression_Nested_CustomMapping_NamedTuple_.yml000066400000000000000000000000301441536051400360120ustar00rootroot00000000000000coincidence-0.6.5/tests/test_regressions_a: a: 1 b: 2 c: 3 test_advanced_data_regression_Nested_CustomSequence_MappingProxyType_.yml000066400000000000000000000000071441536051400374340ustar00rootroot00000000000000coincidence-0.6.5/tests/test_regressions_- a: 1 test_advanced_data_regression_Nested_OrderedDict_CustomSequence_.yml000066400000000000000000000000171441536051400363260ustar00rootroot00000000000000coincidence-0.6.5/tests/test_regressions_a: - 1 - 2 - 3 test_advanced_data_regression_Nested_OrderedDict_MappingProxyType_.yml000066400000000000000000000000121441536051400366550ustar00rootroot00000000000000coincidence-0.6.5/tests/test_regressions_a: a: 1 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_OrderedDict_.yml000066400000000000000000000000171441536051400320600ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_Toml_InlineTableDict_.yml000066400000000000000000000000171441536051400336550ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_TypingDictSubclass_.yml000066400000000000000000000000171441536051400334460ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_capsys.yml000066400000000000000000000001151441536051400310320ustar00rootroot00000000000000err: - 'Trailing whitespace bad ' out: - Hello World - "\t\tBoo!\t\t" coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_capsys_nested.yml000066400000000000000000000001321441536051400323730ustar00rootroot00000000000000a: err: - 'Trailing whitespace bad ' out: - Hello World - "\t\tBoo!\t\t" coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_collections_namedtuple_.yml000066400000000000000000000000171441536051400344240ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_defaultdict_.yml000066400000000000000000000000171441536051400321600ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_dict_.yml000066400000000000000000000000171441536051400306130ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_list_.yml000066400000000000000000000000301441536051400306360ustar00rootroot00000000000000- a - 1 - b - 2 - c - 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_pathlib_path_.yml000066400000000000000000000000211441536051400323220ustar00rootroot00000000000000/foo/bar/baz ... coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_pathlib_purepath_.yml000066400000000000000000000000211441536051400332160ustar00rootroot00000000000000/foo/bar/baz ... coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_pathlib_pureposixpath_.yml000066400000000000000000000000211441536051400343010ustar00rootroot00000000000000/foo/bar/baz ... coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_pathlib_purewindowspath_.yml000066400000000000000000000000231441536051400346330ustar00rootroot00000000000000c:/foo/bar/baz ... coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_pathplus_.yml000066400000000000000000000000211441536051400315230ustar00rootroot00000000000000/foo/bar/baz ... coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_tuple_.yml000066400000000000000000000000301441536051400310140ustar00rootroot00000000000000- a - 1 - b - 2 - c - 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_data_regression_typing_NamedTuple_.yml000066400000000000000000000000171441536051400333200ustar00rootroot00000000000000a: 1 b: 2 c: 3 coincidence-0.6.5/tests/test_regressions_/test_advanced_file_regression_Hello_World_.txt000066400000000000000000000000141441536051400321230ustar00rootroot00000000000000Hello World coincidence-0.6.5/tests/test_regressions_/test_advanced_file_regression_Hello_nWorld_.txt000066400000000000000000000000141441536051400323010ustar00rootroot00000000000000Hello World coincidence-0.6.5/tests/test_regressions_/test_advanced_file_regression_bytes.txt000066400000000000000000000000141441536051400307000ustar00rootroot00000000000000Hello World coincidence-0.6.5/tests/test_regressions_/test_advanced_file_regression_contents2_.txt000066400000000000000000000000141441536051400316300ustar00rootroot00000000000000Hello World coincidence-0.6.5/tests/test_regressions_/test_advanced_file_regression_output._py_000066400000000000000000000000221441536051400312200ustar00rootroot00000000000000print('Success!') coincidence-0.6.5/tests/test_regressions_/test_advanced_file_regression_output.txt000066400000000000000000000000111441536051400311070ustar00rootroot00000000000000Success! coincidence-0.6.5/tests/test_regressions_/test_check_file_output._py_000066400000000000000000000000221441536051400262700ustar00rootroot00000000000000print('Success!') coincidence-0.6.5/tests/test_regressions_/test_check_file_output.txt000066400000000000000000000000111441536051400261570ustar00rootroot00000000000000Success! coincidence-0.6.5/tests/test_regressions_/test_check_file_regression.txt000066400000000000000000000000321441536051400270020ustar00rootroot00000000000000Success! This is a test. coincidence-0.6.5/tests/test_selectors.py000066400000000000000000000043111441536051400205450ustar00rootroot00000000000000# stdlib import platform import sys from typing import Tuple # 3rd party import pytest # this package from coincidence.params import parametrized_versions from coincidence.selectors import ( max_version, min_version, not_linux, not_macos, not_pypy, not_windows, only_linux, only_macos, only_pypy, only_version, only_windows ) @min_version((3, 4), reason="Failure") def test_min_version(): pass @max_version("4.10", reason="Failure") def test_max_version(): pass @pytest.mark.parametrize( "py_version", [ pytest.param((3, 4), marks=only_version(3.4, "Success")), pytest.param((3, 5), marks=only_version(3.5, "Success")), pytest.param((3, 6), marks=only_version(3.6, "Success")), pytest.param((3, 8), marks=only_version(3.8, "Success")), pytest.param((3, 9), marks=only_version(3.9, "Success")), pytest.param((3, 10), marks=only_version(3.10, "Success")), ] ) def test_only_version(py_version: Tuple[int, int]): if sys.version_info[:2] != py_version: assert False # noqa: PT015 @pytest.mark.parametrize( "py_version", parametrized_versions((3, 4), (3, 5), (3, 6), (3, 8), (3, 9), (3, 10), reasons="Success"), ) def test_parametrized_versions_mark(py_version: Tuple[int, int]): if f"{sys.version_info.major}.{sys.version_info.minor}" != py_version: assert False # noqa: PT015 @not_pypy("Success") def test_not_pypy(): if platform.python_implementation() == "PyPy": assert False # noqa: PT015 @only_pypy("Success") def test_only_pypy(): if platform.python_implementation() != "PyPy": assert False # noqa: PT015 @not_windows("Success") def test_not_windows(): if sys.platform == "win32": assert False # noqa: PT015 @only_windows("Success") def test_only_windows(): if sys.platform != "win32": assert False # noqa: PT015 @not_macos("Success") def test_not_macos(): if sys.platform == "darwin": assert False # noqa: PT015 @only_macos("Success") def test_only_macos(): if sys.platform != "darwin": assert False # noqa: PT015 @not_linux("Success") def test_not_linux(): if sys.platform == "linux": assert False # noqa: PT015 @only_linux("Success") def test_only_linux(): if sys.platform != "linux": assert False # noqa: PT015 coincidence-0.6.5/tests/test_utils.py000066400000000000000000000064741441536051400177160ustar00rootroot00000000000000# stdlib import datetime import random # 3rd party import pytest from domdf_python_tools.paths import PathPlus # this package import coincidence from coincidence.utils import generate_falsy_values, generate_truthy_values, with_fixed_datetime original_datetime = datetime.datetime def test_generate_truthy_values(): random.seed(1234) assert list(generate_truthy_values()) == [ True, "True", "true", "tRUe", 'y', 'Y', "YES", "yes", "Yes", "yEs", "ON", "on", '1', 1, ] assert list(generate_truthy_values(["bar"])) == [ True, "True", "true", "tRUe", 'y', 'Y', "YES", "yes", "Yes", "yEs", "ON", "on", '1', 1, "bar", ] assert list(generate_truthy_values(ratio=0.3)) == ['1', "yes", "True", True] def test_generate_falsy_values(): random.seed(1234) assert list(generate_falsy_values()) == [ False, "False", "false", "falSE", 'n', 'N', "NO", "no", "nO", "OFF", "off", "oFF", '0', 0, ] assert list(generate_falsy_values(["bar"])) == [ False, "False", "false", "falSE", 'n', 'N', "NO", "no", "nO", "OFF", "off", "oFF", '0', 0, "bar", ] assert list(generate_falsy_values(ratio=0.3)) == ['0', "no", "False", False] @pytest.mark.parametrize( "fake_datetime, expected_date", [ pytest.param(datetime.datetime(2020, 10, 13, 2, 20), datetime.datetime(2020, 10, 13), id='0'), pytest.param(datetime.datetime(2020, 7, 4, 10, 00), datetime.datetime(2020, 7, 4), id='1'), ] ) def test_with_fixed_datetime(fake_datetime: datetime.datetime, expected_date: datetime.datetime): dt = datetime.datetime(2022, 4, 23, 16, 3, 6) d = datetime.date(2022, 4, 23) with with_fixed_datetime(fake_datetime): assert datetime.datetime.today() == expected_date assert datetime.datetime.now() == fake_datetime assert datetime.datetime.__name__ == "datetime" assert datetime.datetime.__qualname__ == "datetime" assert datetime.datetime.__module__ == "datetime" assert datetime.date.today() == expected_date.date() assert isinstance(datetime.date.today(), datetime.date) assert datetime.date.__name__ == "date" assert datetime.date.__qualname__ == "date" assert datetime.date.__module__ == "datetime" # pylint: disable=expression-not-assigned datetime.datetime.now() - datetime.datetime(2019, 10, 13, 2, 20) datetime.datetime.now() - original_datetime(2019, 10, 13, 2, 20) # pylint: enable=expression-not-assigned assert isinstance(dt, datetime.datetime) assert isinstance(dt, datetime.date) assert isinstance(d, datetime.date) def test_is_docker(monkeypatch, tmp_pathplus: PathPlus): cgroup = tmp_pathplus / "cgroup" monkeypatch.setattr(coincidence.utils, "_cgroup", cgroup) monkeypatch.setattr(coincidence.utils, "_dockerenv", (tmp_pathplus / "dockerenv").as_posix()) assert not cgroup.exists() assert not cgroup.is_file() assert not coincidence.utils.is_docker() (tmp_pathplus / "dockerenv").touch() assert coincidence.utils.is_docker() (tmp_pathplus / "dockerenv").unlink() assert not coincidence.utils.is_docker() cgroup.write_text("HelloWorld\n\n\n\ndocker\n\n\nPython\n\n\n") assert coincidence.utils.is_docker() monkeypatch.setattr(PathPlus, "is_file", lambda *args: True) cgroup.unlink() assert not coincidence.utils.is_docker() coincidence-0.6.5/tox.ini000066400000000000000000000147051441536051400153120ustar00rootroot00000000000000# This file is managed by 'repo_helper'. # You may add new sections, but any changes made to the following sections will be lost: # * tox # * envlists # * testenv # * testenv:.package # * testenv:py312-dev # * testenv:docs # * testenv:build # * testenv:lint # * testenv:perflint # * testenv:mypy # * testenv:pyup # * testenv:coverage # * flake8 # * coverage:run # * coverage:report # * check-wheel-contents # * pytest [tox] envlist = py36 py37 py38 py39 py310 py311 py312-dev pypy36 pypy37 pypy38 pypy39 mypy build skip_missing_interpreters = True isolated_build = True requires = pip>=21,!=22.2 tox-envlist>=0.2.1 tox~=3.0 virtualenv!=20.16.0 [envlists] test = py36 py37 py38 py39 py310 py311 py312-dev pypy36 pypy37 pypy38 pypy39 qa = mypy, lint cov = py38, coverage [testenv] setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 SETUPTOOLS_USE_DISTUTILS=stdlib deps = -r{toxinidir}/tests/requirements.txt commands = python --version python -m pytest --cov=coincidence -r aR tests/ {posargs} [testenv:.package] setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 [testenv:py312-dev] setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 [testenv:docs] setenv = SHOW_TODOS = 1 passenv = SPHINX_BUILDER basepython = python3.8 changedir = {toxinidir}/doc-source deps = -r{toxinidir}/doc-source/requirements.txt commands = sphinx-build -M {env:SPHINX_BUILDER:html} . ./build {posargs} [testenv:build] setenv = PYTHONDEVMODE=1 PIP_DISABLE_PIP_VERSION_CHECK=1 skip_install = True changedir = {toxinidir} deps = build[virtualenv]>=0.3.1 check-wheel-contents>=0.1.0 twine>=3.2.0 commands = python -m build --sdist --wheel "{toxinidir}" twine check dist/*.tar.gz dist/*.whl check-wheel-contents dist/ [testenv:lint] basepython = python3.8 changedir = {toxinidir} ignore_errors = True skip_install = True deps = flake8>=3.8.2,<5 flake8-2020>=1.6.0 flake8-builtins>=1.5.3 flake8-docstrings>=1.5.0 flake8-dunder-all>=0.1.1 flake8-encodings>=0.1.0 flake8-github-actions>=0.1.0 flake8-noqa>=1.1.0,<=1.2.2 flake8-pyi>=20.10.0,<=22.8.0 flake8-pytest-style>=1.3.0 flake8-quotes>=3.3.0 flake8-slots>=0.1.0 flake8-sphinx-links>=0.0.4 flake8-strftime>=0.1.1 flake8-typing-imports>=1.10.0 git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git git+https://github.com/domdfcoding/flake8-rst-docstrings.git git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods git+https://github.com/python-formate/flake8-missing-annotations.git pydocstyle>=6.0.0 pygments>=2.7.1 importlib_metadata<4.5.0; python_version<'3.8' commands = python3 -m flake8_rst_docstrings_sphinx coincidence tests --allow-toolbox {posargs} [testenv:perflint] basepython = python3.8 changedir = {toxinidir} ignore_errors = True skip_install = True deps = perflint commands = python3 -m perflint coincidence {posargs} [testenv:mypy] basepython = python3.8 ignore_errors = True changedir = {toxinidir} deps = mypy==0.971 -r{toxinidir}/tests/requirements.txt -r{toxinidir}/stubs.txt commands = mypy coincidence tests {posargs} [testenv:pyup] basepython = python3.8 skip_install = True ignore_errors = True changedir = {toxinidir} deps = pyupgrade-directories commands = pyup_dirs coincidence tests --py36-plus --recursive [testenv:coverage] basepython = python3.8 skip_install = True ignore_errors = True whitelist_externals = /bin/bash passenv = COV_PYTHON_VERSION COV_PLATFORM COV_PYTHON_IMPLEMENTATION * changedir = {toxinidir} deps = coverage>=5 coverage_pyver_pragma>=0.2.1 commands = /bin/bash -c "rm -rf htmlcov" coverage html /bin/bash -c "DISPLAY=:0 firefox 'htmlcov/index.html'" [flake8] max-line-length = 120 select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E303 E304 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 ENC001 ENC002 ENC003 ENC004 ENC011 ENC012 ENC021 ENC022 ENC023 ENC024 ENC025 ENC026 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 NQA001 NQA002 NQA003 NQA004 NQA005 NQA102 NQA103 E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 extend-exclude = doc-source,old,build,dist,__pkginfo__.py,setup.py,venv rst-directives = TODO envvar extras-require license license-info rst-roles = choosealicense per-file-ignores = tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 */*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 pytest-parametrize-names-type = csv inline-quotes = " multiline-quotes = """ docstring-quotes = """ count = True min_python_version = 3.6 unused-arguments-ignore-abstract-functions = True unused-arguments-ignore-overload-functions = True unused-arguments-ignore-magic-methods = True unused-arguments-ignore-variadic-names = True [coverage:run] plugins = coverage_pyver_pragma [coverage:report] fail_under = 100 exclude_lines = raise AssertionError raise NotImplementedError if 0: if False: if TYPE_CHECKING: if typing.TYPE_CHECKING: if __name__ == .__main__.: [check-wheel-contents] ignore = W002 toplevel = coincidence package = coincidence [pytest] addopts = --color yes --durations 25 timeout = 300 filterwarnings = error ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning