Skip to content

Instantly share code, notes, and snippets.

@Mgancita
Created February 8, 2022 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mgancita/98a9b3b5a23e7a42f34de197d381e584 to your computer and use it in GitHub Desktop.
Save Mgancita/98a9b3b5a23e7a42f34de197d381e584 to your computer and use it in GitHub Desktop.
.flake8 for CI/CD
# -------------------------------------------------------
# Full list of errors & violation codes
# -------------------------------------------------------
# http://www.pydocstyle.org/en/latest/error_codes.html
# http://flake8.pycqa.org/en/latest/user/error-codes.html
# -------------------------------------------------------
# D202: No blank lines allowed after function docstring (Conflicts with Black.
# Being addressed here: https://github.com/PyCQA/pydocstyle/pull/395)
# D203: 1 blank line required before class docstring. (Change in standard
# https://github.com/PyCQA/pydocstyle/pull/91)
# E203: whitespace before ':' (not pep8 compliant according to Black)
# W503: line break before binary operator (not pep8 compliant according to Black)
[flake8]
ignore = D202, D203, E203, W503
max-line-length = 100
exclude =
.git,
docs,
node_modules
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs
max-complexity = 10
import-order-style = google
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment