Skip to content

🏷️ Define the Gitmoji data model#8

Merged
paduszyk merged 5 commits intomainfrom
feature/no-ref/define-gitmoji-data-model
Nov 2, 2023
Merged

🏷️ Define the Gitmoji data model#8
paduszyk merged 5 commits intomainfrom
feature/no-ref/define-gitmoji-data-model

Conversation

@paduszyk
Copy link
Owner

@paduszyk paduszyk commented Nov 2, 2023

Description

This adds the gitmojis.model module defining two classes to represent the data model of the package, namely:

  • Gitmoji – a dataclass (PEP 557) representing single Gitmojis and their data;
  • Guide – a Python list (derived from collections.UserList) to represent a collection of (a "guide through") Gitmojis.

Currently, the classes don't implement any custom methods. Features like validation, custom iterators, and indexing/slicing are planned to be introduced in the future.

@paduszyk paduszyk added the feature New feature or request label Nov 2, 2023
@paduszyk paduszyk self-assigned this Nov 2, 2023
@codecov
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #8 (1219860) into main (98d0073) will increase coverage by 100.00%.
The diff coverage is 100.00%.

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

@@             Coverage Diff             @@
##           main        #8        +/-   ##
===========================================
+ Coverage      0   100.00%   +100.00%     
===========================================
  Files         0         2         +2     
  Lines         0        19        +19     
  Branches      0         2         +2     
===========================================
+ Hits          0        19        +19     
Files Coverage Δ
src/gitmojis/__init__.py 100.00% <100.00%> (ø)
src/gitmojis/model.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@paduszyk paduszyk merged commit a94eb4e into main Nov 2, 2023
@paduszyk paduszyk deleted the feature/no-ref/define-gitmoji-data-model branch November 2, 2023 16:17
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.

1 participant

Comments