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: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ repos:
files: ^stubs/stubs/
args: [--settings-file=stubs/tox.ini]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.7
rev: v1.7.8
hooks:
- id: docformatter
files: ^src/
args: [--config, tox.ini]
Comment on lines 37 to 39
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question (bug_risk): Consider whether removing language_version: python3.12 for docformatter is intentional, as it may change which interpreter the hook runs under.

Without language_version set, pre-commit will fall back to its default interpreter resolution, which can vary by machine (e.g., different python3 on PATH). If docformatter behavior or compatibility depends on Python 3.12, it’s safer to keep the explicit version to avoid environment‑dependent differences.

language_version: python3.12
- repo: https://github.com/coatl-dev/flake8
rev: 5.0.4
hooks:
Expand All @@ -64,7 +63,7 @@ repos:
exclude: ^src/(ch|com|org)/
args: [--config=tox.ini]
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.9
rev: v4.13.10
hooks:
- id: commitizen
- id: commitizen-branch
Expand Down
5 changes: 3 additions & 2 deletions src/system/bacnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def readRawMultiple(
propertyArrayIndices=None, # type: Optional[List[int]]
):
# type: (...) -> List[Any]
"""This function is the bulk version of system.bacnet.readRaw. Reads
properties from objects and returns a list of corresponding
"""This function is the bulk version of system.bacnet.readRaw.

Reads properties from objects and returns a list of corresponding
Encodable objects provided equal-length lists of object types,
object instance numbers, property ids, and property array indices.

Expand Down
5 changes: 3 additions & 2 deletions src/system/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,9 @@ def execUpdate(
project=None, # type: Union[str, unicode, None]
):
# type: (...) -> int
"""Executes an update query from a Named Query resource. If the
Named Query is through a Store and Forward system, use
"""Executes an update query from a Named Query resource.

If the Named Query is through a Store and Forward system, use
system.db.execUpdateAsync instead.

Args:
Expand Down
3 changes: 2 additions & 1 deletion src/system/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def getLogger(name):
def getModules():
# type: () -> BasicDataset
"""Returns a dataset of information about each installed module.

Each row represents a single module.

Returns:
Expand Down Expand Up @@ -653,7 +654,7 @@ def threadDump():
Returns:
The dump of the current running JVM.
"""
return unicode("""{0}\n "version": "{1}"...{2}""").format(
return unicode('{0}\n "version": "{1}"...{2}').format(
"{", getVersion().toParseableString(), "}"
)

Expand Down