2
2
minversion = 1.6
3
3
skipsdist = True
4
4
skip_missing_interpreters = True
5
- envlist = py310,py39,py38,py37,flake8,black, twine-check,mypy,isort,cz,pylint
5
+ envlist = py310,py39,py38,py37,twine-check
6
6
7
7
[testenv]
8
8
passenv =
@@ -26,48 +26,6 @@ deps = -r{toxinidir}/requirements.txt
26
26
commands =
27
27
pytest tests/unit tests/meta {posargs}
28
28
29
- [testenv:black]
30
- basepython = python3
31
- envdir ={toxworkdir}/lint
32
- deps = -r{toxinidir}/requirements-lint.txt
33
- commands =
34
- black {posargs} .
35
-
36
- [testenv:isort]
37
- basepython = python3
38
- envdir ={toxworkdir}/lint
39
- deps = -r{toxinidir}/requirements-lint.txt
40
- commands =
41
- isort {posargs} {toxinidir}
42
-
43
- [testenv:mypy]
44
- basepython = python3
45
- envdir ={toxworkdir}/lint
46
- deps = -r{toxinidir}/requirements-lint.txt
47
- commands =
48
- mypy {posargs}
49
-
50
- [testenv:flake8]
51
- basepython = python3
52
- envdir ={toxworkdir}/lint
53
- deps = -r{toxinidir}/requirements-lint.txt
54
- commands =
55
- flake8 {posargs} .
56
-
57
- [testenv:pylint]
58
- basepython = python3
59
- envdir ={toxworkdir}/lint
60
- deps = -r{toxinidir}/requirements-lint.txt
61
- commands =
62
- pylint {posargs} gitlab/
63
-
64
- [testenv:cz]
65
- basepython = python3
66
- envdir ={toxworkdir}/lint
67
- deps = -r{toxinidir}/requirements-lint.txt
68
- commands =
69
- cz check --rev-range 65ecadc..HEAD # cz is fast, check from first valid commit
70
-
71
29
[testenv:twine-check]
72
30
basepython = python3
73
31
deps = -r{toxinidir}/requirements.txt
@@ -79,17 +37,6 @@ commands =
79
37
[testenv:venv]
80
38
commands = {posargs}
81
39
82
- [flake8]
83
- exclude = .git,.venv,.tox,dist,doc,*egg,build,
84
- max-line-length = 88
85
- # We ignore the following because we use black to handle code-formatting
86
- # E203: Whitespace before ':'
87
- # E501: Line too long
88
- # W503: Line break occurred before a binary operator
89
- ignore = E203,E501,W503
90
- per-file-ignores =
91
- gitlab/v4/objects/__init__.py:F401,F403
92
-
93
40
[testenv:docs]
94
41
deps = -r{toxinidir}/requirements-docs.txt
95
42
commands = sphinx-build -n -W --keep-going -b html docs build/sphinx/html
@@ -123,3 +70,14 @@ commands =
123
70
[testenv:smoke]
124
71
deps = -r{toxinidir}/requirements-test.txt
125
72
commands = pytest tests/smoke {posargs}
73
+
74
+ [flake8]
75
+ exclude = .git,.venv,.tox,dist,doc,*egg,build,
76
+ max-line-length = 88
77
+ # We ignore the following because we use black to handle code-formatting
78
+ # E203: Whitespace before ':'
79
+ # E501: Line too long
80
+ # W503: Line break occurred before a binary operator
81
+ ignore = E203,E501,W503
82
+ per-file-ignores =
83
+ gitlab/v4/objects/__init__.py:F401,F403
0 commit comments