pytest-beartype


Namepytest-beartype JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryPytest plugin to run your tests with beartype checking enabled.
upload_time2024-10-31 17:52:35
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pytest-beartype

Pytest plugin to run your tests with beartype checking enabled.

## Installation

```bash
pip install pytest_beartype
```

## Usage

```bash
pytest --beartype-packages='your_package_name,other_package_name'
```

This will ensure that any type annotations in those packages are checked at
runtime, while your tests are running.

## Local Development / Testing

- Create and activate a virtual environment
- Run `pip install -r requirements-dev.txt` to do an editable install
- Run `pytest` to run tests

## Type Checking

Run `mypy .`

## Create and upload a package to PyPI

Make sure to bump the version in `setup.cfg`.

Then run the following commands:

```bash
rm -rf build dist
python setup.py sdist bdist_wheel
```

Then upload it to PyPI using [twine](https://twine.readthedocs.io/en/latest/#installation):

```bash
twine upload dist/*
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pytest-beartype",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Tushar Sadhwani <tushar.sadhwani000@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/63/69/954ee438f1c72f4247b09381cd07a7d776ebdb4f6c0359b3b971676a2eef/pytest_beartype-0.2.0.tar.gz",
    "platform": null,
    "description": "# pytest-beartype\n\nPytest plugin to run your tests with beartype checking enabled.\n\n## Installation\n\n```bash\npip install pytest_beartype\n```\n\n## Usage\n\n```bash\npytest --beartype-packages='your_package_name,other_package_name'\n```\n\nThis will ensure that any type annotations in those packages are checked at\nruntime, while your tests are running.\n\n## Local Development / Testing\n\n- Create and activate a virtual environment\n- Run `pip install -r requirements-dev.txt` to do an editable install\n- Run `pytest` to run tests\n\n## Type Checking\n\nRun `mypy .`\n\n## Create and upload a package to PyPI\n\nMake sure to bump the version in `setup.cfg`.\n\nThen run the following commands:\n\n```bash\nrm -rf build dist\npython setup.py sdist bdist_wheel\n```\n\nThen upload it to PyPI using [twine](https://twine.readthedocs.io/en/latest/#installation):\n\n```bash\ntwine upload dist/*\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Pytest plugin to run your tests with beartype checking enabled.",
    "version": "0.2.0",
    "project_urls": {
        "Source": "https://github.com/tusharsadhwani/pytest-beartype"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "816987efc2482aab172a32e4147eb5666ebc2e4c875e17d3104878553720a83a",
                "md5": "ebae7435d0e90d9eacc38ef318b25a2b",
                "sha256": "be6be04be4a143f965f21140d6661bab43dcd7c761d50cf6daa1b16848e5d2d0"
            },
            "downloads": -1,
            "filename": "pytest_beartype-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ebae7435d0e90d9eacc38ef318b25a2b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4940,
            "upload_time": "2024-10-31T17:52:33",
            "upload_time_iso_8601": "2024-10-31T17:52:33.528130Z",
            "url": "https://files.pythonhosted.org/packages/81/69/87efc2482aab172a32e4147eb5666ebc2e4c875e17d3104878553720a83a/pytest_beartype-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6369954ee438f1c72f4247b09381cd07a7d776ebdb4f6c0359b3b971676a2eef",
                "md5": "813b4c02f8882e1ace256745e4ca6387",
                "sha256": "9eeec379f812e0e5c9c1bb7e95d90a33a79c387034f2d735e03bc9aa0fd7cf3f"
            },
            "downloads": -1,
            "filename": "pytest_beartype-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "813b4c02f8882e1ace256745e4ca6387",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5871,
            "upload_time": "2024-10-31T17:52:35",
            "upload_time_iso_8601": "2024-10-31T17:52:35.974621Z",
            "url": "https://files.pythonhosted.org/packages/63/69/954ee438f1c72f4247b09381cd07a7d776ebdb4f6c0359b3b971676a2eef/pytest_beartype-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-31 17:52:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tusharsadhwani",
    "github_project": "pytest-beartype",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pytest-beartype"
}
        
Elapsed time: 0.63961s