Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use enums instead of literals #81

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Use enums instead of literals #81

merged 1 commit into from
Nov 17, 2023

Conversation

robin-nitrokey
Copy link
Member

Using enums makes it easier to use the functions in a typesafe way and to validate user input.

Fixes: #69

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 22 lines in your changes are missing coverage. Please review.

Comparison is base (bcaaedb) 79.54% compared to head (f28c8c5) 79.43%.
Report is 1 commits behind head on main.

❗ Current head f28c8c5 differs from pull request most recent head 23eb940. Consider uploading reports for the commit 23eb940 to get more accurate results

Files Patch % Lines
nethsm/__init__.py 56.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
- Coverage   79.54%   79.43%   -0.12%     
==========================================
  Files         751      751              
  Lines       13255    13292      +37     
==========================================
+ Hits        10544    10558      +14     
- Misses       2711     2734      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Using enums makes it easier to use the functions in a typesafe way and
to validate user input.

Fixes: #69
@robin-nitrokey robin-nitrokey merged commit ee7c7ca into main Nov 17, 2023
6 checks passed
@robin-nitrokey robin-nitrokey deleted the enums branch November 17, 2023 12:26
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.

Use enums instead of string literals
1 participant