Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7235c7

Browse files
JohnVillalovosnejch
authored andcommitted
chore: add toxlabels to enable running groups of environments
tox now has a feature of `labels` which allows running groups ofenvironments using the command `tox -m LABEL_NAME`. For example`tox -m lint` which has been setup to run the linters.Bumped the minimum required version of tox to be 4.0, which wasreleased over a year ago.
1 parent679ddc7 commitd7235c7

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

‎CONTRIBUTING.rst‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ You need to install ``tox`` (``pip3 install tox``) to run tests and lint checks
8181
# List all available tox environments
8282
tox list
8383
84+
# "label" based tests. These use the '-m' flag to tox
85+
86+
# run all the linter checks:
87+
tox -m lint
88+
89+
# run only the unit tests:
90+
tox -m unit
91+
92+
# run the functional tests. This is very time consuming:
93+
tox -m func
94+
8495
Running integration tests
8596
-------------------------
8697

‎tox.ini‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
[tox]
2-
minversion =1.6
2+
minversion =4.0
33
skipsdist = True
44
skip_missing_interpreters = True
5-
envlist = py313,py312,py311,py310,py39,py38,flake8,black,twine-check,mypy,isort,cz,pylint
5+
envlist = py313,py312,py311,py310,py39,py38,black,isort,flake8,mypy,twine-check,cz,pylint
6+
7+
# NOTE(jlvillal): To use a label use the `-m` flag.
8+
# For example to run the `func` label group of environments do:
9+
# tox -m func
10+
labels =
11+
lint = black,isort,flake8,mypy,pylint,cz
12+
unit = py313,py312,py311,py310,py39,py38
13+
# func is the functional tests. This is very time consuming.
14+
func = cli_func_v4,api_func_v4
615

716
[testenv]
817
passenv =

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp