mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
switch python autoformatter to isort+black+autoflake
This commit is contained in:
parent
f85e7ce880
commit
add199a08b
12
setup.cfg
12
setup.cfg
@ -1,19 +1,11 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 160
|
max-line-length = 160
|
||||||
builtins = _,__,P,I,lopen,icu_lower,icu_upper,icu_title,ngettext,connect_lambda
|
builtins = _,__,P,I,lopen,icu_lower,icu_upper,icu_title,ngettext,connect_lambda
|
||||||
ignore = E12,E203,E22,E231,E241,E401,E402,E731,W391,E722,E741,W504
|
ignore = E12,E203,E22,E231,E241,E401,E402,E503,E731,W391,E722,E741,W504,W203
|
||||||
|
|
||||||
[yapf]
|
|
||||||
based_on_style = pep8
|
|
||||||
column_limit = 85
|
|
||||||
split_penalty_import_names = 100
|
|
||||||
dedent_closing_brackets = True
|
|
||||||
coalesce_brackets = True
|
|
||||||
blank_line_before_nested_class_or_def = True
|
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
|
profile = black
|
||||||
combine_as_imports = True
|
combine_as_imports = True
|
||||||
line_length = 85
|
|
||||||
multi_line_output = 5
|
multi_line_output = 5
|
||||||
known_future_library = __python__
|
known_future_library = __python__
|
||||||
known_third_party = qt
|
known_third_party = qt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user