Skip to content

Commit 363b444

Browse files
authored
Merge pull request #452 from Der-Henning/dev
Bump Version 1.20.1
2 parents 25b4477 + c6ff929 commit 363b444

File tree

6 files changed

+106
-1743
lines changed

6 files changed

+106
-1743
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
args: [--profile, black]
2626

2727
- repo: https://github.com/PyCQA/flake8
28-
rev: 6.1.0
28+
rev: 7.0.0
2929
hooks:
3030
- id: flake8
3131
args: [--max-line-length, '130']

poetry.lock

+87-1,733
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name = "tgtg-scanner"
1212
packages = [{include = "tgtg_scanner"}]
1313
readme = "README.md"
1414
repository = "https://github.com/Der-Henning/tgtg"
15-
version = "1.20.0"
15+
version = "1.20.1"
1616

1717
[tool.poetry.dependencies]
1818
apprise = "^1.4.0"
@@ -32,10 +32,6 @@ requests = "^2.31.0"
3232
[tool.poetry.group.build.dependencies]
3333
pyinstaller = "^6.3.0"
3434

35-
[tool.poetry.group.dev.dependencies]
36-
ipykernel = "^6.25.1"
37-
notebook = "^7.0.6"
38-
3935
[tool.poetry.group.test.dependencies]
4036
pre-commit = "^3.3.3"
4137
pytest = "^7.4.0"

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ pyyaml==6.0.1 ; python_version >= "3.9" and python_version < "3.13" \
187187
--hash=sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4 \
188188
--hash=sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba \
189189
--hash=sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8 \
190+
--hash=sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef \
190191
--hash=sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5 \
191192
--hash=sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd \
192193
--hash=sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3 \

tgtg_scanner/models/config.py

+12
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,21 @@ def _read_ini(self, parser: configparser.ConfigParser):
209209
self._ini_get(parser, "PUSHSAFER", "DeviceID", "device_id")
210210

211211
def _read_env(self):
212+
if environ.get("PUSH_SAFER", None):
213+
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER", "PUSHSAFER"))
214+
self._env_get_boolean("PUSH_SAFER", "enabled")
212215
self._env_get_boolean("PUSHSAFER", "enabled")
216+
if environ.get("PUSH_SAFER_CRON", None):
217+
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER_CRON", "PUSHSAFER_CRON"))
218+
self._env_get_cron("PUSH_SAFER_CRON", "cron")
213219
self._env_get_cron("PUSHSAFER_CRON", "cron")
220+
if environ.get("PUSH_SAFER_KEY", None):
221+
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER_KEY", "PUSHSAFER_KEY"))
222+
self._env_get("PUSH_SAFER_KEY", "key")
214223
self._env_get("PUSHSAFER_KEY", "key")
224+
if environ.get("PUSH_SAFER_DEVICE_ID", None):
225+
log.warning(DEPRECIATION_WARNING.format("PUSH_SAFER_DEVICE_ID", "PUSHSAFER_DEVICE_ID"))
226+
self._env_get("PUSH_SAFER_DEVICE_ID", "device_id")
215227
self._env_get("PUSHSAFER_DEVICE_ID", "device_id")
216228

217229

wiki/Configuration.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ You can combine multiple crons as semicolon separated list.
132132

133133
| config.ini | environment | description | default | required if enabled | variables |
134134
|------------|-------------|-------------|---------|:-------------------:|:---------:|
135-
| Enabled | PUSH_SAFER | enable Pushsafer notifications | `false` |
136-
| Key | PUSH_SAFER_KEY | Pushsafer API key | | YES |
137-
| DeviceID | PUSH_SAFER_DEVICE_ID | Pushsafer device ID | | YES |
138-
| Cron | PUSH_SAFER_CRON | enable notification only on schedule | `* * * * *` |
135+
| Enabled | PUSHSAFER | enable Pushsafer notifications | `false` |
136+
| Key | PUSHSAFER_KEY | Pushsafer API key | | YES |
137+
| DeviceID | PUSHSAFER_DEVICE_ID | Pushsafer device ID | | YES |
138+
| Cron | PUSHSAFER_CRON | enable notification only on schedule | `* * * * *` |
139139

140140
### [IFTTT] / IFTTT Notifier
141141

0 commit comments

Comments
 (0)