-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.cfg
45 lines (39 loc) · 948 Bytes
/
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
[flake8]
# Use black line length:
max-line-length = 88
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203, E231
[mypy]
warn_return_any = True
warn_unused_configs = True
namespace_packages = True
ignore_missing_imports = True
[mypy-torchvision.*]
ignore_missing_imports = True
[mypy-torch_testing.*]
ignore_missing_imports = True
[tox:tox]
envlist = py{36,37,38},py{36,37,38}-lint
[testenv]
pip_version = pip>=20
deps =
pytest
torch_testing
torch==1.7.0+cpu
torchvision==0.8.1+cpu
install_command = pip install --find-links https://download.pytorch.org/whl/torch_stable.html {opts} {packages}
commands =
pytest tests
[testenv:py{36,37,38}-lint]
skip_install = true
deps =
black
flake8
flake8-black
mypy
git+https://github.com/numpy/numpy-stubs.git
commands =
black --check --diff setup.py deel tests
flake8 deel tests
#mypy --no-namespace-packages deel tests