thesadru/apimodel

View on GitHub
.flake8

Summary

Maintainability
Test Coverage
[flake8]
exclude = tests, test.py
ignore = 
    D105,  # Missing docstring in magic method
    S101,  # Use of assert
    S110,  # Try, Except, Pass
    W503,  # anti-pattern Line break before binary operator

# F401: unused import.
# F403: cannot detect unused vars if we use starred import
# D10*: docstrings
# S10*: hardcoded passwords
# F841: unused variable
# I900: dev dependency
per-file-ignores =
    **/__init__.py:  F401, F403
    tests/**: D10, S10, F841, I900
    noxfile.py: I900
    docs/conf.py: I900

max-complexity = 15
max-function-length = 100
max-line-length = 130

max_annotations_complexity = 5

accept-encodings = utf-8
docstring-convention = google
ignore-decorators = property
requirements_file = requirements.txt