Skip to content

Commit

Permalink
Merge pull request #482 from MyElectricalData/vingerha-main
Browse files Browse the repository at this point in the history
chore: clean
  • Loading branch information
m4dm4rtig4n committed Feb 4, 2024
2 parents 988b9a6 + 5e1c2dd commit 211c2db
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 61 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/close_issue.old

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/issue_project.old

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/semantic_prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ jobs:

Semantic-Pre-Release:
uses: MyElectricalData/.github/.github/workflows/python_semantic_release.yaml@main
with:
PRE_RELEASE: true
4 changes: 1 addition & 3 deletions .github/workflows/semantic_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ on:
jobs:

Semantic-Release:
uses: MyElectricalData/.github/.github/workflows/python_semantic_release.yaml@main
with:
PRE_RELEASE: false
uses: MyElectricalData/.github/.github/workflows/python_semantic_release.yaml@main
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ data
.pytest_cache
.coverage
.tox
**/__pycache__/
**/__pycache__/
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ define title
@/bin/echo -e "\n------------------------------------------------\n${1}\n------------------------------------------------\n"
endef
define poetry
$(call title, ${2})
touch .env
poetry run -vvv ${1}
$(call title, ${2})
touch .env
~/.asdf/shims/poetry run -vvv ${1}
endef

check: check_asdf
Expand Down Expand Up @@ -108,11 +108,11 @@ debug: init enable_debug up bootstrap down

## Start all external ressource necessary to debug (MQTT, InfluxDB,...)
up:
docker compose -f dev/docker-compose.dev.yaml start
cd dev; docker compose up --force-recreate --detach; cd -

## Stop all external ressource necessary to debug (MQTT, InfluxDB,...)
down:
docker compose -f dev/docker-compose.dev.yaml stop
docker compose down

## Run PyTest only
test: pytest
Expand Down
File renamed without changes.
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ version_variables = [
]

[tool.semantic_release.branches.main]
match = "(main|master|feat/poetry)"
prerelease_token = "rc"
match = "(main|master)"
prerelease = false

[tool.semantic_release.branches."*"]
match = ".*"
prerelease = true
prerelease_token = "rc"

[tool.semantic_release.changelog]
template_dir = "templates"
Expand Down
2 changes: 1 addition & 1 deletion src/models/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def get_week(self, year, month=None, measure_type=None):
now_date = datetime.now(timezone.utc)
if month is None:
month = int(datetime.now().strftime("%m"))
#adapt for day in leap-year
# adapt for day in leap-year
if datetime.now().strftime("%m%d") == "0229" and int(year) != int(datetime.now().strftime("%Y")):
today = date.today() + timedelta(days=1)
else:
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 211c2db

Please sign in to comment.