Tags: #autopep8 #black #python #format
[pep8]
max_line_length = 80
autopep8 --experimental --verbose --aggressive --aggressive --recursive --diff .
# replace --diff with --in-place to actually apply the changes
# to install black via poetry use:
#
# poetry add --dev --allow-prereleases black
#
# which generates:
#
# black = {version = "^18.3-alpha.0",allows-prereleases = true}
#
# but notice the value below is slightly different, which iirc is because we used a different version of Python which needed to be defined?
#
# but using the --allow-prereleases flag on the command line worked for me on a fresh project so :shrugs:
[tool.poetry]
name = "3.7.3"
version = "0.1.0"
description = ""
authors = ["Integralist"]
[tool.poetry.dependencies]
python = "^3.7"
boto3 = "^1.9"
pytest = "^4.4"
structlog = "^19.1"
tornado = "^6.0"
requests = "^2.21"
[tool.poetry.dev-dependencies]
black = { python=">3.6", version=">=19.3b0", allow_prereleases=true}
flake8 = "^3.7"
flake8-import-order = "^0.18.1"
mypy = "^0.701.0"
tox = "^3.9"
ipython = "^7.5"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"