Skip to content

update usage of flake8 - #357

Merged
adeas31 merged 6 commits into
OpenModelica:masterfrom
syntron:flake8
Nov 5, 2025
Merged

update usage of flake8#357
adeas31 merged 6 commits into
OpenModelica:masterfrom
syntron:flake8

Conversation

@syntron

@syntron syntron commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

pyproject.toml was introduced in #246; however setup.py is still used for flake8 configuration

This PR
(1) removes the file setup.py (by using Flake8-pyproject)
and
(2) fixes all remaining flake8 warnings (which were deactivated via options)

Additionally, OMTypedParser is updated; this part could be removed / reduced if requested

Milestone: 4.1.0

@adeas31

adeas31 commented Nov 3, 2025

Copy link
Copy Markdown
Member

Please rebase.

@syntron

syntron commented Nov 4, 2025

Copy link
Copy Markdown
Contributor Author

Please rebase.

Done; see also #361 for an overview

@adeas31
adeas31 enabled auto-merge (squash) November 5, 2025 12:17
@adeas31
adeas31 merged commit 70cb446 into OpenModelica:master Nov 5, 2025
14 checks passed
@syntron
syntron deleted the flake8 branch November 5, 2025 13:48
syntron added a commit to syntron/OMPython that referenced this pull request Feb 5, 2026
flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)
syntron added a commit to syntron/OMPython that referenced this pull request Feb 6, 2026
flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)
syntron added a commit to syntron/OMPython that referenced this pull request Feb 7, 2026
flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)
syntron added a commit to syntron/OMPython that referenced this pull request Feb 8, 2026
flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)
syntron added a commit to syntron/OMPython that referenced this pull request Feb 9, 2026
flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)
syntron added a commit to syntron/OMPython that referenced this pull request Feb 18, 2026
flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)
syntron added a commit to syntron/OMPython that referenced this pull request Feb 26, 2026
flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)
syntron added a commit to syntron/OMPython that referenced this pull request Apr 1, 2026
add workflow to run unittests in ./tests

tests from v4.0.0

fix test_linearization from v4.0.0

flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)

fix test_ModelicaSystem - needed adaptions:

* convert OMCPath to pathlib.Path
* use correct exceptions

define test workflows for v400
syntron added a commit to syntron/OMPython that referenced this pull request Apr 14, 2026
add workflow to run unittests in ./tests

tests from v4.0.0

fix test_linearization from v4.0.0

flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)

fix test_ModelicaSystem - needed adaptions:

* convert OMCPath to pathlib.Path
* use correct exceptions

define test workflows for v400
syntron added a commit to syntron/OMPython that referenced this pull request Apr 16, 2026
add workflow to run unittests in ./tests

tests from v4.0.0

fix test_linearization from v4.0.0

flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)

fix test_ModelicaSystem - needed adaptions:

* convert OMCPath to pathlib.Path
* use correct exceptions

define test workflows for v400
syntron added a commit to syntron/OMPython that referenced this pull request Apr 17, 2026
add workflow to run unittests in ./tests

tests from v4.0.0

fix test_linearization from v4.0.0

flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)

fix test_ModelicaSystem - needed adaptions:

* convert OMCPath to pathlib.Path
* use correct exceptions

define test workflows for v400
syntron added a commit to syntron/OMPython that referenced this pull request Apr 30, 2026
add workflow to run unittests in ./tests

tests from v4.0.0

fix test_linearization from v4.0.0

flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (OpenModelica#357)' (SHA1: 70cb446)

fix test_ModelicaSystem - needed adaptions:

* convert OMCPath to pathlib.Path
* use correct exceptions

define test workflows for v400
adeas31 added a commit that referenced this pull request May 11, 2026
* (D006) small fixes in ModelicaSystem

[ModelicaSystemABC] reorder code in __init__()

[ModelicaSystem*] linter fixes

* (D008) add v4.0.0 compatibility layer

[OMTypedParser] compatibility layer

[__init__/OMCSession] prepare compatibility layer

[ModelicaSystem] define as compatibility layer

[ModelicaSystemCmd] define as compatibility layer

* (D007) define unittest / workflow for v4.0.0

add workflow to run unittests in ./tests

tests from v4.0.0

fix test_linearization from v4.0.0

flake8 error: test_linearization.py:71:5: E741 ambiguous variable name 'l'

this was fixed in: 'update usage of flake8 (#357)' (SHA1: 70cb446)

fix test_ModelicaSystem - needed adaptions:

* convert OMCPath to pathlib.Path
* use correct exceptions

define test workflows for v400

* cleanup github workflow - use the default one to run all tests

* fix name for v4.0.0 test - test*s*_v400

* update name / title for unittest tests_v400

* Increase timeout to 45 minutes

---------

Co-authored-by: Adeel Asghar <adeel.asghar@liu.se>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants