[CHORE] string formatting default length 88 (#1887)

* [CHORE] string formatting default length 88

uses blacks default off 88 and enabled autostringformatting

* formatting

* nitpicks jackstar

fix
This commit is contained in:
dni ⚡ 2023-08-24 11:26:09 +02:00 committed by GitHub
parent 2ab18544c3
commit 4e6f229db2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 245 additions and 160 deletions

View file

@ -103,11 +103,9 @@ testpaths = [
]
[tool.black]
# line-length = 150
# previously experimental-string-processing = true
# this should autoformat string poperly but does not work
line-length = 88
# use upcoming new features
# preview = true
target-versions = ["py39"]
extend-exclude = """(
lnbits/static
| lnbits/extensions
@ -116,14 +114,14 @@ extend-exclude = """(
)"""
[tool.ruff]
# Same as Black.
line-length = 150
# Same as Black. + 10% rule of black
line-length = 88
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
# (`I`) is for `isort`.
select = ["E", "F", "I"]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line length
]
# Allow autofix for all enabled rules (when `--fix`) is provided.