-
Jonathan Weth authoredJonathan Weth authored
tox.ini 1.22 KiB
[tox]
skipsdist = True
skip_missing_interpreters = true
envlist = py37,py38,py39
[testenv]
whitelist_externals = poetry
sudo
skip_install = true
envdir = {toxworkdir}/globalenv
commands =
poetry run pytest --cov=. {posargs} kort_client/
[testenv:lint]
commands =
poetry run black --check --diff kort_client/
poetry run isort -c --diff --stdout kort_client/
poetry run flake8 {posargs} kort_client/
[testenv:security]
commands =
poetry show --no-dev
poetry run safety check --full-report
[testenv:build]
commands_pre =
poetry install
commands = poetry build
[testenv:reformat]
commands =
poetry run isort kort_client/
poetry run black kort_client/
[flake8]
max_line_length = 100
exclude = tests
ignore = BLK100,E203,E231,W503,D100,D101,D102,D103,D104,D105,D106,D107,RST215,RST214,F821,F841,S106,T100,T101,DJ05
[isort]
profile = black
line_length = 100
default_section = THIRDPARTY
known_first_party = kort_client
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[mypy]
python_version = 3.9
platform = linux
show_column_numbers = True
follow_imports = skip
ignore_missing_imports = True
cache_dir = /dev/null
[pytest]
junit_family = legacy
[coverage:run]
omit =
*/tests/*
.tox/*