Skip to content

Commit ffdcc8e

Browse files
RPLclaude
andcommitted
chore: update pre-commit hooks and apply auto-fixes
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 640d137 commit ffdcc8e

9 files changed

Lines changed: 14 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/kynan/nbstripout
15-
rev: 0.6.1
15+
rev: 0.9.1
1616
hooks:
1717
- id: nbstripout
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
1919
# Ruff version.
20-
rev: v0.14.1
20+
rev: v0.15.14
2121
hooks:
2222
# Run the linter.
2323
- id: ruff

scripts/delete_all_runs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""delete all runs"""
2+
23
from argparse import ArgumentParser
34

45
import requests

src/ot2_interface/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Stores dataclasses/args/config for the ot2 drivers"""
2+
23
import json
34
from argparse import ArgumentParser, Namespace
45
from pathlib import Path

src/ot2_interface/protopiler/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Dataclasses and other configuration used in the protopiler"""
2+
23
from pathlib import Path
34
from typing import List, Literal, Optional, TypeVar, Union
45

src/ot2_interface/protopiler/deconstructor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Deconstructor, parses a protocol and turns it into a config"""
2+
23
import re
34
import subprocess
45
from argparse import ArgumentParser

src/ot2_interface/protopiler/protopiler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Protopiler is designed to compile a config yaml into a working protocol"""
2+
23
import argparse
34
import copy
45
from datetime import datetime
@@ -7,6 +8,7 @@
78
from typing import Dict, Generator, List, Optional, Tuple, Union
89

910
import pandas as pd
11+
1012
from ot2_interface.protopiler.config import (
1113
Clear_Pipette,
1214
CommandBase,
@@ -501,7 +503,7 @@ def yaml_to_protocol(
501503
"#location#", f'"{location}"'
502504
)
503505
labware_command = labware_command.replace(
504-
"#nickname#", f'{"module"}'
506+
"#nickname#", f"{'module'}"
505507
)
506508
labware_command = labware_command.replace(
507509
"#labware_name#", f'"{name}"'

src/ot2_interface/protopiler/resource_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Class to manage/keep track of resources used by a protocol"""
2+
23
import json
34
import re
45
from argparse import ArgumentParser

src/ot2_interface/protopiler/test_configs/basic_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""basic config module"""
2+
23
from opentrons import protocol_api
34

45
metadata = {

src/ot2_rest_node.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
from madsci.common.types.resource_types import Container, Pool, Slot, Stack
1010
from madsci.node_module.helpers import action
1111
from madsci.node_module.rest_node_module import RestNode
12-
from ot2_interface.ot2_driver_http import OT2_Config, OT2_Driver
1312
from typing_extensions import Annotated
1413

14+
from ot2_interface.ot2_driver_http import OT2_Config, OT2_Driver
15+
1516

1617
class OT2NodeConfig(RestNodeConfig):
1718
"""Configuration for the OT2 node module."""
@@ -429,9 +430,7 @@ def execute(self, protocol_path, payload=None, resource_config=None):
429430
try:
430431
protocol_id, run_id = self.ot2_interface.transfer(protocol_file_path)
431432
self.logger.log(
432-
"OT2 "
433-
+ self.node_info.node_name
434-
+ " protocol transfer successful"
433+
"OT2 " + self.node_info.node_name + " protocol transfer successful"
435434
)
436435

437436
self.run_id = run_id

0 commit comments

Comments
 (0)