Skip to content

Commit b2e4c98

Browse files
Merge pull request #851 from cordada/deploy/v0.50.0
Deploy release v0.50.0
2 parents 73b23da + 029763a commit b2e4c98

File tree

7 files changed

+38
-5
lines changed

7 files changed

+38
-5
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.49.0
2+
current_version = 0.50.0
33
commit = True
44
tag = False
55
message = chore: Bump version from {current_version} to {new_version}

.ecrc renamed to .editorconfig-checker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Verbose": false,
33
"Debug": false,
44
"IgnoreDefaults": false,
5-
"SpacesAftertabs": false,
5+
"SpacesAfterTabs": false,
66
"NoColor": false,
77
"Exclude": [],
88
"AllowedContentTypes": [],

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
make test-coverage-report
129129
130130
- name: Upload coverage reports to Codecov
131-
uses: codecov/[email protected]
131+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
132132
with:
133133
token: ${{ secrets.CODECOV_TOKEN }}
134134
directory: ./test-reports/coverage/

HISTORY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# History
22

3+
## 0.50.0 (2025-08-20)
4+
5+
- (PR #843, 2025-07-30) chore(task): Update editorconfig checker
6+
- (PR #844, 2025-08-01) Pin GitHub Action `codecov/codecov-action` to commit hash
7+
- (PR #848, 2025-08-20) rcv: Add RcTipoCompra enum to represent "Tipo de Compra" in RCV
8+
39
## 0.49.0 (2025-07-08)
410

511
- (PR #837, 2025-07-02) dte: Customize range of random folio in `DteNaturalKey.random()`

src/cl_sii/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
"""
66

7-
__version__ = '0.49.0'
7+
__version__ = '0.50.0'

src/cl_sii/rcv/constants.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@ class RcEstadoContable(enum.Enum):
9797
PENDIENTE = 'PENDIENTE'
9898

9999

100+
@enum.unique
101+
class RcTipoCompra(enum.Enum):
102+
"""
103+
Enum of "Tipo de Compra" for the RCV domain.
104+
"""
105+
106+
DEL_GIRO = "DEL_GIRO"
107+
"""Del Giro"""
108+
109+
NO_CORRESPONDE_INCLUIR = "NO_CORRESPONDE_INCLUIR"
110+
"""No corresponde incluir"""
111+
112+
100113
@enum.unique
101114
class RcvTipoDocto(enum.IntEnum):
102115
"""

src/tests/test_rcv_constants.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from cl_sii.dte.constants import TipoDte # noqa: F401
44
from cl_sii.rcv import constants # noqa: F401
5-
from cl_sii.rcv.constants import RcEstadoContable, RcvKind, RcvTipoDocto # noqa: F401
5+
from cl_sii.rcv.constants import RcEstadoContable, RcTipoCompra, RcvKind, RcvTipoDocto # noqa: F401
66

77

88
class RcvKindTest(unittest.TestCase):
@@ -48,6 +48,20 @@ def test_values_type(self) -> None:
4848
self.assertSetEqual({type(x.value) for x in RcEstadoContable}, {str})
4949

5050

51+
class RcTipoCompraTest(unittest.TestCase):
52+
def test_members(self) -> None:
53+
self.assertSetEqual(
54+
{x for x in RcTipoCompra},
55+
{
56+
RcTipoCompra.DEL_GIRO,
57+
RcTipoCompra.NO_CORRESPONDE_INCLUIR,
58+
},
59+
)
60+
61+
def test_values_type(self) -> None:
62+
self.assertSetEqual({type(x.value) for x in RcTipoCompra}, {str})
63+
64+
5165
class RcvTipoDoctoTest(unittest.TestCase):
5266
def test_members(self) -> None:
5367
self.assertSetEqual(

0 commit comments

Comments
 (0)