-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtox.ini
More file actions
67 lines (60 loc) · 2.23 KB
/
Copy pathtox.ini
File metadata and controls
67 lines (60 loc) · 2.23 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
; ----------------------------------------------------------------------------
; Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)
;
; This file is part of Deepchecks.
; Deepchecks is distributed under the terms of the GNU Affero General
; Public License (version 3 or later).
; You should have received a copy of the GNU Affero General Public License
; along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
; ----------------------------------------------------------------------------
;
[tox]
envlist = python38,python39,python310
[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
-r requirements.txt
-r dev-requirements.txt
commands =
# NOTE: you can run any command line tool here - not just tests
pytest
setenv =
PYTHONPATH = .
[flake8]
# max line length for black
max-line-length = 120
target-version = ['py37']
# Default flake8 3.5 ignored flags
ignore=
E24, # check ignored by default in flake8. Meaning unclear.
E121, # continuation line under-indented
E123, # closing bracket does not match indentation
E126, # continuation line over-indented for hanging indent
E203, # space before : (needed for how black formats slicing)
E226, # missing whitespace around arithmetic operator
E704, # multiple statements on one line (def)
E731, # do not assign a lambda expression, use a def
E741, # do not use variables named ‘l’, ‘O’, or ‘I’
W503, # line break before binary operator
B010, # Do not call setattr with a constant attribute value, it is not any safer than normal property access.
B009, # Do not call getattr with a constant attribute value, it is not any safer than normal property access.
W504, # line break after binary operator
D107, # Missing docstring in __init__
E800, # Found commented out code
F401, # Unused import, pylint do it better
E131, # continuation line unaligned for hanging indent
exclude=
.git,
__pycache__,
versions,
migrations
spellcheck-targets=comments
[flake8-rst]
ignore=
SC100, "Possibly misspelt word"
SC200, "Possibly misspelt word"
E501, "Line too long"
[isort]
line_length = 120
[pydocstyle]
match-dir=(?!migrations|versions).*