Seirdy/func-analysis

View on GitHub
setup.cfg

Summary

Maintainability
Test Coverage
[aliases]
test=pytest

[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=79
known_future_library=annotations
known_standard_library = collections, dataclasses, functools, numbers, typing
known_third_party = numpy, scipy, mpmath, pytest

[mypy]
python_version = 3.7
platform = linux
show_column_numbers = False
ignore_missing_imports = True
follow_imports = normal
check_untyped_defs = True
disallow_untyped_defs = False
disallow_incomplete_defs = False
strict_optional = True
follow_imports_for_stubs = True

[mypy-func_analysis]
disallow_untyped_defs = True
disallow_incomplete_defs = True

[flake8]
enable-extensions = G
ignore =
# Black formatter makes these obsolete.
# C81 referrs to comma-formatting (flake8-commas)
# Z317 refers to multiline-argument formatting (wemake-python-styleguide)
    W503, E203, D202, C81, Z317
    # multiline conditionals (wemake-python-styleguide)
        Z465
    # Magic numbers (wemake-python-styleguide)
    Z432
    # Nested functions (wemake-python-styleguide)
    Z430
    # Logic in __init__ methods (wemake-python-styleguide)
    Z412
    # Forbids f-strings (wemake-python-styleguide)
    Z305
    # isort makes these obsolete (hacking)
    H306, H301,X100
max-line-length = 79
inline-quotes = double
exclude =
    .git
    __pycache__
    build
    dist
    ignore
per_file_ignores =
    # Tests can use assert statements.
    func_analysis/tests/*py: S101
    # Single-sourcing __version__
    func_analysis/__init__.py: Z410
    # setup.py can use nested import
    setup.py: Z435
max-complexity = 4
max-line-complexity = 16
# wemake-python-styleguide tweaks
max-methods = 9

[pydocstyle]
add_select = D404, D212
add_ignore = D202, D104
convention = numpy

[coverage:run]
include =
    func_analysis/*.py
    func_analysis/**/*.py

[coverage:report]
fail_under = 99
show_missing = true

[tool:pytest]
norecursedirs =
    .vscode
    .mypy_cache
    .git
    __pycache__
    numpy-stubs
    build
    builds
    dist
    .tox
    .vim
    .pytest_cache
    venv
    ignore
    *.egg-info
filterwarnings =
    ignore::DeprecationWarning:pandas
    ignore::DeprecationWarning:isort
flake8-ignore =
    E203
    D202
    D104
    W503
    X100
    Z432
    Z430
    Z412
    Z305
    H3
    C81
docstyle_add_ignore =
    D202
    D104
docstyle_add_select =
    D404
    D212
docstyle_convention = numpy
addopts =
    -s
    --cov
    --ignore=.eggs
    --cov-report xml:coverage.xml
    --cov-report term