-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
51 lines (48 loc) · 1.19 KB
/
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
48
49
50
51
[tox]
# We explicitly ask poetry to install our package
skipsdist = true
envlist = py37, dev
[testenv]
description = Running static code checks and unit tests
# We explicitly ask poetry to install our package
skip_install = true
deps =
poetry
commands =
poetry install -v
poetry run pytest \
--cov=flirror --cov-report=term-missing --cov-report=html --cov-report=xml \
--verbose {posargs}
poetry run flake8
poetry run mypy --config-file mypy.ini flirror
poetry run black --check --diff {toxinidir}
poetry build
poetry run flirror-crawler --help
[testenv:dev]
description = Development environment for Flirror
deps =
poetry
commands =
poetry install -v
[flake8]
max-line-length = 90
ignore =
# D202: No blank lines allowed after function docstring
# Not compatible with black in some cases
D202
# E501: Comment line length
E501
# W503 line break before binary operator
# Not PEP8 compliant (as stated by black)
W503
exclude =
.git,
.tox,
.eggs,
__pycache__,
build,
dist
# Plugin config: flake8-import-order
import-order-style = smarkets
application-import-names = flirror
application-package-names = flirror