Skip to content

Instantly share code, notes, and snippets.

@colmjude
Last active September 19, 2022 13:58
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 colmjude/7cd1a57609a636b3cd2fb65bd5ece182 to your computer and use it in GitHub Desktop.
Save colmjude/7cd1a57609a636b3cd2fb65bd5ece182 to your computer and use it in GitHub Desktop.
Python project files
[flake8]
max-line-length = 120
; W291 Trailing whitespace
; E203 Whitespace before ':'
; W503 Line break occurred before a binary operator
ignore = W291, E203, W503
exclude =
__pycache__
node_modules
.venv
migrations
; vim: ft=dosini
init::
python -m pip install --upgrade pip
pip install -r requirements.txt
black:
black .
black-check:
black --check .
flake8:
flake8 --exclude .venv,node_modules
isort:
isort --profile black .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment