tox-extra


Nametox-extra JSON
Version 2.0.2 PyPI version JSON
download
home_pageNone
SummaryPerforms extra checks before or after running
upload_time2024-10-04 16:02:50
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords git tox tox-plugin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # tox-extra

This [tox plugin](https://github.com/topics/tox-plugin) adds a few extra checks
like:

- [tox-extra](#tox-extra)
  - [Checks Git Dirty Status](#checks-git-dirty-status)
  - [Checks system dependencies using bindep](#checks-system-dependencies-using-bindep)

## Checks Git Dirty Status

It ensures exit code 1 if git reports dirty or untracked files _after_ the run.

Usage example:

```shell
$ tox -e py
...
ERROR: Git reported dirty status. Git should never report dirty status at the end of testing, regardless if status is passed, failed or aborted.
On branch devel
Your branch is up to date with 'origin/devel'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	some-untracked.txt

nothing added to commit but untracked files present (use "git add" to track)
__________________________________________ summary ___________________________________________
ERROR:   py: failed
```

The goal of this plugin is to help developers be aware of files modified by tests
or untracked files before they commit the code. This plugin also does not take into
consideration the global `.gitignore`, something that can make git miss reporting
some untracked files, the goal being to assure that when a new developer clones and
runs the tests they do not endup with an unexpected git status.

If you have any cases where you expect to have git report dirty, please
add `--allow-dirty` to the command call to disable this check.

## Checks system dependencies using bindep

If a `bindep.txt` config file is found, tox will run `bindep [profiles]` to
check if dependencies, including test ones, are present. There is no need to
install bindep your self.

This plugin will add the following list of bindep profiles:

- `test` is always added as tox itself is a test tool
- exact tox env name
- tox env name itself split by `-'
- `pythonX.Y` and `pyXY` based on which python current tox env will use

This should allow developers to modify their `bindep.txt` file to include
system dependencies specific to a single tox environment if they wish.

To disable bindep feature, you can define `TOX_EXTRA_BINDEP=0` in your
environment.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tox-extra",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Sorin Sbarnea <sorin.sbarnea@gmail.com>",
    "keywords": "git, tox, tox-plugin",
    "author": null,
    "author_email": "Sorin Sbarnea <sorin.sbarnea@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/54/5d/5f90bf0a07e0823269377564bc90084cb2d8be28ba266b40e340cf0ddfd9/tox_extra-2.0.2.tar.gz",
    "platform": null,
    "description": "# tox-extra\n\nThis [tox plugin](https://github.com/topics/tox-plugin) adds a few extra checks\nlike:\n\n- [tox-extra](#tox-extra)\n  - [Checks Git Dirty Status](#checks-git-dirty-status)\n  - [Checks system dependencies using bindep](#checks-system-dependencies-using-bindep)\n\n## Checks Git Dirty Status\n\nIt ensures exit code 1 if git reports dirty or untracked files _after_ the run.\n\nUsage example:\n\n```shell\n$ tox -e py\n...\nERROR: Git reported dirty status. Git should never report dirty status at the end of testing, regardless if status is passed, failed or aborted.\nOn branch devel\nYour branch is up to date with 'origin/devel'.\n\nUntracked files:\n  (use \"git add <file>...\" to include in what will be committed)\n\tsome-untracked.txt\n\nnothing added to commit but untracked files present (use \"git add\" to track)\n__________________________________________ summary ___________________________________________\nERROR:   py: failed\n```\n\nThe goal of this plugin is to help developers be aware of files modified by tests\nor untracked files before they commit the code. This plugin also does not take into\nconsideration the global `.gitignore`, something that can make git miss reporting\nsome untracked files, the goal being to assure that when a new developer clones and\nruns the tests they do not endup with an unexpected git status.\n\nIf you have any cases where you expect to have git report dirty, please\nadd `--allow-dirty` to the command call to disable this check.\n\n## Checks system dependencies using bindep\n\nIf a `bindep.txt` config file is found, tox will run `bindep [profiles]` to\ncheck if dependencies, including test ones, are present. There is no need to\ninstall bindep your self.\n\nThis plugin will add the following list of bindep profiles:\n\n- `test` is always added as tox itself is a test tool\n- exact tox env name\n- tox env name itself split by `-'\n- `pythonX.Y` and `pyXY` based on which python current tox env will use\n\nThis should allow developers to modify their `bindep.txt` file to include\nsystem dependencies specific to a single tox environment if they wish.\n\nTo disable bindep feature, you can define `TOX_EXTRA_BINDEP=0` in your\nenvironment.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Performs extra checks before or after running",
    "version": "2.0.2",
    "project_urls": {
        "changelog": "https://github.com/tox-dev/tox-extra/releases",
        "homepage": "https://github.com/tox-dev/tox-extra",
        "issues": "https://github.com/tox-dev/tox-extra/issues",
        "repository": "https://github.com/tox-dev/tox-extra"
    },
    "split_keywords": [
        "git",
        " tox",
        " tox-plugin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cee03dc389a49202ea3d8f54d3e95e72a695b43bc4882581cd2cb42ca645953",
                "md5": "2b97c7b86c3446c159ee3e6466cf6089",
                "sha256": "22c9e7e0982cb5fbb65b1f400c9510ab6e19125b4581382510d167bd2172de8b"
            },
            "downloads": -1,
            "filename": "tox_extra-2.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2b97c7b86c3446c159ee3e6466cf6089",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5986,
            "upload_time": "2024-10-04T16:02:49",
            "upload_time_iso_8601": "2024-10-04T16:02:49.896522Z",
            "url": "https://files.pythonhosted.org/packages/2c/ee/03dc389a49202ea3d8f54d3e95e72a695b43bc4882581cd2cb42ca645953/tox_extra-2.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "545d5f90bf0a07e0823269377564bc90084cb2d8be28ba266b40e340cf0ddfd9",
                "md5": "090eedbea8f3066707d8dea416bcb943",
                "sha256": "6ffdf9d55639c9f88702e90e37b893b8c50f4b6f0c0fb61f972ef607a3151ddc"
            },
            "downloads": -1,
            "filename": "tox_extra-2.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "090eedbea8f3066707d8dea416bcb943",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 13939,
            "upload_time": "2024-10-04T16:02:50",
            "upload_time_iso_8601": "2024-10-04T16:02:50.896053Z",
            "url": "https://files.pythonhosted.org/packages/54/5d/5f90bf0a07e0823269377564bc90084cb2d8be28ba266b40e340cf0ddfd9/tox_extra-2.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-04 16:02:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tox-dev",
    "github_project": "tox-extra",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "tox-extra"
}
        
Elapsed time: 0.36504s