diff --git a/bin/addpkg b/bin/addpkg index 2f07fcf..7ca2125 100644 --- a/bin/addpkg +++ b/bin/addpkg @@ -1,5 +1,5 @@ #!/usr/bin/python3 -""" Add packages to a repository. +"""Add packages to a repository. Functions: ========== diff --git a/bin/delpkg b/bin/delpkg index a88fece..777cffb 100644 --- a/bin/delpkg +++ b/bin/delpkg @@ -1,5 +1,5 @@ #!/usr/bin/python3 -""" Delete packages from a repository. +"""Delete packages from a repository. Functions: ========== diff --git a/bin/pug2 b/bin/pug2 index 672061d..ac7e8d2 100644 --- a/bin/pug2 +++ b/bin/pug2 @@ -27,6 +27,7 @@ CONFIG_OPTION_ID = "GIST_ID" DESCRIPTION = "Send a list of explicitly installed pacman packages to a gist" + # ========== Functions ========== def extract_gist_id(url): """Extract the gist id from a gist URL. diff --git a/tests/test_pacman.py b/tests/test_pacman.py index 582f1c7..c6901f4 100755 --- a/tests/test_pacman.py +++ b/tests/test_pacman.py @@ -1,16 +1,8 @@ -import packaging_scripts.pacman as pacman -import re -import unittest -from hypothesis import given -from hypothesis.strategies import iterables, text -from pathlib import Path -from types import GeneratorType -from unittest.mock import MagicMock, patch # ========== Constants ========== -TESTING_MODULE = f"packaging_scripts.pacman" +TESTING_MODULE = "packaging_scripts.pacman" # ========== Unit Tests ========== diff --git a/tests/test_pkgfiles.py b/tests/test_pkgfiles.py index 672ac99..6c82b56 100644 --- a/tests/test_pkgfiles.py +++ b/tests/test_pkgfiles.py @@ -10,7 +10,7 @@ from unittest.mock import MagicMock, patch # ========== Constants ========== -TESTING_MODULE = f"packaging_scripts.pkgfiles" +TESTING_MODULE = "packaging_scripts.pkgfiles" # Match any pkgfile of any name with the .pkg.tar.* extension PKGREGEX = r"^[\w.+/-]+\.pkg\.tar(\.\w+)?$" # Match any sigfile of any name with the .pkg.tar.*.sig extension