-
Notifications
You must be signed in to change notification settings - Fork 75
/
tox.ini
37 lines (30 loc) · 842 Bytes
/
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
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist =
py3{7,8,9,10,11}-events-ext
lint
[testenv]
deps =
-r test-requirements.txt
changedir =
events-ext: azure-monitor-events-extension/tests
commands_pre =
py3{7,8,9,10,11}: python -m pip install -U pip setuptools wheel
events-ext: pip install {toxinidir}/azure-monitor-events-extension
commands =
; TODO: Enable when events tests are added
; events-ext: pytest {posargs}
[testenv:lint]
basepython: python3.11
recreate = True
deps =
-r lint-requirements.txt
commands_pre =
python -m pip install -e {toxinidir}/azure-monitor-events-extension
commands =
black --config pyproject.toml {toxinidir} --diff --check
isort --settings-path .isort.cfg {toxinidir} --diff --check-only
flake8 --config .flake8 {toxinidir}
; TODO
; pylint {toxinidir}