-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
110 lines (101 loc) · 2.06 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
[tox]
envlist =
lint,
test
[testenv]
passenv = PYTEST_*,GIRDER_ASSETSTORE_*
basepython = python3
[testenv:format]
skipsdist = true
skip_install = true
deps =
autopep8
isort
unify
commands =
isort {posargs:.}
autopep8 -ria girder_assetstore
unify --in-place --recursive girder_assetstore
[testenv:test]
deps =
-rrequirements-dev.txt
pytest
pytest-girder
commands =
girder build --dev
pytest {posargs}
[testenv:lint]
skipsdist = true
skip_install = true
deps =
flake8
flake8-bugbear
flake8-docstrings
flake8-quotes
pep8-naming
commands =
flake8 {posargs}
[testenv:release]
passenv =
TWINE_USERNAME
TWINE_PASSWORD
deps =
twine
commands =
twine check {distdir}/*
twine upload --skip-existing {distdir}/*
[flake8]
max-line-length = 100
show-source = True
format = pylint
exclude =
node_modules,
.eggs,
.git,
__pycache__,
.tox,
.venv,
build
ignore =
# D10* - Missing docstring in *
D10,
# E123 - Closing bracket does not match indentation of opening bracket’s line
E123
# N802 - Function name should be lowercase.
N802,
# N803 - Argument name should be lowercase.
N803,
# N806 - Variable in function should be lowercase.
N806,
# N812 - Lowercase imported as non lowercase.
N812,
# N815 - mixedCase variable in class scope
N815,
# N816 - mixedCase variable in global scope
N816,
# W503 - Line break before binary operator
W503,
[pytest]
addopts = --verbose --strict-markers --showlocals
testpaths = tests
markers =
girder: mark a test as requiring girder
girder_client: mark a test as requiring girder client
[testenv:lintclient]
skip_install = true
usedevelop = false
deps =
changedir = {toxinidir}/girder_assetstore/web_client
allowlist_externals =
npm
commands =
npm install --no-package-lock
npm run lint
[testenv:formatclient]
description = Autoformat client
skip_install = true
deps =
allowlist_externals =
npm
commands =
npm --prefix {toxinidir}/girder_assetstore/web_client run format