@@ -5,11 +5,16 @@ envlist =
5
5
; Environments are organized by individual package, allowing
6
6
; for specifying supported Python versions per package.
7
7
8
- py3{4,5,6,7,8}-test-flask
9
- pypy3-test-flask
8
+ ; py3{4,5,6,7,8}-test-flask
9
+ ; pypy3-test-flask
10
10
11
- py3{4,5,6,7,8}-test-django
12
- pypy3-test-django
11
+ ; py3{4,5,6,7,8}-test-django
12
+ ; pypy3-test-django
13
+ lint
14
+
15
+ [travis]
16
+ python =
17
+ 3.8: lint
13
18
14
19
[testenv]
15
20
deps =
@@ -28,8 +33,6 @@ commands_pre =
28
33
; Install without -e to test the actual installation
29
34
python -m pip install -U pip setuptools wheel
30
35
; test: pip install {toxinidir}/flask
31
- test: pip install {toxinidir}/utils/opentelemetry-auto-instrumentation
32
- test: pip install {toxinidir}/utils/opentelemetry-ext-testutil
33
36
34
37
flask: pip install {toxinidir}/flask
35
38
flask: pip install {toxinidir}/flask[test]
@@ -39,3 +42,28 @@ commands_pre =
39
42
40
43
commands =
41
44
test: pytest {posargs}
45
+
46
+ [testenv:lint]
47
+ basepython: python3.8
48
+ # recreate = True
49
+ deps =
50
+ -c dev-requirements.txt
51
+ pylint
52
+ flake8
53
+ isort
54
+ black
55
+ psutil
56
+ readme_renderer
57
+
58
+ ; commands_pre =
59
+ ; python scripts/eachdist.py install --editable
60
+ ; TODO: replace this with eachdist script
61
+ commands =
62
+ black --check --diff .
63
+ ; TODO: enable this once we have instrumentors
64
+ ; pylint django/src \
65
+ ; flask/src \
66
+ ; redis/src \
67
+ ; sqlalchemy/src
68
+ flake8 .
69
+ isort --check-only --diff --recursive .
0 commit comments