Skip to content
Snippets Groups Projects
tox.ini 1.41 KiB
Newer Older
Michał Pogoda's avatar
Michał Pogoda committed
envlist = pep8,docstyle,tests
Michał Pogoda's avatar
Michał Pogoda committed
basepython = python3.8
commands =
    flake8 {posargs}

[testenv:docstyle]
deps =
    pydocstyle
Michał Pogoda's avatar
Michał Pogoda committed
basepython = python3.8
Michał Pogoda's avatar
Michał Pogoda committed
[testenv:tests]
deps =
Michał Pogoda's avatar
Michał Pogoda committed
    -rrequirements.txt
    -rrequirements.dev.txt
Michał Pogoda's avatar
Michał Pogoda committed
basepython = python3.8
commands =
    pytest tests/

[flake8]
# W504 skipped because it is overeager and unnecessary
Michał Pogoda's avatar
Michał Pogoda committed
ignore = W504,E203,W503
show-source = True
exclude = .git,.venv,.tox,dist,doc,*egg,build,venv
import-order-style = pep8
Michał Pogoda's avatar
Michał Pogoda committed
max-line-length = 88

[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).*
Bartłomiej Koptyra's avatar
Bartłomiej Koptyra committed
match = ^(?!setup).*\.py