Format using ruff formatter

This commit is contained in:
Eric Torres 2024-03-02 17:42:26 -08:00
parent 2828e30e2e
commit cb8f9fc9c2
5 changed files with 5 additions and 12 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
""" Add packages to a repository. """Add packages to a repository.
Functions: Functions:
========== ==========

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
""" Delete packages from a repository. """Delete packages from a repository.
Functions: Functions:
========== ==========

View File

@ -27,6 +27,7 @@ CONFIG_OPTION_ID = "GIST_ID"
DESCRIPTION = "Send a list of explicitly installed pacman packages to a gist" DESCRIPTION = "Send a list of explicitly installed pacman packages to a gist"
# ========== Functions ========== # ========== Functions ==========
def extract_gist_id(url): def extract_gist_id(url):
"""Extract the gist id from a gist URL. """Extract the gist id from a gist URL.

View File

@ -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 ========== # ========== Constants ==========
TESTING_MODULE = f"packaging_scripts.pacman" TESTING_MODULE = "packaging_scripts.pacman"
# ========== Unit Tests ========== # ========== Unit Tests ==========

View File

@ -10,7 +10,7 @@ from unittest.mock import MagicMock, patch
# ========== Constants ========== # ========== Constants ==========
TESTING_MODULE = f"packaging_scripts.pkgfiles" TESTING_MODULE = "packaging_scripts.pkgfiles"
# Match any pkgfile of any name with the .pkg.tar.* extension # Match any pkgfile of any name with the .pkg.tar.* extension
PKGREGEX = r"^[\w.+/-]+\.pkg\.tar(\.\w+)?$" PKGREGEX = r"^[\w.+/-]+\.pkg\.tar(\.\w+)?$"
# Match any sigfile of any name with the .pkg.tar.*.sig extension # Match any sigfile of any name with the .pkg.tar.*.sig extension