Skip to content
Snippets Groups Projects
tox.ini 1.61 KiB
Newer Older
Paweł Walkowiak's avatar
Paweł Walkowiak committed
[tox]
envlist = pep8,docstyle
skipsdist = True

[testenv:pep8]
deps =
    flake8
basepython = python3
commands =
    flake8 {posargs}

[testenv:docstyle]
Bartosz Matysiak's avatar
Bartosz Matysiak committed
setenv =
    PIP_EXTRA_INDEX_URL=https://pypi.clarin-pl.eu/simple/
Paweł Walkowiak's avatar
Paweł Walkowiak committed
deps =
    pydocstyle
basepython = python3
commands =
    pydocstyle --verbose {posargs}

[testenv:pytest]
deps =
    pytest
    pytest-pythonpath
    coverage
    nlp-ws>=2.1
    ccl2json==0.1.1
    pyaml-env==1.2.1
Bartosz Matysiak's avatar
Bartosz Matysiak committed
    pytest-mock
Bartosz Matysiak's avatar
Bartosz Matysiak committed
    lxml
Bartosz Matysiak's avatar
Bartosz Matysiak committed
    clarin_json>=0.5
Paweł Walkowiak's avatar
Paweł Walkowiak committed
commands =
    coverage run --source=src -m pytest --junitxml=report.xml tests/test.py
    coverage html

[run]
relative_files = True
branch = True

[flake8]
# W504 skipped because it is overeager and unnecessary
ignore = W504
show-source = True
exclude = .git,.venv,.tox,dist,doc,*egg,build,venv,tests
import-order-style = pep8
max-line-length = 80


[pydocstyle]
# D104 Missing docstring in public package
# D203 1 blank line required before class docstring
# D213 Multi-line docstring summary should start at the second line
# D214 Section is over-indented
# D215 Section underline is over-indented
# D401 First line should be in imperative mood; try rephrasing
# D405 Section name should be properly capitalized
# D406 Section name should end with a newline
# D407 Missing dashed underline after section
# D408 Section underline should be in the line following the section’s name
# D409 Section underline should match the length of its name
# D410 Missing blank line after section
# D411 Missing blank line before section
ignore = D104,D203,D213,D214,D215,D401,D405,D406,D407,D408,D409,D410,D411
match-dir = ^(?!\.tox|venv|tests).*
match = ^(?!setup).*\.py