-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
51 lines (44 loc) · 886 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[pytest]
addopts =
--tb=short
-vv
--strict-markers
--cov-report term-missing
--cov-fail-under 100
-p no:warnings
testpaths = common_migration/tests
[flake8]
exclude = ve,migration_files
; Set the hard line length limit to 90 characters.
max-line-length = 90
; W503 - Allow binary operators to start a line
; E402 - Allow imports to be at the start of the file
; FI1* - Errors for missing `__future__` imports.
; FI90 - Other __future__ imports.
ignore =
W503,
E402,
FI10,
FI11,
FI12,
FI13,
FI14,
FI15,
FI16,
FI17,
FI90
[tox]
envlist =
flake8,
pyright,
pytest
[testenv]
setenv = PYTHONPATH=""
deps = -rdev-requirements.txt
[testenv:pytest]
commands = pytest --cov
[testenv:flake8]
commands = flake8 common_migration
[testenv:pyright]
whitelist_externals = pyright
commands = pyright common_migration