Skip to content

Commit

Permalink
setup: add example based test for torch and ignore pylint too many po…
Browse files Browse the repository at this point in the history
…sitional arguments
  • Loading branch information
AntoninPoche committed Oct 7, 2024
1 parent be32ac3 commit ba1a174
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ disable =
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
Expand All @@ -26,6 +27,7 @@ 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}
Expand All @@ -47,7 +49,7 @@ deps =
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 {posargs}
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 =
Expand All @@ -61,7 +63,7 @@ deps =
torch200: torch
-rrequirements.txt
commands =
pytest --cov=xplique/wrappers/pytorch tests/wrappers/test_pytorch_wrapper.py tests/concepts/test_craft_torch.py
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
Expand Down

0 comments on commit ba1a174

Please sign in to comment.