Update linting for utils

This commit is contained in:
Veronica Berglyd Olsen
2025-08-27 21:01:11 +02:00
parent c174f8f931
commit 44d117c91d
12 changed files with 17 additions and 78 deletions
+3 -6
View File
@@ -17,7 +17,7 @@ General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
""" # noqa
from __future__ import annotations
import argparse
@@ -155,17 +155,16 @@ def makeDebianPackage(
def debian(args: argparse.Namespace) -> None:
"""Build a .deb package"""
"""Build a .deb package."""
if sys.platform != "linux":
print("ERROR: Command 'build-deb' can only be used on Linux")
sys.exit(1)
signKey = SIGN_KEY if args.sign else None
makeDebianPackage(signKey)
return
def launchpad(args: argparse.Namespace) -> None:
"""Wrapper for building Debian packages for Launchpad."""
"""Build Debian packages for Launchpad."""
if sys.platform != "linux":
print("ERROR: Command 'build-ubuntu' can only be used on Linux")
sys.exit(1)
@@ -215,5 +214,3 @@ def launchpad(args: argparse.Namespace) -> None:
for dCmd in dputCmd:
print(f" > {dCmd}")
print("")
return