Skip to content

Commit 04b6624

Browse files
authored
[NEW] Py Pkg Gen with 92% Code Coverage
Release Version '1.12.3' into 'master' Branch
2 parents 276f9e8 + 8070e59 commit 04b6624

File tree

20 files changed

+349
-100
lines changed

20 files changed

+349
-100
lines changed

.github/workflows/load-to-rt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151

5252
- run: git checkout ${{ env.MAIN_BRANCH }}
5353
- run: git checkout -b ${{ env.BOARDING }}
54+
- run: git push origin --delete ${{ env.BOARDING }} || echo "Remote Branch '${{ env.BOARDING }}' does not exist"
5455

5556
- run: git config --global user.email "k.lampridis@hotmail.com"
5657
- run: git config --global user.name "Konstantinos Lampridis"

.github/workflows/merge-rt-in-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
merge_rt_in_release:
2929
# ALLOWED Head Branches
3030
# if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'boarding-auto')
31-
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
31+
# if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
32+
if: github.event_name == 'pull_request' && github.event.action == 'closed'
33+
# && github.event.pull_request.head.ref == 'boarding-auto' && github.event.pull_request.merged == true
34+
# github.event.pull_request.auto_merge_enabled
3235

3336
runs-on: ubuntu-latest
3437
env:
@@ -37,6 +40,10 @@ jobs:
3740
RELEASE_BR: 'release'
3841
MAIN_BR: 'master'
3942
steps:
43+
- run: 'echo "[DEBUG] github.event.pull_request.auto_merge_enabled --> ${{ github.event.pull_request.auto_merge_enabled }}"'
44+
- run: 'echo "github.event.pull_request --> ${{ github.event.pull_request }}"'
45+
- run: "echo \"[DEBUG] github.event.pull_request.merged: '${{ github.event.pull_request.merged == true }}', should be 'true'\""
46+
- run: "echo \"[DEBUG] github.head_ref: '${{ startsWith(github.head_ref, 'boarding-auto') }}', should be 'true'\""
4047
- run: "echo \"[DEBUG] HEAD: '${{ github.head_ref }}', should be 'boarding-auto'\""
4148
- run: "echo \"[DEBUG] BASE: '${{ github.base_ref }}', should be 'release-train'\""
4249

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ notes\.org~
3232
cookie-py\.log
3333
soft-rel\.log
3434
notes\.md
35+
36+
# LOGS generate by our python code
37+
38+
cookie-py.log

CHANGELOG.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@ Changelog
33
=========
44

55

6+
1.12.3 (2024-02-08)
7+
===================
8+
9+
**Improved Code Coverage.**
10+
11+
12+
Changes
13+
^^^^^^^
14+
15+
test
16+
""""
17+
- verify expected exceptions are thrown, in cases of errors, and add new sanitization test cases
18+
19+
chore
20+
"""""
21+
- chore(gitignore): update .gitignore
22+
23+
ci
24+
""
25+
- trigger Job of merge-rt-in-release only if github.event_name == 'pull_request' && github.event.pull_request.merged == true
26+
27+
release
28+
"""""""
29+
- bump version to 1.12.3
30+
31+
632
1.12.2 (2024-02-07)
733
===================
834

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ Free/Libre and Open Source Software (FLOSS)
275275

276276
.. Github Releases & Tags
277277
278-
.. |commits_since_specific_tag_on_master| image:: https://img.shields.io/github/commits-since/boromir674/cookiecutter-python-package/v1.12.2/master?color=blue&logo=github
278+
.. |commits_since_specific_tag_on_master| image:: https://img.shields.io/github/commits-since/boromir674/cookiecutter-python-package/v1.12.3/master?color=blue&logo=github
279279
:alt: GitHub commits since tagged version (branch)
280-
:target: https://github.com/boromir674/cookiecutter-python-package/compare/v1.12.2..master
280+
:target: https://github.com/boromir674/cookiecutter-python-package/compare/v1.12.3..master
281281

282282
.. |commits_since_latest_github_release| image:: https://img.shields.io/github/commits-since/boromir674/cookiecutter-python-package/latest?color=blue&logo=semver&sort=semver
283283
:alt: GitHub commits since latest release (by SemVer)

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
author = 'Konstantinos Lampridis'
3131

3232
# The full version, including alpha/beta/rc tags
33-
release = '1.12.2'
33+
release = '1.12.3'
3434

3535
# -- General configuration ---------------------------------------------------
3636

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build-backend = "poetry.core.masonry.api"
1010
## Also renders on pypi as 'subtitle'
1111
[tool.poetry]
1212
name = "cookiecutter_python"
13-
version = "1.12.2"
13+
version = "1.12.3"
1414
description = "1-click Generator of Python Project, from Template with streamlined \"DevOps\" using a powerful CI/CD Pipeline."
1515
authors = ["Konstantinos Lampridis <k.lampridis@hotmail.com>"]
1616
maintainers = ["Konstantinos Lampridis <k.lampridis@hotmail.com>"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '1.12.2'
1+
__version__ = '1.12.3'
22

33
from . import _logging # noqa

src/cookiecutter_python/backend/sanitization/interpreters_support.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# TODO Improvement: use an Enum
99

1010
SUPPORTED = {
11-
'3.5',
1211
'3.6',
1312
'3.7',
1413
'3.8',

src/cookiecutter_python/backend/sanitization/string_sanitizers/sanitize_reg_input.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import logging
3+
import typing as t
34
from typing import Pattern, Tuple
45

56
from ..input_sanitization import Sanitize
@@ -12,8 +13,8 @@
1213

1314

1415
class RegExSanitizer:
15-
regex: Pattern
16-
sanitizer: BaseSanitizer
16+
regex: t.ClassVar[Pattern]
17+
sanitizer: t.ClassVar[BaseSanitizer]
1718

1819
def __call__(self, data):
1920
self.sanitizer(data)

0 commit comments

Comments
 (0)