Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

The-V8/vscode-python-tox

 
 

Repository files navigation

python-tox extension for Visual Studio Code

tox logo VS Code logo

VS Marketplace Version VS Marketplace Installs VS Marketplace Ratings

Open VSX Version Open VSX Downloads Open VSX Ratings

CI Sponsor

This extension integrates the tox task automation tool with Visual Studio Code.

Screenshot

Here be dragons

Note: The extension was mainly written to scratch my own itch, and this is the first time I'm writing something "real" using TypeScript and NodeJS.

Contributions, suggestions and improvements of all kinds are very welcome, but use at your own risk.

Installing

Install the extension via the Visual Studio Marketplace or the Open VSX Registry. Also, make sure that tox is installed.

Finally, run one of the commands via the command palette or bind them to a shortcut. No default shortcuts are provided.

For VSpaceCode, consider a configuration such as:

    "vspacecode.bindingOverrides": [
        {
            "keys": ["m", "languageId:python", "c", "t"],
            "name": "+Run tox",
            "icon": "play",
            "type": "command",
            "command": "python-tox.select"
        },
        {
            "keys": ["m", "languageId:python", "c", "T"],
            "name": "+Run tox (multiple)",
            "icon": "run-all",
            "type": "command",
            "command": "python-tox.selectMultiple"
        },
    ]

To get a development build of the latest commit, you can:

  • Go to the GitHub Actions tab, view the newest passing run and download an automated build from the "Artifacts" section.
  • Or clone the repository and run npm run package

Then install the resulting .vsix file using the command palette and selecting "Extensions: Install from VSIX...".

Extension Commands

  • python-tox.select: Show a menu allowing to pick a tox environment.
  • python-tox.selectMultiple: Show a menu allowing to pick multiple tox environments.

Release Notes

See CHANGELOG.md.

Releasing checklist

  • Double-check the CI
  • npm version <major|minor|patch>
  • git push origin
  • git push origin vX.Y.Z
  • Lean back and let the CI do the rest

About

Visual Studio Code plugin for the Python tox task automation tool

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%