Skip to content

update docstrings and more linter based fixes - #379

Merged
adeas31 merged 18 commits into
OpenModelica:masterfrom
syntron:docstrings
Nov 21, 2025
Merged

update docstrings and more linter based fixes#379
adeas31 merged 18 commits into
OpenModelica:masterfrom
syntron:docstrings

Conversation

@syntron

@syntron syntron commented Nov 16, 2025

Copy link
Copy Markdown
Contributor
  • add docstrings to OMCSession.py
  • run pylint & fix messages

best in combination with PR #376

@syntron

syntron commented Nov 19, 2025

Copy link
Copy Markdown
Contributor Author

this should close issue #372

* OMPython/OMCSession.py:615:12: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
* OMPython/OMCSession.py:835:12: W0621: Redefining name 'ex' from outer scope (line 831) (redefined-outer-name)
OMPython/OMCSession.py:1106:8: C0103: Attribute name "_dockerExtraArgs" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1107:8: C0103: Attribute name "_dockerOpenModelicaPath" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1108:8: C0103: Attribute name "_dockerNetwork" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1110:8: C0103: Attribute name "_interactivePort" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1112:8: C0103: Attribute name "_dockerCid" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1121:12: C0103: Variable name "dockerTop" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1282:8: C0103: Variable name "extraFlags" doesn't conform to snake_case naming style (invalid-name)
OMPython/OMCSession.py:1297:12: C0103: Variable name "dockerNetworkStr" doesn't conform to snake_case naming style (invalid-name)

@adeas31 adeas31 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good!

Comment thread OMPython/ModelicaSystem.py Outdated
@adeas31
adeas31 enabled auto-merge (squash) November 21, 2025 23:09
@adeas31
adeas31 merged commit 8926af4 into OpenModelica:master Nov 21, 2025
15 of 27 checks passed
@syntron
syntron deleted the docstrings branch November 22, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants