forked from Delgan/loguru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (39 loc) · 900 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
46
47
[tox]
envlist = lint, tests, docs
[testenv]
setenv = PYTHONPATH = {toxinidir}
extras = dev
[testenv:lint]
description = Run linting checks on all project files.
commands =
pre-commit run --show-diff-on-failure --all-files
[testenv:tests]
description = Run the tests and generate code coverage.
commands =
coverage erase
pytest --cov loguru/ --cov-report=
coverage report -m
coverage xml
[testenv:docs]
description = Build the HTML documentation.
commands =
sphinx-build -a -b html -W --keep-going docs/ docs/build
[isort]
line_length = 100
profile = black
[flake8]
max_line_length = 100
max_doc_length = 100
ignore =
# Line break before binary operator (PEP8 now recommend to break after binary operator)
W503
# Whitespace before ":" in slices
E203
exclude =
tests/exceptions/source
[pytest]
addopts = -l
testpaths =
tests
[mypy]
strict = true