Format using ruff formatter
This commit is contained in:
parent
2828e30e2e
commit
cb8f9fc9c2
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/python3
|
||||
""" Add packages to a repository.
|
||||
"""Add packages to a repository.
|
||||
|
||||
Functions:
|
||||
==========
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/python3
|
||||
""" Delete packages from a repository.
|
||||
"""Delete packages from a repository.
|
||||
|
||||
Functions:
|
||||
==========
|
||||
|
1
bin/pug2
1
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.
|
||||
|
@ -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 ==========
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user