summaryrefslogblamecommitdiffstats
path: root/setup.cfg
blob: 8be44a61c0a1ff4b8683ba242b70afb9794af159 (plain) (tree)































































                                                                   
[darglint]
strictness = short
docstring_style = google

[flake8]
max-complexity = 10
max-line-length = 79
docstring-convention = google
select =
    # flake8-annotations
    ANN,
    # flake8-bugbear
    B,
    # flake8-bugbear
    B9,
    # flake8-black
    BLK,
    # mccabe
    C,
    # flake8-docstrings
    D,
    # darglint
    DAR,
    # pycodestyle
    E,
    # pyflakes
    F,
    # flake8-isort
    I,
    # flake8-bandit
    S,
    # pycodestyle
    W
ignore =
    # Missing type annotation for '*args'
    ANN002,
    # Missing type annotation for '**kwargs'
    ANN003,
    # Missing type annotation for 'self' in method.
    ANN101,
    # Missing type annotation for 'cls' in classmethod.
    ANN102,
    # Abstract base class with no abstract method. Remember to use
    # @abstractmethod, @abstractclassmethod, and/or
    # @abstractproperty decorators.
    B024,
    # Use r”“” if any backslashes in a docstring
    # (Click uses backslashes to format CLI help)
    D301,
    # Whitespace before ':' (does not work well with Black)
    E203,
    # Line too long (82 > 79 characters)
    # (Already checked by flake8-bugbear B950 with a margin of 10%)
    # https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
    E501,
    # XML minidom insecure
    S408,
    # Probable insecure usage of temp file/directory.
    S108,
    # Line break occurred before a binary operator
    # (does not work well with Black)
    W503,
    # XML minidom insecure
    S408,
remember that computers suck.