diff options
author | Jonathan Weth <git@jonathanweth.de> | 2021-06-23 14:39:01 +0200 |
---|---|---|
committer | Jonathan Weth <git@jonathanweth.de> | 2021-06-23 14:39:01 +0200 |
commit | 3cf9c8b9ef994b8341b3c19bb4458c198a51992c (patch) | |
tree | b7fad96786ac2924842559dd9631bcd90d622ce8 /tox.ini | |
parent | ed1d15aa02b3c7c1350a5204861d1f8678550fbb (diff) | |
download | RWA.Support.SessionService-3cf9c8b9ef994b8341b3c19bb4458c198a51992c.tar.gz RWA.Support.SessionService-3cf9c8b9ef994b8341b3c19bb4458c198a51992c.tar.bz2 RWA.Support.SessionService-3cf9c8b9ef994b8341b3c19bb4458c198a51992c.zip |
Introduce and apply reformat/lint
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 73 |
1 files changed, 73 insertions, 0 deletions
@@ -0,0 +1,73 @@ +[tox] +skipsdist = True +skip_missing_interpreters = true +envlist = py37,py38,py39 + +[testenv] +whitelist_externals = poetry + sudo +skip_install = true +envdir = {toxworkdir}/globalenv +commands_pre = + poetry install +commands = + poetry run pytest --cov=. {posargs} rwa/ + +[testenv:lint] +commands = + poetry run black --check --diff rwa/ + poetry run isort -c --diff --stdout rwa/ + poetry run flake8 {posargs} rwa/ + +[testenv:security] +commands = + poetry show --no-dev + poetry run safety check --full-report + +[testenv:build] +commands_pre = + poetry install +commands = poetry build + +[testenv:docs] +commands = poetry run make -C docs/ html {posargs} + +[testenv:reformat] +commands = + poetry run isort rwa/ + poetry run black rwa/ + +[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 +rst-directives = + autosummary,data,currentmodule,deprecated, + glossary,moduleauthor,plot,testcode, + versionadded,versionchanged, +rst-roles = + attr,class,func,meth,mod,obj,ref,term, + +[isort] +profile = black +line_length = 100 +default_section = THIRDPARTY +known_first_party = rwa +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/* + .venv/* |