Skip to content
Merged
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
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
exclude: ^(doc/_build|venv|.venv|.git|pymodbus/client/serial_asyncio)
# run ruff with --fix before black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.261'
Expand Down
8 changes: 6 additions & 2 deletions pymodbus/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@
ReportSlaveIdRequest,
ReportSlaveIdResponse,
)
from pymodbus.pdu import ExceptionResponse, IllegalFunctionRequest
from pymodbus.pdu import (
ExceptionResponse,
IllegalFunctionRequest,
ModbusRequest,
ModbusResponse,
)
from pymodbus.pdu import ModbusExceptions as ecode
from pymodbus.pdu import ModbusRequest, ModbusResponse
from pymodbus.register_read_message import (
ReadHoldingRegistersRequest,
ReadHoldingRegistersResponse,
Expand Down
7 changes: 7 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ select = [
"SIM300",
"SIM401",
"RUF",
"I",
"U",
]
[pydocstyle]
convention = "pep257"
[isort]
lines-after-imports = 2
known-local-folder = [
"common",
"contrib",
]