Skip to content

Define initial class for EAR claimset along with its unit test, setup tox for testing#3

Merged
thomas-fossati merged 4 commits into
veraison:mainfrom
HarshvMahawar:EAR-structure
Mar 3, 2025
Merged

Define initial class for EAR claimset along with its unit test, setup tox for testing#3
thomas-fossati merged 4 commits into
veraison:mainfrom
HarshvMahawar:EAR-structure

Conversation

@HarshvMahawar
Copy link
Copy Markdown
Collaborator

Defined initial class definition of EAR claimset and also set the tox environment for testing of the library

Signed-off-by: HarshvMahawar <hv062727@gmail.com>
@HarshvMahawar HarshvMahawar force-pushed the EAR-structure branch 3 times, most recently from 789c27e to 1420437 Compare February 28, 2025 19:47
Comment thread .gitignore Outdated
@@ -0,0 +1,26 @@
# Byte-compiled and cache files
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.

You are currently also committing *.pyc files. Consider using the following .gitignore: https://github.com/github/gitignore/blob/main/Python.gitignore

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

sure

Comment thread src/claims.py Outdated


class EARClaims:
def __init__(
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.

Have a look at dataclasses, no need to write then a lot of things yourself.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ya, dataclasses feature is really good! i will add it asap

Comment thread README.md
## Linting and static analysis

1. [flake8](https://pypi.org/project/flake8/)
2. [mypy](https://pypi.org/project/mypy/)
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.

Also take a look at pyright and pylint

Copy link
Copy Markdown
Collaborator Author

@HarshvMahawar HarshvMahawar Mar 1, 2025

Choose a reason for hiding this comment

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

yes, I have added those in the tests as well

… tox for testing

Signed-off-by: HarshvMahawar <hv062727@gmail.com>
Signed-off-by: HarshvMahawar <hv062727@gmail.com>
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.

This folder should not be in the repo

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

Signed-off-by: HarshvMahawar <hv062727@gmail.com>
@THS-on
Copy link
Copy Markdown
Member

THS-on commented Mar 3, 2025

Can you squash the commits together and then merge it?

@thomas-fossati thomas-fossati merged commit 34aebe8 into veraison:main Mar 3, 2025
@HarshvMahawar
Copy link
Copy Markdown
Collaborator Author

thanks @thomas-fossati for merging

@HarshvMahawar HarshvMahawar deleted the EAR-structure branch March 5, 2025 23:35
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.

3 participants