Skip to content

Commit

Permalink
0.2.0 (#22)
Browse files Browse the repository at this point in the history
* Fix ExportWordConverter.e_year method (add space)
* Fix output bool values for export_syllable and export_type Exporter methods
* Fix BaseSyllable.allowed field (nullable=False)
* Update docs
* Hotfix Release 0.1.8.1
* Update Requirements
* ! Change Event attributes order
* Add BaseModel as Base and WordSelector directly from loglan_core module
* Update copyright year
* Improve flows
---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
torrua and github-actions[bot] authored Jan 9, 2024
1 parent e70700f commit ad8f075
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-tests.txt
pip install -r requirements.txt
pip install pylint
- name: Check with Pylint
run: |
pylint --fail-under=9.5 loglan_core
1 change: 0 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-tests.txt
pip install coverage
- name: Test with pytest
run: |
pytest --cov loglan_core
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability-percentage/torrua/loglan_core?logo=Code%20Climate)
[![Pylint](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml)
[![Pytest](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml)
![pylint](https://img.shields.io/badge/pylint-9.94-yellow?logo=python&logoColor=white)
![pylint](https://img.shields.io/badge/pylint-9.96-yellow?logo=python&logoColor=white)
![PyPI - Downloads](https://img.shields.io/pypi/dm/loglan_core?color=yellow)
![PyPI - Version](https://img.shields.io/pypi/v/loglan-core?logo=PyPi&logoColor=%23FFFFFF)
![GitHub License](https://img.shields.io/github/license/torrua/loglan_core)
Expand Down
2 changes: 1 addition & 1 deletion docs/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<dl>
<dt id="loglan_core.event.BaseEvent"><code class="flex name class">
<span>class <span class="ident">BaseEvent</span></span>
<span>(</span><span>date, name, definition, annotation, suffix)</span>
<span>(</span><span>name, date, definition, annotation, suffix)</span>
</code></dt>
<dd>
<div class="desc"><p>Base Event's DB Model</p>
Expand Down
4 changes: 3 additions & 1 deletion loglan_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

__author__ = "torrua"
__copyright__ = "Copyright 2023, loglan_core project"
__copyright__ = "Copyright 2024, loglan_core project"
__email__ = "torrua@gmail.com"

from loglan_core.author import BaseAuthor as Author
Expand All @@ -21,3 +21,5 @@
from loglan_core.word import BaseWord as Word
from loglan_core.word_source import BaseWordSource as WordSource
from loglan_core.word_spell import BaseWordSpell as WordSpell
from loglan_core.base import BaseModel as Base
from loglan_core.addons.word_selector import WordSelector
2 changes: 1 addition & 1 deletion loglan_core/addons/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""
This module contains an addons for BaseModels
"""
"""
10 changes: 5 additions & 5 deletions loglan_core/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ class BaseEvent(BaseModel):

def __init__(
self,
date: Mapped[datetime.date],
name: Mapped[str_064],
date: Mapped[datetime.date],
definition: Mapped[str],
annotation: Mapped[str_016],
suffix: Mapped[str_016],
):
super().__init__()
self.date = date
self.name = name
self.date = date
self.definition = definition
self.annotation = annotation
self.suffix = suffix
Expand All @@ -62,12 +62,12 @@ def __str__(self):
f"{self.name} ({self.date})>"
)

date: Mapped[datetime.date] = mapped_column(nullable=False)
"""*Event's starting day*
**dateime.date** : nullable=False, unique=False"""
name: Mapped[str_064] = mapped_column(nullable=False)
"""*Event's short name*
**str** : max_length=64, nullable=False, unique=False"""
date: Mapped[datetime.date] = mapped_column(nullable=False)
"""*Event's starting day*
**dateime.date** : nullable=False, unique=False"""
definition: Mapped[str] = mapped_column(Text, nullable=False)
"""*Event's definition*
**str** : nullable=False, unique=False"""
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ black~=23.12.1
mypy~=1.8.0
radon~=6.0.1
setuptools~=69.0.3
wheel~=0.42.0
wheel~=0.42.0
pylint~=3.0
3 changes: 1 addition & 2 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-r requirements.txt

coverage~=7.3
pylint~=3.0
coverage~=7.4
pytest-cov~=4.1
pytest~=7.4
scrutinizer-ocular~=1.0
Expand Down

0 comments on commit ad8f075

Please sign in to comment.