Skip to content

Code quality improvements: Use new enums of dataset and component type#295

Merged
nitbharambe merged 18 commits intomainfrom
feature/use-enum
Jun 20, 2025
Merged

Code quality improvements: Use new enums of dataset and component type#295
nitbharambe merged 18 commits intomainfrom
feature/use-enum

Conversation

@zhen0427
Copy link
Member

No description provided.

Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Co-authored-by: Martijn Govers <martijn.govers@alliander.com>
Signed-off-by: Zhen Wang <Zhen.Wang@alliander.com>
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@mgovers
Copy link
Member

mgovers commented Apr 24, 2025

failing sonar cloud seems to be an internal error or another backwards incompatible change
image

Signed-off-by: Zhen Wang <Zhen.Wang@alliander.com>
@zhen0427 zhen0427 added feature New feature or request labels Jun 13, 2025
zhen0427 added 4 commits June 13, 2025 10:44
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
@zhen0427 zhen0427 marked this pull request as ready for review June 13, 2025 09:02
@mgovers mgovers changed the title feat: Use new enums of dataset and component type Code quality improvements: Use new enums of dataset and component type Jun 13, 2025
Copy link
Member

@figueroa1395 figueroa1395 left a comment

Choose a reason for hiding this comment

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

There are some files that have some strs left, such as in:

  • test_pandapower_converter_input.py
  • test_pgm_json_converter.py
  • base_converter.py
  • pandapower_converter.py
  • possibly others

In addition, it may also be a good idea to edit the docstrings and replace there the raw strs as well.

figueroa1395

This comment was marked as duplicate.

zhen0427 added 2 commits June 16, 2025 09:49
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
zhen0427 added 3 commits June 18, 2025 10:34
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Signed-off-by: zhen0427 <Zhen.Wang@alliander.com>
Copy link
Member

@mgovers mgovers left a comment

Choose a reason for hiding this comment

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

LGTM

@mgovers
Copy link
Member

mgovers commented Jun 20, 2025

@figueroa1395 can you please make CI pass?

Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
@figueroa1395
Copy link
Member

figueroa1395 commented Jun 20, 2025

@figueroa1395 can you please make CI pass?

Addressed. Let me quickly review then and if I have nothing to add, I'll ask for your approval.

Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
Co-authored-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com>
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
Copy link
Member

@nitbharambe nitbharambe left a comment

Choose a reason for hiding this comment

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

  • Checked that pandapower's pgm tests pass.

@nitbharambe nitbharambe enabled auto-merge June 20, 2025 12:47
@sonarqubecloud
Copy link

@nitbharambe nitbharambe added this pull request to the merge queue Jun 20, 2025
Merged via the queue into main with commit cd4d6a8 Jun 20, 2025
31 checks passed
@nitbharambe nitbharambe deleted the feature/use-enum branch June 20, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants