Skip to content

Commit 8401ea9

Browse files
committed
pre-commit autoupdate + Ruff autofixes
1 parent be85fbb commit 8401ea9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: pycln
1818
args: [--config=pyproject.toml]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.9.9
20+
rev: v0.11.8
2121
hooks:
2222
- id: ruff
2323
args:

simpeg_drivers/components/factories/directives_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def assemble_data_keywords_potential_fields(
535535
channels = [None]
536536
kwargs = {
537537
"data_type": {
538-
comp: {channel: dtype for channel in channels}
538+
comp: dict.fromkeys(channels, dtype)
539539
for comp, dtype in inversion_object.observed_data_types.items()
540540
},
541541
"transforms": [
@@ -587,7 +587,7 @@ def assemble_data_keywords_dcip(
587587
component = "dc" if is_dc else "ip"
588588
kwargs = {
589589
"data_type": {
590-
comp: {channel: dtype for channel in channels}
590+
comp: dict.fromkeys(channels, dtype)
591591
for comp, dtype in inversion_object.observed_data_types.items()
592592
},
593593
"transforms": [

simpeg_drivers/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def property_group_data(self, property_group: PropertyGroup):
428428
"""
429429
frequencies = self.data_object.channels
430430
if property_group is None:
431-
return {f: None for f in frequencies}
431+
return dict.fromkeys(frequencies)
432432

433433
data = {}
434434
group = next(

0 commit comments

Comments
 (0)