mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-26 17:05:31 +01:00
68 lines
1.6 KiB
Python
68 lines
1.6 KiB
Python
"""Common profiles are defined here to be easily used within a project using --profile {name}"""
|
|
from typing import Any, Dict
|
|
|
|
black = {
|
|
"multi_line_output": 3,
|
|
"include_trailing_comma": True,
|
|
"force_grid_wrap": 0,
|
|
"use_parentheses": True,
|
|
"ensure_newline_before_comments": True,
|
|
"line_length": 88,
|
|
}
|
|
django = {
|
|
"combine_as_imports": True,
|
|
"include_trailing_comma": True,
|
|
"multi_line_output": 5,
|
|
"line_length": 79,
|
|
}
|
|
pycharm = {
|
|
"multi_line_output": 3,
|
|
"force_grid_wrap": 2,
|
|
"lines_after_imports": 2,
|
|
}
|
|
google = {
|
|
"force_single_line": True,
|
|
"force_sort_within_sections": True,
|
|
"lexicographical": True,
|
|
"single_line_exclusions": ("typing",),
|
|
"order_by_type": False,
|
|
"group_by_package": True,
|
|
}
|
|
open_stack = {
|
|
"force_single_line": True,
|
|
"force_sort_within_sections": True,
|
|
"lexicographical": True,
|
|
}
|
|
plone = {
|
|
"force_alphabetical_sort": True,
|
|
"force_single_line": True,
|
|
"lines_after_imports": 2,
|
|
"line_length": 200,
|
|
}
|
|
attrs = {
|
|
"atomic": True,
|
|
"force_grid_wrap": 0,
|
|
"include_trailing_comma": True,
|
|
"lines_after_imports": 2,
|
|
"lines_between_types": 1,
|
|
"multi_line_output": 3,
|
|
"use_parentheses": True,
|
|
}
|
|
hug = {
|
|
"multi_line_output": 3,
|
|
"include_trailing_comma": True,
|
|
"force_grid_wrap": 0,
|
|
"use_parentheses": True,
|
|
"line_length": 100,
|
|
}
|
|
|
|
profiles: Dict[str, Dict[str, Any]] = {
|
|
"black": black,
|
|
"django": django,
|
|
"pycharm": pycharm,
|
|
"google": google,
|
|
"open_stack": open_stack,
|
|
"plone": plone,
|
|
"attrs": attrs,
|
|
"hug": hug,
|
|
}
|