BE: linting fixes 4

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2025-11-22 21:20:46 +11:00
parent 872ac1ce0f
commit e3e7e2f52e
5 changed files with 14 additions and 12 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python
import json

View File

@@ -9,3 +9,10 @@ markers = [
"compose: Tests docker compose files. Slow.",
"feature_complete: extended coverage suite not run by default",
]
[tool.ruff]
line-length = 180
[tool.ruff.lint]
select = ["E", "F"]
extend-select = ["E402"]
ignore = ["E203", "C901"]

View File

@@ -1,4 +0,0 @@
[lint]
select = ["E", "F"] # or whatever you are using
# Add E402 so Ruff knows the noqa is legitimate
extend-select = ["E402"]

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

View File

@@ -679,14 +679,15 @@ def importConfigs(pm, db, all_plugins):
# ccd(key, default, config_dir, name, inputtype, options, group, events=None, desc="", setJsonMetadata=None, overrideTemplate=None, forceDefault=False)
ccd('VERSION', new_version , c_d, '_KEEP_', '_KEEP_', '_KEEP_', '_KEEP_', None, "_KEEP_", None, None, True)
write_notification(f'[Upgrade]: App upgraded from <code>{prev_version}</code> to \
write_notification(
f"""[Upgrade]: App upgraded from <code>{prev_version}</code> to \
<code>{new_version}</code> 🚀 Please clear the cache: \
<ol> <li>Click OK below</li> \
<li>Clear the browser cache (shift + browser refresh button)</li> \
<li> Clear app cache with the <i class="fa-solid fa-rotate"></i> (reload) button in the header</li>\
<li>Go to Settings and click Save</li> </ol>\
Check out new features and what has changed in the \
<a href="https://github.com/jokob-sk/NetAlertX/releases" target="_blank">📓 release notes</a>.',
<a href="https://github.com/jokob-sk/NetAlertX/releases" target="_blank">📓 release notes</a>.""",
'interrupt',
timeNowDB()
)