Skip to content

Conversation

@bramstoeller
Copy link
Contributor

When applying mypy, I noticed that we had some errors in our type hinting. I got confused in the forrest of Lists, Dicts, etcetera, so in an attempt to make the data structures a bit more understandable, I've introduced type aliases in data_types.py. I'm not sure this is better or even more readable, so please be critical in your review!

Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Base automatically changed from feature/isort to release/1.4 July 28, 2022 11:59
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
@TonyXiang8787
Copy link
Member

@bramstoeller also put all the checks in the pipeline.

https://github.com/alliander-opensource/power-grid-model/blob/feature/mypy/.github/workflows/black-and-clang-format.yml

modify the name to a more meaningful name of file, name of workflow and jobs

Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
TonyXiang8787
TonyXiang8787 previously approved these changes Aug 3, 2022
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
This reverts commit cf584f8.

Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
@bramstoeller bramstoeller enabled auto-merge August 3, 2022 13:41
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
Copy link
Member

@TonyXiang8787 TonyXiang8787 left a comment

Choose a reason for hiding this comment

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

In the README there is a badge for format check.

Now you changed the name of the workflow. Maybe you need to modify the badge.

Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

95.9% 95.9% Coverage
0.0% 0.0% Duplication

@TonyXiang8787 TonyXiang8787 disabled auto-merge August 4, 2022 08:34
@TonyXiang8787 TonyXiang8787 merged commit fa55ea6 into release/1.4 Aug 4, 2022
@TonyXiang8787 TonyXiang8787 deleted the feature/mypy branch August 4, 2022 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants