-
Notifications
You must be signed in to change notification settings - Fork 53
/
setup.cfg
76 lines (64 loc) · 1.96 KB
/
setup.cfg
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
[bumpversion]
current_version = 1.4.0
commit = True
tag = False
[bumpversion:file:setup.py]
[bumpversion:file:xplique/__init__.py]
[pylint]
disable =
R0903, # allows to expose only one public method
R0914, # allow multiples local variables
E0401, # pending issue with pylint see pylint#2603
E1123, # issues between pylint and tensorflow since 2.2.0
E1120, # see pylint#3613
E1101, # pylint misses members set dynamically
C3001, # lambda function as variable
R0917, # too-many-positional-arguments - TODO: fix this when breaking retrocompatibility
[pylint.FORMAT]
max-line-length = 100
max-args = 12
[similarities]
min-similarity-lines = 6
ignore-comments = yes
ignore-docstrings = yes
ignore-imports = no
ignore-signatures = yes
[tox:tox]
envlist = py{37,38,39,310}-lint, py{37,38,39,310}-tf{22,25,28,211}, py{38,39,310}-tf{25,28,211}-torch{111,113,200}
[testenv:py{37,38,39,310}-lint]
deps =
pylint
-rrequirements.txt
commands =
python -m pylint xplique
[testenv:py{37,38,39,310}-tf{22,25,28,211}]
deps =
pytest
pytest-cov
tf21: tensorflow ~= 2.2.0,<2.16
tf25: tensorflow ~= 2.5.0,<2.16
tf28: tensorflow ~= 2.8.0,<2.16
tf211: tensorflow ~= 2.11.0,<2.16
-rrequirements.txt
commands =
pytest --cov=xplique --ignore=xplique/wrappers/pytorch.py --ignore=tests/wrappers/test_pytorch_wrapper.py --ignore=tests/concepts/test_craft_torch.py --ignore=tests/example_based/test_torch.py {posargs}
[testenv:py{38,39,310}-tf{25,28,211}-torch{111,113,200}]
deps =
pytest
pytest-cov
tf25: tensorflow ~= 2.5.0,<2.16
tf28: tensorflow ~= 2.8.0,<2.16
tf211: tensorflow ~= 2.11.0,<2.16
torch111: torch == 1.11.0
torch113: torch == 1.13.0
torch200: torch
-rrequirements.txt
commands =
pytest --cov=xplique/wrappers/pytorch tests/wrappers/test_pytorch_wrapper.py tests/concepts/test_craft_torch.py tests/example_based/test_torch.py
[mypy]
check_untyped_defs = True
warn_unused_configs = True
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-sklearn.*]
ignore_missing_imports = True