-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (37 loc) · 904 Bytes
/
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
[tox]
envlist = flake8, mypy, black
skipsdist = True
[flake8]
max-line-length = 160
ignore = D202, D203,D212,D213,D404,W503,ANN101
exclude = .git/, ./venv/, ./.tox/, build/, sda_uploader.egg-info/
# Not using type hints in tests, ignore all errors
per-file-ignores =
tests/*:ANN
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-docstrings
flake8-annotations
commands = flake8 .
[testenv:mypy]
skip_install = true
deps =
types-paramiko
-rrequirements.txt
mypy
# Mypy fails if 3rd party library doesn't have type hints configured.
# Alternative to ignoring imports would be to write custom stub files, which
# could be done at some point.
commands = mypy --ignore-missing-imports sda_uploader/
[testenv:black]
skip_install = true
deps =
black
commands = black . -l 160 --check
[testenv]
skip_install = true
[gh-actions]
python =
3.11: flake8, mypy, black