Skip to content

Commit

Permalink
Deps: Bump black from 22.12.0 to 23.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier authored Jun 27, 2023
2 parents 3bb8ccd + caea147 commit c224c51
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 20 deletions.
3 changes: 1 addition & 2 deletions pheme/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __process_form_data(request: HttpRequest, data: Dict) -> Dict:
"Request data is expected to be a dict, "
f"but it is {type(request.data)}"
)
for (key, value) in request.data.items():
for key, value in request.data.items():
if isinstance(value, UploadedFile):
file_type, _ = mimetypes.guess_type(value.name)
logger.info(
Expand Down Expand Up @@ -151,7 +151,6 @@ def __process_single_value(request: HttpRequest, data: Dict) -> Dict:
]
)
def put(request: HttpRequest) -> Response:

if request.content_type == "application/json":
return __put(request, __process_json_object)
return __put(request, __process_form_data)
1 change: 0 additions & 1 deletion pheme/templatetags/charts/h_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def h_bar_chart(
font_family="Dejavu Sans",
font_size=10,
) -> SafeText:

"""
Returns a stacked horizontal bar chart in svg.
Expand Down
2 changes: 1 addition & 1 deletion pheme/templatetags/charts/pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def pie_chart(
dash_array = circumference - border_size

donut = ""
for (category, amount) in input_values.items():
for category, amount in input_values.items():
percent = amount / total
color = title_color.get(category)
dash_offset = circumference - percent * circumference
Expand Down
44 changes: 29 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pytest-env = "^0.8.1"
autohooks = "^23.1.0"
autohooks-plugin-pylint = "^22.8.1"
autohooks-plugin-black = {version = "^22.11.0", python = "^3.6"}
black = {version = "22.12.0", python = "^3.6"}
black = {version = "23.3.0", python = "^3.6"}
rope = ">=0.17,<1.9"
pontos = ">=21.6.3"

Expand Down

0 comments on commit c224c51

Please sign in to comment.