[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:
parent
2ab18544c3
commit
4e6f229db2
34 changed files with 245 additions and 160 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue