-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (35 loc) · 863 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py39, flake8, black
isolated_build = True
[testenv]
deps = pytest
commands = pytest
setenv =
DEBUG = 1
[testenv:flake8]
deps = flake8
flake8-blind-except
flake8-builtins
flake8-bugbear
flake8-simplify
flake8-executable
flake8-logging-format
commands = flake8
[testenv:black]
deps =
black
commands =
black -l 120 --check .
[flake8]
exclude = .tox,.venv
# If you need to ignore some error codes in the whole source code
# you can write them here
ignore = W391, W503
max-line-length = 120
; [flake8:local-plugins]
; paths =
; .venv/lib/python3.10/site-packages