at long last, reformat all Python code with 2 space indents

This commit is contained in:
Dmytro Meleshko 2021-04-26 10:11:02 +03:00
parent 74e978d78e
commit dbd76019c8
19 changed files with 367 additions and 366 deletions

View File

@ -6,6 +6,8 @@ let s:ignored_errors = []
let s:ignored_errors += ['E111'] let s:ignored_errors += ['E111']
" Indent is not a multiple of 4 for comments " Indent is not a multiple of 4 for comments
let s:ignored_errors += ['E114'] let s:ignored_errors += ['E114']
" Indent for continuation lines is smaller than expected
let s:ignored_errors += ['E121']
" Line too long " Line too long
let s:ignored_errors += ['E501'] let s:ignored_errors += ['E501']

View File

@ -1,7 +1,8 @@
[style] [style]
based_on_style = google based_on_style = google
column_limit = 99 column_limit = 99
indent_width = 4 indent_width = 2
continuation_indent_width = 2
blank_lines_between_top_level_imports_and_variables = 2 blank_lines_between_top_level_imports_and_variables = 2
dedent_closing_brackets = true dedent_closing_brackets = true
coalesce_brackets = true coalesce_brackets = true

View File

@ -22,9 +22,7 @@ def get_system_info():
username = getuser() username = getuser()
hostname = _get_hostname() hostname = _get_hostname()
info_lines.append( info_lines.append(bright_colored(username, Fore.BLUE) + "@" + bright_colored(hostname, Fore.RED))
bright_colored(username, Fore.BLUE) + "@" + bright_colored(hostname, Fore.RED)
)
info_lines.append("") info_lines.append("")
distro_id, distro_name, distro_version, distro_codename = _get_distro_info() distro_id, distro_name, distro_version, distro_codename = _get_distro_info()