Format using ruff formatter
This commit is contained in:
parent
2828e30e2e
commit
cb8f9fc9c2
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"
|
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.
|
||||||
|
@ -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 ==========
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user