-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
91 lines (86 loc) · 2.07 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
# tox automation testing configuration
#
# NOTE: you will need to already have the `envlist` python versions installed on your system
# using pyenv is recommended, which can be done using the `scipts/run_tox.sh` script
#
# To run a single environment:
# tox -e py36
# To recreate environment:
# tox --recreate
[tox]
requires = tox-conda
isolated_build = true
parallel_show_output = true
envlist =
py39
py310
flake8
[testenv]
allowlist_externals =
which
pytest
conda_channels=
conda-forge
deps = -rrequirements-dev.txt
# commands = bash {toxinidir}/scripts/tester.sh {posargs: -b -v}
commands =
which python
python --version
; python {toxinidir}/scripts/convert_notebook_tests.py
which pytest
pytest --version
pytest
[testenv:flake8]
allowlist_externals =
which
flake8
skip_install = true
commands =
which python
python --version
which flake8
flake8 --version
flake8
[flake8]
max-line-length=140
docstring-convention=all
ignore=
F401 # imported but unused
W293 # blank line contains whitespace
E226 # missing whitespace around arithmetic operator
E241 # multiple spaces after ','
E722 # do not use bare 'except'
E731 # do not assign a lambda expression, use a def
C901 # is too complex (17)
# E262 # inline comment should start with '# '
# E302 # expected 2 blank lines, found 1
# W391 # blank line at end of file
# P102,B311,W503,E226,S311,
# # Missing Docstrings
# D100,D104,D105,D107,
# # Docstring Whitespace
# D203,D212,D214,D215,
# # Docstring Quotes
# D301,D302,
# # Docstring Content
# D400,D401,D402,D404,D405,D406,D407,D408,D409,D410,D411,D412,D413,D414,D416,D417,
# # Type Annotations
# ANN002,ANN003,ANN101,ANN102,ANN204,ANN206,
# # pep8-naming
# N802,N806,N815,
exclude =
.git
.tox
__pycache__
# This contains our built documentation
build
converted_notebooks
dist
data
docs
notebooks
notebooks/dev
scripts
venv
pyproject.toml
max-complexity = 10