forked from MeltanoLabs/tap-dynamodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 loc) · 1.58 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
52
53
54
55
56
57
58
59
60
61
# This file can be used to customize tox tests as well as other test frameworks like flake8 and mypy
[tox]
envlist = py39
isolated_build = true
[testenv]
allowlist_externals = poetry
commands =
poetry install -v
poetry run coverage run -m pytest --capture=no {posargs}
poetry run coverage html -d tests/codecoverage
poetry run black --check tap_dynamodb/ tests/
poetry run isort --check tap_dynamodb tests
poetry run flake8 tap_dynamodb tests
; poetry run pydocstyle tap_dynamodb
poetry run mypy . --exclude='tests'
[testenv:pytest]
# Run the python tests.
# To execute, run `tox -e pytest`
envlist = py37, py38, py39, py310, py311
commands =
poetry install -v
poetry run coverage run -m pytest --capture=no {posargs}
poetry run coverage html -d tests/codecoverage
[testenv:format]
# Attempt to auto-resolve lint errors before they are raised.
# To execute, run `tox -e format`
commands =
poetry install -v
poetry run black tap_dynamodb/ tests/
poetry run isort tap_dynamodb tests
[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_dynamodb/ tests/
poetry run isort --check tap_dynamodb tests
poetry run flake8 tap_dynamodb tests
# refer to mypy.ini for specific settings
poetry run mypy . --exclude='tests'
[flake8]
docstring-convention = google
ignore = W503
max-line-length = 88
max-complexity = 10
[pydocstyle]
ignore = D105,D203,D213
[coverage:run]
source=
tap_dynamodb/
omit=
*/.tox/*
*/test/*