Format code with black and isort

```
isort .
black -C . $(grep -l -r '^#! */usr/bin/python3$' .)
```
This commit is contained in:
Benjamin Drung 2025-12-03 12:01:23 +01:00
parent dff0b269d2
commit c6a4c10da2
3 changed files with 7 additions and 4 deletions

View File

@ -473,7 +473,7 @@ def is_blocklisted(query):
continue continue
applicable_lines.append(line) applicable_lines.append(line)
try: try:
line = line[:line.index("#")] line = line[: line.index("#")]
except ValueError: except ValueError:
pass pass
source = line.strip() source = line.strip()
@ -523,7 +523,7 @@ def parse():
"-y", "-y",
"--yes", "--yes",
action="store_true", action="store_true",
help="Automatically sync without prompting. Use with caution and care." help="Automatically sync without prompting. Use with caution and care.",
) )
parser.add_argument("-d", "--distribution", help="Debian distribution to sync from.") parser.add_argument("-d", "--distribution", help="Debian distribution to sync from.")
parser.add_argument("-r", "--release", help="Specify target Ubuntu release.") parser.add_argument("-r", "--release", help="Specify target Ubuntu release.")
@ -776,7 +776,9 @@ def main():
continue continue
if args.lp: if args.lp:
if not copy(src_pkg, args.release, args.bugs, sponsoree, args.simulate, args.force, args.yes): if not copy(
src_pkg, args.release, args.bugs, sponsoree, args.simulate, args.force, args.yes
):
continue continue
else: else:
os.environ["DEB_VENDOR"] = "Ubuntu" os.environ["DEB_VENDOR"] = "Ubuntu"

View File

@ -734,6 +734,7 @@ class PersonalPackageArchiveSourcePackage(UbuntuSourcePackage):
class UbuntuCloudArchiveSourcePackage(PersonalPackageArchiveSourcePackage): class UbuntuCloudArchiveSourcePackage(PersonalPackageArchiveSourcePackage):
"Download / unpack an Ubuntu Cloud Archive source package" "Download / unpack an Ubuntu Cloud Archive source package"
TEAM = "ubuntu-cloud-archive" TEAM = "ubuntu-cloud-archive"
PROJECT = "cloud-archive" PROJECT = "cloud-archive"
VALID_POCKETS = ["updates", "proposed", "staging"] VALID_POCKETS = ["updates", "proposed", "staging"]

View File

@ -12,7 +12,7 @@
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE. # PERFORMANCE OF THIS SOFTWARE.
""" Tests for running_autopkgtests """Tests for running_autopkgtests
Tests using cached data from autopkgtest servers. Tests using cached data from autopkgtest servers.
These tests only ensure code changes don't change parsing behavior These tests only ensure code changes don't change parsing behavior