-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
47 lines (40 loc) · 1.14 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
# This file can be used to customize dox tests as well as other test frameworks like flake8 and mypy
[tox]
envlist = py39
; envlist = py37, py38, py39
isolated_build = true
[testenv]
whitelist_externals = poetry
passenv = TAP_LASTFM_API_KEY
commands =
poetry install -v
# poetry run pytest
poetry run black tap_lastfm/
poetry run isort tap_lastfm
poetry run flake8 tap_lastfm
# poetry run pydocstyle tap_lastfm
# poetry run mypy tap_lastfm --exclude='tap_lastfm/tests'
[testenv:pytest]
# Run the python tests.
# To execute, run `tox -e pytest`
envlist = py37, py38, py39
commands =
poetry install -v
poetry run pytest
[testenv:lint]
# Raise an error if lint and style standards are not met.
# To execute, run `tox -e lint`
commands =
poetry install -v
poetry run black --check --diff tap_lastfm/
poetry run isort --check tap_lastfm
poetry run flake8 tap_lastfm
poetry run pydocstyle tap_lastfm
# refer to mypy.ini for specific settings
poetry run mypy tap_lastfm --exclude='tap_lastfm/tests'
[flake8]
ignore = W503
max-line-length = 88
max-complexity = 10
[pydocstyle]
ignore = D105,D203,D213