-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
93 lines (85 loc) · 1.73 KB
/
tox.ini
File metadata and controls
93 lines (85 loc) · 1.73 KB
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
[tox]
envlist =
py{310,311,312,313,314}
flake8,
[testenv]
deps =
coverage
mock
pytest
pytest-cov
pytest-girder<5
pytest-xdist
girder<5
commands =
pytest --cov {envsitepackagesdir}/resource_path_tools {posargs}
[testenv:flake8]
skipsdist = true
skip_install = true
deps =
flake8
flake8-blind-except
flake8-bugbear
flake8-docstrings
flake8-quotes
pep8-naming
commands =
flake8 {posargs}
[testenv:release]
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
CIRCLE_BRANCH
deps =
twine
build
commands =
python -m build
twine check dist/*
twine upload --skip-existing dist/*
[flake8]
max-line-length = 100
show-source = True
format = pylint
exclude =
node_modules,
.eggs,
.git,
__pycache__,
.tox
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,
# W504 - Line break after binary operator
W504,
D200,
D205,
D400,
[pytest]
addopts = --verbose --strict --showlocals --cov-report="term" --cov-report="xml"
testpaths = test
[coverage:paths]
source =
resource_path_tools/
.tox/*/lib/python*/site-packages/resource_path_tools/
[coverage:run]
branch = True
parallel = True
data_file = .tox/coverage/.coverage
[coverage:xml]
output = .tox/coverage/py_coverage.xml