.flake8 809 Bytes
Newer Older
Dan Jones's avatar
Dan Jones committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
[flake8]
# Black formats code with max line length of 88
# Bugbears B950 warning allows lines to be 10% longer than flake8's max
max-line-length = 80

# Errors and warnings to report
select =
    C,
    E,
    F,
    W,
    B,
    # Allow max line length to be exceeded by 10% before warning.
    B950

# Errors and warnings to ignore
ignore =
    # Black puts space around slice operator which flake8 errors on.
    E203,
    # No error on max line length exceeded as B950 is doing this for us.
    E501,
    # Black puts line breaks before binary operators so don't warn this.
    W503
    B036
    E999

# Folders to ignore
exclude =
    .git,
    *.pyc,
    __pycache__,
    ./docker,
    ./docs,
    ./kustomize
    ./requirements.txt
    ./requirements-dev.txt
    ./CHANGELOG.md 
    ./CONTRIBUTING.md