Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #22

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/PyCQA/isort
rev: "5.10.1"
rev: "5.13.2"
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/psf/black
rev: "22.10.0"
rev: "24.10.0"
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 7.1.1
hooks:
- id: flake8
# - repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
12 changes: 6 additions & 6 deletions sunglass/run_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def run_solar_cell_model(task, model):
# units
for key in current_element["options"]:
if key in ["element", "x"]:
layer_properties[
current_element["options"]["element"]
] = current_element["options"]["x"]
layer_properties[current_element["options"]["element"]] = (
current_element["options"]["x"]
)
else:
layer_properties[key] = (
current_element["options"][key] * ps.conversion[key]
Expand Down Expand Up @@ -122,9 +122,9 @@ def run_solar_cell_model(task, model):
# units
for key in current_child["options"]:
if key in ["element", "x"]:
layer_properties[
current_child["options"]["element"]
] = current_child["options"]["x"]
layer_properties[current_child["options"]["element"]] = (
current_child["options"]["x"]
)
else:
layer_properties[key] = (
current_child["options"][key] * ps.conversion[key]
Expand Down
6 changes: 3 additions & 3 deletions sunglass/solar_cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ def confirm_changes_to_junction(self, *args):
"""
item_id = self.solar_cell_list.focus()

junction_type = self.model["Solar cell"][item_id][
"name"
] = self.junction_type_var.get()
junction_type = self.model["Solar cell"][item_id]["name"] = (
self.junction_type_var.get()
)
name = self.model["Solar cell"][item_id]["name"] = self.junction_name_var.get()

options = ""
Expand Down
Loading