-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
tox.ini
45 lines (40 loc) · 832 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
44
45
[tox]
envlist = py38,py39,py310,py311,py312,pep8
[testenv]
usedevelop = True
deps = .[test]
pytest
commands = pytest {posargs}
[testenv:pep8]
basepython = python3
deps = flake8
flake8-black
flake8-blind-except
flake8-builtins
# flake8-docstrings
flake8-rst-docstrings
flake8-logging-format
isort
commands =
flake8
isort -c .
[testenv:lint]
skip_install = true
deps =
black
isort
commands =
isort -y .
black .
[flake8]
exclude = .tox,.eggs
show-source = true
# E501, W503, E231 and E203 are not respected by black
ignore = E501,W503,D100,D101,D102,D103,D104,G200,G201,W504,E231,E203
enable-extensions=G
[isort]
force_single_line = true
lines_after_imports = 2
force_sort_within_sections = true
known_first_party = git_pull_request
default_section = THIRDPARTY