-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
110 lines (88 loc) · 1.66 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#***********************************************************************
#
# pccc, the Python Conventional Commit Checker.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# Copyright 2020-2022 Jeremy A Gray <gray@flyquackswim.com>.
#
#***********************************************************************
[tox]
envlist =
# Erase old test coverage data.
clean
# Python versions.
py{37,38,39,310,311}
# Generate current test coverage report.
report
# Linting
lint
isolated_build = True
skip_missing_interpreters = True
requires =
pip>=20.0
[testenv:clean]
# Erase previous test coverage data.
deps = coverage[TOML]
skip_install = true
commands = coverage erase
[testenv:report]
# Generate current test coverage report.
deps = coverage[TOML]
skip_install = true
commands =
coverage report
coverage html
[testenv]
# Test supported environments.
deps =
bespon
factory-boy
hypothesis
pyenchant
pyfakefs
pyparsing
pytest
pytest-cov
ruamel.yaml
toml
commands =
pytest -vv --cov pccc --cov tests --cov-append
[testenv:flake8]
skip_install = True
deps =
flake8
flake8-docstrings
commands =
flake8 pccc tests
[testenv:black]
skip_install = True
deps =
black
commands =
black --check --diff pccc tests
[testenv:isort]
skip_install = True
deps =
isort
commands =
isort --check --df pccc tests
[testenv:lint]
skip_install = True
deps =
flake8
flake8-docstrings
black
isort
commands =
black --check --diff pccc tests
flake8 pccc tests
isort --check --df pccc tests
[testenv:lint-fix]
skip_install = True
deps =
black
isort
commands =
black pccc tests
isort pccc tests