GithubHelp home page GithubHelp logo

python-coincidence / tox-envlist Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 259 KB

Allows selection of a different tox envlist.

License: MIT License

Python 96.63% Just 3.37%
tox python tox-plugin

tox-envlist's Introduction

tox-envlist

Allows selection of a different tox envlist.

Tests Linux Test Status Windows Test Status macOS Test Status Coverage
PyPI PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel
Activity GitHub last commit Maintenance PyPI - Downloads
QA CodeFactor Grade Flake8 Status mypy status
Other License GitHub top language Requirements Status

Configuration

In your tox.ini file, add the following:

[envlists]
test = py36, py37, py38
qa = mypy,lint
cov = py36,coverage

This will configure three envlists:

  • test, which runs the environments py36, py37 and py38
  • qa, which runs the environments mypy and lint
  • cov, which runs the environments py36 and coverage

You are free to customise these envlists and add new ones.

Usage

Run tox using the -n / --envlist-name [name] option, where name is the name of the envlist.

Installation

tox-envlist can be installed from PyPI.

To install with pip:

$ python -m pip install tox-envlist

tox-envlist requires Python 3.7 or later to run, but can be used to configure envlists which use earlier Python version.

tox-envlist's People

Contributors

domdfcoding avatar pre-commit-ci[bot] avatar repo-helper[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jean-n92

tox-envlist's Issues

ImportError with tox 4

Description

The plugin does not work with tox 4 and raises this error: ImportError: cannot import name 'reporter' from 'tox'.
Related: #32

Steps to Reproduce

Create a tox config with this plugin. Because tox will create a .tox env so it can use this plugin it will also install tox 4 there.

Actual result:

  File "/home/krys/Projects/verbum/.tox/.tox/lib/python3.11/site-packages/tox_envlist/__init__.py", line 43, in <module>
    from tox import config, reporter  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'reporter' from 'tox'

Expected result:

no error

Reproduces how often:

Easily reproduced

Version

  • Operating System: linux
  • Python: 3.11
  • tox-envlist: 0.3.0

Installation source

PyPI

Other Additional Information:

The feature this plugin provides is now available in tox 4 out of the box known as labels. They can be run via the -m flag.

Migrate to tox-dev and v4 support

Hello, would you consider moving the project under the tox-dev umbrella? See documentation under https://tox.readthedocs.io/en/rewrite/plugins.html#adoption-of-a-plugin-under-tox-dev-github-organization

Furthermore, tox v4 is getting ready and we'd like to make sure this plugin is supported from day 1, we're collecting feature gaps for this under tox-dev/tox#1974. Would be great if you could join our development chat under https://discord.gg/tox so we can assist with this. If you do so please drop in a line in the #plugin chat with the name of the repository you maintain. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.