← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:pythonpath-noqa into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:pythonpath-noqa into launchpad:master.

Commit message:
Add noqa comment to all _pythonpath imports

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/406062

`flake8` objects to these since they're unused, but we're importing `_pythonpath` for its side-effects.  We don't officially use `flake8` yet, but it's the obvious replacement for `pocketlint` once we clean some things up.

Patch generated by:

  git grep -l '^import _pythonpath$' | \
    xargs sed -i 's/^import _pythonpath$/import _pythonpath  # noqa: F401/'
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:pythonpath-noqa into launchpad:master.
diff --git a/cronscripts/allocate-revision-karma.py b/cronscripts/allocate-revision-karma.py
index 2fbeb6b..5c4ad8a 100755
--- a/cronscripts/allocate-revision-karma.py
+++ b/cronscripts/allocate-revision-karma.py
@@ -3,7 +3,7 @@
 # Copyright 2009 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.code.scripts.revisionkarma import RevisionKarmaAllocator
 from lp.services.config import config
diff --git a/cronscripts/buildd-retry-depwait.py b/cronscripts/buildd-retry-depwait.py
index 381729a..0010789 100755
--- a/cronscripts/buildd-retry-depwait.py
+++ b/cronscripts/buildd-retry-depwait.py
@@ -3,7 +3,7 @@
 # Copyright 2012 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.scripts.base import LaunchpadCronScript
 from lp.soyuz.scripts.retrydepwait import RetryDepwaitTunableLoop
diff --git a/cronscripts/check-teamparticipation.py b/cronscripts/check-teamparticipation.py
index 995acd7..e7341cf 100755
--- a/cronscripts/check-teamparticipation.py
+++ b/cronscripts/check-teamparticipation.py
@@ -16,7 +16,7 @@ Ideally there should be database constraints to prevent this sort of
 situation, but that's not a simple thing and this should do for now.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.teamparticipation import (
     check_teamparticipation_circular,
diff --git a/cronscripts/checkwatches.py b/cronscripts/checkwatches.py
index b851765..55cffa8 100755
--- a/cronscripts/checkwatches.py
+++ b/cronscripts/checkwatches.py
@@ -7,7 +7,7 @@
 Cron job to run daily to check all of the BugWatches
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.bugs.scripts.checkwatches import CheckWatchesCronScript
 from lp.services.config import config
diff --git a/cronscripts/daily_product_jobs.py b/cronscripts/daily_product_jobs.py
index d1accbf..aea1daf 100755
--- a/cronscripts/daily_product_jobs.py
+++ b/cronscripts/daily_product_jobs.py
@@ -6,7 +6,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import transaction
 
diff --git a/cronscripts/distributionmirror-prober.py b/cronscripts/distributionmirror-prober.py
index 52bc01f..7ef39b3 100755
--- a/cronscripts/distributionmirror-prober.py
+++ b/cronscripts/distributionmirror-prober.py
@@ -5,7 +5,7 @@
 
 """Script to probe distribution mirrors and check how up-to-date they are."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.interfaces.distributionmirror import MirrorContent
 from lp.registry.scripts.distributionmirror_prober import DistroMirrorProber
diff --git a/cronscripts/expire-archive-files.py b/cronscripts/expire-archive-files.py
index 5ef5628..a2952a2 100755
--- a/cronscripts/expire-archive-files.py
+++ b/cronscripts/expire-archive-files.py
@@ -7,7 +7,7 @@
 # are older than 30 days.  It's done with pure SQL rather than Python
 # for speed reasons.
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.config import config
 from lp.soyuz.scripts.expire_archive_files import ArchiveExpirer
diff --git a/cronscripts/expire-bugtasks.py b/cronscripts/expire-bugtasks.py
index ec85476..628da0a 100755
--- a/cronscripts/expire-bugtasks.py
+++ b/cronscripts/expire-bugtasks.py
@@ -11,7 +11,7 @@ period is configured through config.malone.days_before_expiration.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from zope.component import getUtility
 
diff --git a/cronscripts/expire-questions.py b/cronscripts/expire-questions.py
index 07a5c3f..9e1f2eb 100755
--- a/cronscripts/expire-questions.py
+++ b/cronscripts/expire-questions.py
@@ -15,7 +15,7 @@ __metaclass__ = type
 __all__ = ['ExpireQuestions']
 
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.answers.scripts.questionexpiration import QuestionJanitor
 from lp.services.scripts.base import LaunchpadCronScript
diff --git a/cronscripts/flag-expired-memberships.py b/cronscripts/flag-expired-memberships.py
index f2c48ec..5268105 100755
--- a/cronscripts/flag-expired-memberships.py
+++ b/cronscripts/flag-expired-memberships.py
@@ -5,7 +5,7 @@
 
 """Flag expired team memberships and warn about impending expiration."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from datetime import (
     datetime,
diff --git a/cronscripts/foaf-update-karma-cache.py b/cronscripts/foaf-update-karma-cache.py
index 788ea74..c31bc1c 100755
--- a/cronscripts/foaf-update-karma-cache.py
+++ b/cronscripts/foaf-update-karma-cache.py
@@ -3,7 +3,7 @@
 # Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from zope.component import getUtility
 
diff --git a/cronscripts/garbo-daily.py b/cronscripts/garbo-daily.py
index 0de9bc0..f4d9ee7 100755
--- a/cronscripts/garbo-daily.py
+++ b/cronscripts/garbo-daily.py
@@ -12,7 +12,7 @@ corruption.
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.scripts.garbo import DailyDatabaseGarbageCollector
 
diff --git a/cronscripts/garbo-frequently.py b/cronscripts/garbo-frequently.py
index 43c5369..a6c7309 100755
--- a/cronscripts/garbo-frequently.py
+++ b/cronscripts/garbo-frequently.py
@@ -12,7 +12,7 @@ corruption.
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.scripts.garbo import FrequentDatabaseGarbageCollector
 
diff --git a/cronscripts/garbo-hourly.py b/cronscripts/garbo-hourly.py
index 89336d2..3c2b35f 100755
--- a/cronscripts/garbo-hourly.py
+++ b/cronscripts/garbo-hourly.py
@@ -12,7 +12,7 @@ corruption.
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.scripts.garbo import HourlyDatabaseGarbageCollector
 
diff --git a/cronscripts/generate-contents-files.py b/cronscripts/generate-contents-files.py
index c82fb8e..c9ccb05 100755
--- a/cronscripts/generate-contents-files.py
+++ b/cronscripts/generate-contents-files.py
@@ -5,7 +5,7 @@
 
 """Master distro publishing script."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.generate_contents_files import (
     GenerateContentsFiles,
diff --git a/cronscripts/generate-ppa-htaccess.py b/cronscripts/generate-ppa-htaccess.py
index 877a339..1e45537 100755
--- a/cronscripts/generate-ppa-htaccess.py
+++ b/cronscripts/generate-ppa-htaccess.py
@@ -5,7 +5,7 @@
 
 # This script generates .htaccess files for private PPAs.
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.generate_ppa_htaccess import (
     HtaccessTokenGenerator,
diff --git a/cronscripts/language-pack-exporter.py b/cronscripts/language-pack-exporter.py
index 8fee76c..e8579b6 100755
--- a/cronscripts/language-pack-exporter.py
+++ b/cronscripts/language-pack-exporter.py
@@ -7,7 +7,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.scripts.base import (
     LaunchpadCronScript,
diff --git a/cronscripts/librarian-feed-swift.py b/cronscripts/librarian-feed-swift.py
index 9da2c45..2f8201f 100755
--- a/cronscripts/librarian-feed-swift.py
+++ b/cronscripts/librarian-feed-swift.py
@@ -7,7 +7,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os
 
diff --git a/cronscripts/librarian-gc.py b/cronscripts/librarian-gc.py
index fb662fb..5eb16f8 100755
--- a/cronscripts/librarian-gc.py
+++ b/cronscripts/librarian-gc.py
@@ -12,7 +12,7 @@ rows in the database.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import logging
 
diff --git a/cronscripts/parse-librarian-apache-access-logs.py b/cronscripts/parse-librarian-apache-access-logs.py
index 3114efd..9736e06 100755
--- a/cronscripts/parse-librarian-apache-access-logs.py
+++ b/cronscripts/parse-librarian-apache-access-logs.py
@@ -16,7 +16,7 @@ updating the counts of every LFA, in order to get through the backlog.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from storm.sqlobject import SQLObjectNotFound
 from zope.component import getUtility
diff --git a/cronscripts/parse-ppa-apache-access-logs.py b/cronscripts/parse-ppa-apache-access-logs.py
index 669e563..c70e4b0 100755
--- a/cronscripts/parse-ppa-apache-access-logs.py
+++ b/cronscripts/parse-ppa-apache-access-logs.py
@@ -7,7 +7,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import functools
 
diff --git a/cronscripts/ppa-generate-keys.py b/cronscripts/ppa-generate-keys.py
index 4c55e3b..febcd39 100755
--- a/cronscripts/ppa-generate-keys.py
+++ b/cronscripts/ppa-generate-keys.py
@@ -7,7 +7,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.config import config
 from lp.soyuz.scripts.ppakeygenerator import PPAKeyGenerator
diff --git a/cronscripts/process-job-source-groups.py b/cronscripts/process-job-source-groups.py
index 8d10901..da533eb 100755
--- a/cronscripts/process-job-source-groups.py
+++ b/cronscripts/process-job-source-groups.py
@@ -7,7 +7,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import IndentedHelpFormatter
 import os
diff --git a/cronscripts/process-job-source.py b/cronscripts/process-job-source.py
index 98ff31f..3fa3013 100755
--- a/cronscripts/process-job-source.py
+++ b/cronscripts/process-job-source.py
@@ -2,7 +2,7 @@
 #
 # Copyright 2009, 2010 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.job.scripts.process_job_source import ProcessJobSource
 
diff --git a/cronscripts/process-mail.py b/cronscripts/process-mail.py
index 798f89c..68a745b 100755
--- a/cronscripts/process-mail.py
+++ b/cronscripts/process-mail.py
@@ -5,7 +5,7 @@
 
 """Fetches mail from the mail box and feeds them to the handlers."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from zope.component.interfaces import ComponentLookupError
 
diff --git a/cronscripts/product-release-finder.py b/cronscripts/product-release-finder.py
index 41220f1..a949bc5 100755
--- a/cronscripts/product-release-finder.py
+++ b/cronscripts/product-release-finder.py
@@ -9,7 +9,7 @@ Scan FTP and HTTP sites specified for each ProductSeries in the database
 to identify files and create new ProductRelease records for them.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.productreleasefinder.finder import (
     ProductReleaseFinder,
diff --git a/cronscripts/publish-ftpmaster.py b/cronscripts/publish-ftpmaster.py
index f7083cd..f085ba8 100755
--- a/cronscripts/publish-ftpmaster.py
+++ b/cronscripts/publish-ftpmaster.py
@@ -5,7 +5,7 @@
 
 """Master distro publishing script."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.publish_ftpmaster import PublishFTPMaster
 
diff --git a/cronscripts/repack_git_repositories.py b/cronscripts/repack_git_repositories.py
index e553616..19ab32b 100755
--- a/cronscripts/repack_git_repositories.py
+++ b/cronscripts/repack_git_repositories.py
@@ -3,7 +3,7 @@
 # Copyright 2021 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.code.scripts.repackgitrepository import RepackTunableLoop
 from lp.services.config import config
diff --git a/cronscripts/request_daily_builds.py b/cronscripts/request_daily_builds.py
index 3d860df..4c69c13 100755
--- a/cronscripts/request_daily_builds.py
+++ b/cronscripts/request_daily_builds.py
@@ -7,7 +7,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import transaction
 from zope.component import getUtility
diff --git a/cronscripts/rosetta-approve-imports.py b/cronscripts/rosetta-approve-imports.py
index bfa2f64..8ae45ba 100755
--- a/cronscripts/rosetta-approve-imports.py
+++ b/cronscripts/rosetta-approve-imports.py
@@ -5,7 +5,7 @@
 
 """Perform auto-approvals and auto-blocks on translation import queue"""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.scripts.import_queue_gardener import ImportQueueGardener
 
diff --git a/cronscripts/rosetta-export-queue.py b/cronscripts/rosetta-export-queue.py
index 1ed751f..1570cf7 100755
--- a/cronscripts/rosetta-export-queue.py
+++ b/cronscripts/rosetta-export-queue.py
@@ -3,7 +3,7 @@
 # Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.database.policy import SlaveDatabasePolicy
 from lp.services.scripts.base import LaunchpadCronScript
diff --git a/cronscripts/rosetta-pofile-stats.py b/cronscripts/rosetta-pofile-stats.py
index d0644a2..0d70c2c 100755
--- a/cronscripts/rosetta-pofile-stats.py
+++ b/cronscripts/rosetta-pofile-stats.py
@@ -5,7 +5,7 @@
 
 """Refresh and verify cached POFile translation statistics."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.scripts.base import LaunchpadCronScript
 from lp.translations.scripts.verify_pofile_stats import (
diff --git a/cronscripts/rosetta-poimport.py b/cronscripts/rosetta-poimport.py
index 07214ee..8704250 100755
--- a/cronscripts/rosetta-poimport.py
+++ b/cronscripts/rosetta-poimport.py
@@ -3,7 +3,7 @@
 # Copyright 2009 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.config import config
 from lp.translations.scripts.po_import import TranslationsImport
diff --git a/cronscripts/send-bug-notifications.py b/cronscripts/send-bug-notifications.py
index 36f95e2..358775e 100755
--- a/cronscripts/send-bug-notifications.py
+++ b/cronscripts/send-bug-notifications.py
@@ -11,7 +11,7 @@ date_emailed to the current date.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.bugs.scripts.bugnotification import SendBugNotifications
 from lp.services.config import config
diff --git a/cronscripts/send-person-notifications.py b/cronscripts/send-person-notifications.py
index 466c0b4..37adfbd 100755
--- a/cronscripts/send-person-notifications.py
+++ b/cronscripts/send-person-notifications.py
@@ -11,7 +11,7 @@ date_emailed to the current date.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.personnotification import PersonNotificationManager
 from lp.services.config import config
diff --git a/cronscripts/supermirror-pull.py b/cronscripts/supermirror-pull.py
index 5cf1196..8c94787 100755
--- a/cronscripts/supermirror-pull.py
+++ b/cronscripts/supermirror-pull.py
@@ -3,7 +3,7 @@
 # Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 
diff --git a/cronscripts/translations-export-to-branch.py b/cronscripts/translations-export-to-branch.py
index e732ee6..61b9ca0 100755
--- a/cronscripts/translations-export-to-branch.py
+++ b/cronscripts/translations-export-to-branch.py
@@ -16,7 +16,7 @@ have been updated.  For the rest, the script talks to the slave store.
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.scripts.translations_to_branch import (
     ExportTranslationsToBranch,
diff --git a/cronscripts/update-bugtask-targetnamecaches.py b/cronscripts/update-bugtask-targetnamecaches.py
index 6eb3556..2da1e8d 100755
--- a/cronscripts/update-bugtask-targetnamecaches.py
+++ b/cronscripts/update-bugtask-targetnamecaches.py
@@ -5,7 +5,7 @@
 
 # This script updates the cached stats in the system
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.bugs.scripts.bugtasktargetnamecaches import (
     BugTaskTargetNameCacheUpdater,
diff --git a/cronscripts/update-bugzilla-remote-components.py b/cronscripts/update-bugzilla-remote-components.py
index 48be5d9..72afc5d 100755
--- a/cronscripts/update-bugzilla-remote-components.py
+++ b/cronscripts/update-bugzilla-remote-components.py
@@ -3,7 +3,7 @@
 # Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import time
 
diff --git a/cronscripts/update-cve.py b/cronscripts/update-cve.py
index 1ad1a58..add5993 100755
--- a/cronscripts/update-cve.py
+++ b/cronscripts/update-cve.py
@@ -8,7 +8,7 @@ that all of the known CVE's are fully registered in Launchpad."""
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.bugs.scripts.cveimport import CVEUpdater
 from lp.services.config import config
diff --git a/cronscripts/update-database-stats.py b/cronscripts/update-database-stats.py
index 30fa6e5..4f6a52f 100755
--- a/cronscripts/update-database-stats.py
+++ b/cronscripts/update-database-stats.py
@@ -6,7 +6,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.model.person import Person
 from lp.services.database.interfaces import IMasterStore
diff --git a/cronscripts/update-pkgcache.py b/cronscripts/update-pkgcache.py
index 9b3d766..1cf7186 100755
--- a/cronscripts/update-pkgcache.py
+++ b/cronscripts/update-pkgcache.py
@@ -7,7 +7,7 @@
 # We use this for fast source package searching (as opposed to joining
 # through gazillions of publishing tables).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from zope.component import getUtility
 
diff --git a/cronscripts/update-remote-product.py b/cronscripts/update-remote-product.py
index 91657fc..bbdb619 100755
--- a/cronscripts/update-remote-product.py
+++ b/cronscripts/update-remote-product.py
@@ -9,7 +9,7 @@ This script sets the remote_product string value on Launchpad Products
 by looking it up from one of the product's bug watches.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import time
 
diff --git a/cronscripts/update-sourceforge-remote-products.py b/cronscripts/update-sourceforge-remote-products.py
index 338c94c..7b4a0c6 100755
--- a/cronscripts/update-sourceforge-remote-products.py
+++ b/cronscripts/update-sourceforge-remote-products.py
@@ -5,7 +5,7 @@
 
 """Cron job to update remote_products using SourceForge project data."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import time
 
diff --git a/cronscripts/update-standing.py b/cronscripts/update-standing.py
index 3cb2443..0a841bb 100755
--- a/cronscripts/update-standing.py
+++ b/cronscripts/update-standing.py
@@ -9,7 +9,7 @@ __metaclass__ = type
 __all__ = []
 
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.standing import UpdatePersonalStanding
 from lp.services.config import config
diff --git a/cronscripts/update-stats.py b/cronscripts/update-stats.py
index db6560c..43d3602 100755
--- a/cronscripts/update-stats.py
+++ b/cronscripts/update-stats.py
@@ -5,7 +5,7 @@
 
 # This script updates the cached stats in the system
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from zope.component import getUtility
 
diff --git a/database/replication/preamble.py b/database/replication/preamble.py
index 8f2b38d..87d0d9e 100755
--- a/database/replication/preamble.py
+++ b/database/replication/preamble.py
@@ -11,7 +11,7 @@ from __future__ import absolute_import, print_function
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import time
diff --git a/database/replication/sync.py b/database/replication/sync.py
index d07d52d..0e44ada 100755
--- a/database/replication/sync.py
+++ b/database/replication/sync.py
@@ -8,7 +8,7 @@
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 
diff --git a/database/schema/emptytables.py b/database/schema/emptytables.py
index e8ef47d..e035532 100755
--- a/database/schema/emptytables.py
+++ b/database/schema/emptytables.py
@@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 
diff --git a/database/schema/fti.py b/database/schema/fti.py
index e18d634..fa15c9a 100755
--- a/database/schema/fti.py
+++ b/database/schema/fti.py
@@ -12,7 +12,7 @@ from __future__ import absolute_import, print_function
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import sys
diff --git a/database/schema/full-update.py b/database/schema/full-update.py
index ba1b4d0..c217412 100755
--- a/database/schema/full-update.py
+++ b/database/schema/full-update.py
@@ -4,7 +4,7 @@
 
 """Full update process."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from datetime import datetime
 from optparse import OptionParser
diff --git a/database/schema/online_fti_updater.py b/database/schema/online_fti_updater.py
index 1bc6335..456b22f 100755
--- a/database/schema/online_fti_updater.py
+++ b/database/schema/online_fti_updater.py
@@ -12,7 +12,7 @@ from __future__ import absolute_import, print_function
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import psycopg
 
diff --git a/database/schema/preflight.py b/database/schema/preflight.py
index 5e32dc0..6f26ddc 100755
--- a/database/schema/preflight.py
+++ b/database/schema/preflight.py
@@ -11,7 +11,7 @@ __all__ = [
     'streaming_sync',
     ]
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from datetime import timedelta
 from optparse import OptionParser
diff --git a/database/schema/reset_sequences.py b/database/schema/reset_sequences.py
index 8f2d367..38f379a 100755
--- a/database/schema/reset_sequences.py
+++ b/database/schema/reset_sequences.py
@@ -14,7 +14,7 @@ maximum value currently found in the corresponding table.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 
diff --git a/database/schema/security.py b/database/schema/security.py
index bc5551d..f5910ae 100755
--- a/database/schema/security.py
+++ b/database/schema/security.py
@@ -5,7 +5,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from collections import defaultdict
 from optparse import OptionParser
diff --git a/database/schema/sort_sql.py b/database/schema/sort_sql.py
index 3b04f8c..bde6bfa 100755
--- a/database/schema/sort_sql.py
+++ b/database/schema/sort_sql.py
@@ -26,7 +26,7 @@ happen by table, with one block of statements for each table.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/database/schema/unautovacuumable.py b/database/schema/unautovacuumable.py
index cfa83e8..4e09282 100755
--- a/database/schema/unautovacuumable.py
+++ b/database/schema/unautovacuumable.py
@@ -16,7 +16,7 @@ Don't run this on any production systems.
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import sys
diff --git a/database/schema/upgrade.py b/database/schema/upgrade.py
index e97b6e7..1b92d25 100755
--- a/database/schema/upgrade.py
+++ b/database/schema/upgrade.py
@@ -9,7 +9,7 @@ Apply all outstanding schema patches to an existing launchpad database
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import glob
 from optparse import OptionParser
diff --git a/lib/lp/services/scripts/tests/cronscript-crash.py b/lib/lp/services/scripts/tests/cronscript-crash.py
index d882aa0..09cba19 100755
--- a/lib/lp/services/scripts/tests/cronscript-crash.py
+++ b/lib/lp/services/scripts/tests/cronscript-crash.py
@@ -7,7 +7,7 @@
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.scripts.base import LaunchpadCronScript
 from lp.services.webapp.errorlog import globalErrorUtility
diff --git a/scripts/add-missing-builds.py b/scripts/add-missing-builds.py
index 17776bb..792279f 100755
--- a/scripts/add-missing-builds.py
+++ b/scripts/add-missing-builds.py
@@ -3,7 +3,7 @@
 # Copyright 2010 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.config import config
 from lp.soyuz.scripts.add_missing_builds import AddMissingBuilds
diff --git a/scripts/branch-rewrite.py b/scripts/branch-rewrite.py
index 1e00e69..e56db27 100755
--- a/scripts/branch-rewrite.py
+++ b/scripts/branch-rewrite.py
@@ -12,7 +12,7 @@ lp.codehosting.rewrite.BranchRewriter for the logic of the rewritemap.
 
 from __future__ import absolute_import, print_function, unicode_literals
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os
 import sys
diff --git a/scripts/bug-export.py b/scripts/bug-export.py
index 15bf58e..8c39998 100755
--- a/scripts/bug-export.py
+++ b/scripts/bug-export.py
@@ -2,7 +2,7 @@
 #
 # Copyright 2009 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/scripts/bug-import.py b/scripts/bug-import.py
index ad0c0ab..c2d4e71 100755
--- a/scripts/bug-import.py
+++ b/scripts/bug-import.py
@@ -3,7 +3,7 @@
 # Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import logging
 
diff --git a/scripts/bugsummary-rebuild.py b/scripts/bugsummary-rebuild.py
index 5ddc78c..fe6f4f1 100755
--- a/scripts/bugsummary-rebuild.py
+++ b/scripts/bugsummary-rebuild.py
@@ -3,7 +3,7 @@
 # Copyright 2012 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.bugs.scripts.bugsummaryrebuild import BugSummaryRebuildTunableLoop
 from lp.services.scripts.base import LaunchpadScript
diff --git a/scripts/cache-country-mirrors.py b/scripts/cache-country-mirrors.py
index 844d867..3f09049 100755
--- a/scripts/cache-country-mirrors.py
+++ b/scripts/cache-country-mirrors.py
@@ -10,7 +10,7 @@ named like cc.txt (where cc is the two letter country code),
 containing the archive mirrors for that country.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os
 import shutil
diff --git a/scripts/close-account.py b/scripts/close-account.py
index a66c679..05936c0 100755
--- a/scripts/close-account.py
+++ b/scripts/close-account.py
@@ -5,7 +5,7 @@
 
 """Remove personal details of a user from the database, leaving a stub."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.closeaccount import CloseAccountScript
 
diff --git a/scripts/convert-person-to-team.py b/scripts/convert-person-to-team.py
index 8c6f714..f516339 100755
--- a/scripts/convert-person-to-team.py
+++ b/scripts/convert-person-to-team.py
@@ -9,7 +9,7 @@ Only people whose account_status is NOACCOUNT can be turned into teams.
 """
 
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from zope.component import getUtility
 
diff --git a/scripts/copy-distroseries-translations.py b/scripts/copy-distroseries-translations.py
index 08ce72c..62c34f9 100755
--- a/scripts/copy-distroseries-translations.py
+++ b/scripts/copy-distroseries-translations.py
@@ -10,7 +10,7 @@ provide a new distroseries in a series with its initial translation data.
 Only current translations are copied.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/scripts/copy-signingkeys.py b/scripts/copy-signingkeys.py
index 4f226bf..e5d3f56 100755
--- a/scripts/copy-signingkeys.py
+++ b/scripts/copy-signingkeys.py
@@ -4,7 +4,7 @@
 
 """Script to copy signing keys between archives."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.copy_signingkeys import CopySigningKeysScript
 from lp.services.config import config
diff --git a/scripts/create-bot-account.py b/scripts/create-bot-account.py
index 914bfd4..f85bbb4 100755
--- a/scripts/create-bot-account.py
+++ b/scripts/create-bot-account.py
@@ -3,7 +3,7 @@
 # Copyright 2017 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.createbotaccount import CreateBotAccountScript
 
diff --git a/scripts/fix-translations-opening.py b/scripts/fix-translations-opening.py
index 01011a6..7321812 100755
--- a/scripts/fix-translations-opening.py
+++ b/scripts/fix-translations-opening.py
@@ -5,7 +5,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from zope.component import getUtility
 from zope.interface import implementer
diff --git a/scripts/ftpmaster-tools/buildd-mass-retry.py b/scripts/ftpmaster-tools/buildd-mass-retry.py
index 8e45425..b7dbaeb 100755
--- a/scripts/ftpmaster-tools/buildd-mass-retry.py
+++ b/scripts/ftpmaster-tools/buildd-mass-retry.py
@@ -11,7 +11,7 @@ It supports build collections based distroseries and/or distroarchseries.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import transaction
 from zope.component import getUtility
diff --git a/scripts/ftpmaster-tools/obsolete-distroseries.py b/scripts/ftpmaster-tools/obsolete-distroseries.py
index a4de92f..7040ba6 100755
--- a/scripts/ftpmaster-tools/obsolete-distroseries.py
+++ b/scripts/ftpmaster-tools/obsolete-distroseries.py
@@ -9,7 +9,7 @@ This script will obsolete (schedule for removal) all published packages
 in an obsolete distroseries.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.config import config
 from lp.soyuz.scripts.obsolete_distroseries import ObsoleteDistroseries
diff --git a/scripts/generate-access-token.py b/scripts/generate-access-token.py
index 55d7acd..0ff3723 100755
--- a/scripts/generate-access-token.py
+++ b/scripts/generate-access-token.py
@@ -6,7 +6,7 @@
 """Conveniently generates access token and outputs relevant settings."""
 
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/scripts/get-stacked-on-branches.py b/scripts/get-stacked-on-branches.py
index 439af1a..d017a59 100755
--- a/scripts/get-stacked-on-branches.py
+++ b/scripts/get-stacked-on-branches.py
@@ -25,7 +25,7 @@ from __future__ import absolute_import, print_function, unicode_literals
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 
diff --git a/scripts/gina.py b/scripts/gina.py
index 151c1bc..5f36be4 100755
--- a/scripts/gina.py
+++ b/scripts/gina.py
@@ -16,7 +16,7 @@ The callstack is essentially:
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/scripts/import-debian-bugs.py b/scripts/import-debian-bugs.py
index 204b0a3..209f620 100755
--- a/scripts/import-debian-bugs.py
+++ b/scripts/import-debian-bugs.py
@@ -11,7 +11,7 @@ Launchpad, with the real Debian bug linked as a bug watch.
 An Ubuntu task will be created for each imported bug.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.bugs.scripts.importdebianbugs import import_debian_bugs
 from lp.services.config import config
diff --git a/scripts/librarian-report.py b/scripts/librarian-report.py
index 10b801d..6bb0381 100755
--- a/scripts/librarian-report.py
+++ b/scripts/librarian-report.py
@@ -10,7 +10,7 @@ from __future__ import absolute_import, print_function, unicode_literals
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import sys
diff --git a/scripts/list-team-members b/scripts/list-team-members
index fcc8948..b9f0c52 100755
--- a/scripts/list-team-members
+++ b/scripts/list-team-members
@@ -5,7 +5,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import logging
 import sys
diff --git a/scripts/memcached-stats.py b/scripts/memcached-stats.py
index 665c3dd..837a3cf 100755
--- a/scripts/memcached-stats.py
+++ b/scripts/memcached-stats.py
@@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function, unicode_literals
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 from pprint import pprint
diff --git a/scripts/migrate-librarian-content-md5.py b/scripts/migrate-librarian-content-md5.py
index 0a1b7c8..72857e0 100755
--- a/scripts/migrate-librarian-content-md5.py
+++ b/scripts/migrate-librarian-content-md5.py
@@ -9,7 +9,7 @@ from __future__ import absolute_import, print_function, unicode_literals
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os
 import subprocess
diff --git a/scripts/mirror-branch.py b/scripts/mirror-branch.py
index 69f8b33..7fd4861 100755
--- a/scripts/mirror-branch.py
+++ b/scripts/mirror-branch.py
@@ -26,7 +26,7 @@ Where:
 # not intended to be run by itself.
 
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import os
diff --git a/scripts/mlist-import.py b/scripts/mlist-import.py
index 287c038..7494762 100755
--- a/scripts/mlist-import.py
+++ b/scripts/mlist-import.py
@@ -16,7 +16,7 @@ __all__ = [
     ]
 
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import logging
 import sys
diff --git a/scripts/modified-branches.py b/scripts/modified-branches.py
index f0fa722..81d2c30 100755
--- a/scripts/modified-branches.py
+++ b/scripts/modified-branches.py
@@ -8,7 +8,7 @@
 This script will be used by IS for the rsync backups.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.codehosting.scripts.modifiedbranches import ModifiedBranchesScript
 
diff --git a/scripts/populate-archive.py b/scripts/populate-archive.py
index 329e33f..a5cb686 100755
--- a/scripts/populate-archive.py
+++ b/scripts/populate-archive.py
@@ -9,7 +9,7 @@
     the script will abort with an error.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.config import config
 from lp.soyuz.scripts.populate_archive import ArchivePopulator
diff --git a/scripts/populate-distroseriesdiff.py b/scripts/populate-distroseriesdiff.py
index 624290b..8fc6a08 100755
--- a/scripts/populate-distroseriesdiff.py
+++ b/scripts/populate-distroseriesdiff.py
@@ -5,7 +5,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.populate_distroseriesdiff import (
     PopulateDistroSeriesDiff,
diff --git a/scripts/ppa-report.py b/scripts/ppa-report.py
index 772c605..6c494c5 100755
--- a/scripts/ppa-report.py
+++ b/scripts/ppa-report.py
@@ -3,7 +3,7 @@
 # Copyright 2009 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.soyuz.scripts.ppareport import PPAReportScript
 
diff --git a/scripts/process-accepted.py b/scripts/process-accepted.py
index 5a77572..453a7c2 100755
--- a/scripts/process-accepted.py
+++ b/scripts/process-accepted.py
@@ -10,7 +10,7 @@ distribution and then gets on and deals with any accepted items, preparing
 them for publishing as appropriate.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.processaccepted import ProcessAccepted
 
diff --git a/scripts/process-death-row.py b/scripts/process-death-row.py
index 7d903fb..98b9fd0 100755
--- a/scripts/process-death-row.py
+++ b/scripts/process-death-row.py
@@ -21,7 +21,7 @@ the archive tree.
 There is also a 'dry-run' mode that can be used to operate on the real
 archive tree without removing the files.
 """
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.processdeathrow import DeathRowProcessor
 
diff --git a/scripts/process-one-mail.py b/scripts/process-one-mail.py
index 3557d8d..4565e5c 100755
--- a/scripts/process-one-mail.py
+++ b/scripts/process-one-mail.py
@@ -5,7 +5,7 @@
 
 """Process one email message, read from stdin."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/scripts/process-upload.py b/scripts/process-upload.py
index a83d672..8a18f7e 100755
--- a/scripts/process-upload.py
+++ b/scripts/process-upload.py
@@ -9,7 +9,7 @@ Given a bunch of context information and a bunch of files, process them as
 an upload to a distro/whatever within the launchpad.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archiveuploader.scripts.processupload import ProcessUpload
 
diff --git a/scripts/publish-distro.py b/scripts/publish-distro.py
index f32aa4e..1d9b1c4 100755
--- a/scripts/publish-distro.py
+++ b/scripts/publish-distro.py
@@ -3,7 +3,7 @@
 # Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.publishdistro import PublishDistro
 
diff --git a/scripts/rosetta/fix_translation_credits.py b/scripts/rosetta/fix_translation_credits.py
index 584993c..bcc396d 100755
--- a/scripts/rosetta/fix_translation_credits.py
+++ b/scripts/rosetta/fix_translation_credits.py
@@ -5,7 +5,7 @@
 
 """Mark all translation credits as translated."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.scripts.base import LaunchpadScript
 from lp.translations.scripts.fix_translation_credits import (
diff --git a/scripts/rosetta/gettext_check_messages.py b/scripts/rosetta/gettext_check_messages.py
index 93cc140..abcd1a2 100755
--- a/scripts/rosetta/gettext_check_messages.py
+++ b/scripts/rosetta/gettext_check_messages.py
@@ -18,7 +18,7 @@ enabled instead.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.scripts.gettext_check_messages import (
     GettextCheckMessages,
diff --git a/scripts/rosetta/merge-existing-packagings.py b/scripts/rosetta/merge-existing-packagings.py
index 8247eac..5840aa6 100755
--- a/scripts/rosetta/merge-existing-packagings.py
+++ b/scripts/rosetta/merge-existing-packagings.py
@@ -5,7 +5,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.utilities.translationmerger import MergeExistingPackagings
 
diff --git a/scripts/rosetta/message-sharing-merge.py b/scripts/rosetta/message-sharing-merge.py
index 3d60a1f..4d79ec2 100755
--- a/scripts/rosetta/message-sharing-merge.py
+++ b/scripts/rosetta/message-sharing-merge.py
@@ -5,7 +5,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.utilities.translationmerger import MessageSharingMerge
 
diff --git a/scripts/rosetta/migrate_current_flag.py b/scripts/rosetta/migrate_current_flag.py
index d3bcb2e..aaad20a 100755
--- a/scripts/rosetta/migrate_current_flag.py
+++ b/scripts/rosetta/migrate_current_flag.py
@@ -5,7 +5,7 @@
 
 """Migrate current flag to imported flag on project translations."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.services.scripts.base import LaunchpadScript
 from lp.translations.scripts.migrate_current_flag import (
diff --git a/scripts/rosetta/pottery-generate-intltool.py b/scripts/rosetta/pottery-generate-intltool.py
index 7b06056..de62cbc 100755
--- a/scripts/rosetta/pottery-generate-intltool.py
+++ b/scripts/rosetta/pottery-generate-intltool.py
@@ -7,7 +7,7 @@
 
 from __future__ import absolute_import, print_function, unicode_literals
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os.path
 
diff --git a/scripts/rosetta/remove-translations-by.py b/scripts/rosetta/remove-translations-by.py
index 7615e20..a01aefe 100755
--- a/scripts/rosetta/remove-translations-by.py
+++ b/scripts/rosetta/remove-translations-by.py
@@ -5,7 +5,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.scripts.remove_translations import RemoveTranslations
 
diff --git a/scripts/rosetta/reupload-translations.py b/scripts/rosetta/reupload-translations.py
index 725f1a2..1187f7b 100755
--- a/scripts/rosetta/reupload-translations.py
+++ b/scripts/rosetta/reupload-translations.py
@@ -6,7 +6,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.scripts.reupload_translations import (
     ReuploadPackageTranslations,
diff --git a/scripts/rosetta/upload-translations.py b/scripts/rosetta/upload-translations.py
index 1910b13..ede5b1f 100755
--- a/scripts/rosetta/upload-translations.py
+++ b/scripts/rosetta/upload-translations.py
@@ -6,7 +6,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.translations.scripts.upload_translations import (
     UploadPackageTranslations,
diff --git a/scripts/rosetta/validate-translations-file.py b/scripts/rosetta/validate-translations-file.py
index 72a91f4..e1edf9f 100755
--- a/scripts/rosetta/validate-translations-file.py
+++ b/scripts/rosetta/validate-translations-file.py
@@ -4,7 +4,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/scripts/script-monitor-nagios.py b/scripts/script-monitor-nagios.py
index 68e6307..2a97dee 100755
--- a/scripts/script-monitor-nagios.py
+++ b/scripts/script-monitor-nagios.py
@@ -23,7 +23,7 @@ from __future__ import absolute_import, print_function, unicode_literals
 __metaclass__ = type
 __all__ = ['check_script']
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from datetime import (
     datetime,
diff --git a/scripts/script-monitor.py b/scripts/script-monitor.py
index a7a3000..f6cb148 100755
--- a/scripts/script-monitor.py
+++ b/scripts/script-monitor.py
@@ -8,7 +8,7 @@
 __metaclass__ = type
 __all__ = ['check_script']
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from datetime import (
     datetime,
diff --git a/scripts/start-loggerhead.py b/scripts/start-loggerhead.py
index 6bca4b1..c5746b7 100755
--- a/scripts/start-loggerhead.py
+++ b/scripts/start-loggerhead.py
@@ -5,7 +5,7 @@
 
 from __future__ import absolute_import, print_function, unicode_literals
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from launchpad_loggerhead.wsgi import LoggerheadApplication
 
diff --git a/scripts/stop-loggerhead.py b/scripts/stop-loggerhead.py
index 9614045..32899c2 100755
--- a/scripts/stop-loggerhead.py
+++ b/scripts/stop-loggerhead.py
@@ -5,7 +5,7 @@
 
 from __future__ import absolute_import, print_function, unicode_literals
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import sys
diff --git a/scripts/suspend-bot-account.py b/scripts/suspend-bot-account.py
index 7f1607f..cc48750 100755
--- a/scripts/suspend-bot-account.py
+++ b/scripts/suspend-bot-account.py
@@ -3,7 +3,7 @@
 # Copyright 2018 Canonical Ltd.  This software is licensed under the
 # GNU Affero General Public License version 3 (see the file LICENSE).
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.registry.scripts.suspendbotaccount import SuspendBotAccountScript
 
diff --git a/scripts/sync-branches.py b/scripts/sync-branches.py
index b370bd1..a010599 100755
--- a/scripts/sync-branches.py
+++ b/scripts/sync-branches.py
@@ -3,7 +3,7 @@
 
 """Sync branches from production to a staging environment."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.codehosting.scripts.sync_branches import SyncBranchesScript
 
diff --git a/scripts/sync-signingkeys.py b/scripts/sync-signingkeys.py
index 84310b0..0020d76 100755
--- a/scripts/sync-signingkeys.py
+++ b/scripts/sync-signingkeys.py
@@ -4,7 +4,7 @@
 
 """Script to inject archive keys into signing service."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.archivepublisher.scripts.sync_signingkeys import SyncSigningKeysScript
 from lp.services.config import config
diff --git a/scripts/update-stacked-on.py b/scripts/update-stacked-on.py
index 2d4bbaf..1648ec9 100755
--- a/scripts/update-stacked-on.py
+++ b/scripts/update-stacked-on.py
@@ -18,7 +18,7 @@ renamed.
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from collections import namedtuple
 import sys
diff --git a/scripts/upgrade_all_branches.py b/scripts/upgrade_all_branches.py
index 2e5fce1..9a846b3 100755
--- a/scripts/upgrade_all_branches.py
+++ b/scripts/upgrade_all_branches.py
@@ -2,7 +2,7 @@
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.codehosting.bzrutils import server
 from lp.codehosting.upgrade import Upgrader
diff --git a/scripts/upload2librarian.py b/scripts/upload2librarian.py
index 27be0b8..2b8188c 100755
--- a/scripts/upload2librarian.py
+++ b/scripts/upload2librarian.py
@@ -5,7 +5,7 @@
 
 """Simple tool to upload arbitrary files into Librarian."""
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import logging
 import os
diff --git a/scripts/wsgi-archive-auth.py b/scripts/wsgi-archive-auth.py
index f447b6a..41791a5 100755
--- a/scripts/wsgi-archive-auth.py
+++ b/scripts/wsgi-archive-auth.py
@@ -34,7 +34,7 @@ top = os.path.dirname(scripts_dir)
 sys.modules.pop("site", None)
 sys.modules.pop("sitecustomize", None)
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from lp.soyuz.wsgi.archiveauth import check_password
 
diff --git a/test_on_merge.py b/test_on_merge.py
index b6e04af..a1cd0e2 100755
--- a/test_on_merge.py
+++ b/test_on_merge.py
@@ -7,7 +7,7 @@
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import errno
 import os
diff --git a/utilities/audit-security-settings.py b/utilities/audit-security-settings.py
index 8555cf1..8842249 100755
--- a/utilities/audit-security-settings.py
+++ b/utilities/audit-security-settings.py
@@ -14,7 +14,7 @@ from __future__ import absolute_import, print_function
 
 __metatype__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os
 
diff --git a/utilities/create-lp-wadl-and-apidoc.py b/utilities/create-lp-wadl-and-apidoc.py
index e72ac3d..c5b3607 100755
--- a/utilities/create-lp-wadl-and-apidoc.py
+++ b/utilities/create-lp-wadl-and-apidoc.py
@@ -13,7 +13,7 @@ Example:
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from multiprocessing import Process
 import optparse
diff --git a/utilities/generate-external-bug-status-docs b/utilities/generate-external-bug-status-docs
index 43e0263..54d8cf9 100755
--- a/utilities/generate-external-bug-status-docs
+++ b/utilities/generate-external-bug-status-docs
@@ -18,7 +18,7 @@
 # this is very low because it is infrequently run, and typically only
 # by me, so I get to pick up the pieces.
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import codecs
 from datetime import datetime
diff --git a/utilities/get-branch-info b/utilities/get-branch-info
index abcd52c..1e832bc 100755
--- a/utilities/get-branch-info
+++ b/utilities/get-branch-info
@@ -10,7 +10,7 @@ Usage: get-branch-info <branch_url>
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/utilities/js-deps b/utilities/js-deps
index f1e1fd8..e8059f1 100755
--- a/utilities/js-deps
+++ b/utilities/js-deps
@@ -1,6 +1,6 @@
 #!bin/py
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 from convoy.meta import main
 
 main()
diff --git a/utilities/list-pages b/utilities/list-pages
index 7bce9d8..d249001 100755
--- a/utilities/list-pages
+++ b/utilities/list-pages
@@ -44,7 +44,7 @@ because our cheat objects don't match the app-encoded business logic.
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from inspect import getmro
 import os
diff --git a/utilities/lsconf.py b/utilities/lsconf.py
index 7d7a62a..f4301bf 100755
--- a/utilities/lsconf.py
+++ b/utilities/lsconf.py
@@ -10,7 +10,7 @@ from __future__ import absolute_import, print_function
 __metatype__ = type
 
 # Scripts may have relative imports.
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from operator import attrgetter
 from optparse import OptionParser
diff --git a/utilities/make-dummy-hosted-branches b/utilities/make-dummy-hosted-branches
index 2b777a0..eb930db 100755
--- a/utilities/make-dummy-hosted-branches
+++ b/utilities/make-dummy-hosted-branches
@@ -17,7 +17,7 @@ database.
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os
 import shutil
diff --git a/utilities/make-lp-user b/utilities/make-lp-user
index c4bebf5..eb6d415 100755
--- a/utilities/make-lp-user
+++ b/utilities/make-lp-user
@@ -31,7 +31,7 @@ production environments.
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import os
diff --git a/utilities/paste b/utilities/paste
index 135b5a1..f75cc79 100755
--- a/utilities/paste
+++ b/utilities/paste
@@ -5,7 +5,7 @@
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import base64
 from optparse import OptionParser
diff --git a/utilities/pgkillactive.py b/utilities/pgkillactive.py
index 89ae8d2..85bd637 100755
--- a/utilities/pgkillactive.py
+++ b/utilities/pgkillactive.py
@@ -11,7 +11,7 @@ from __future__ import absolute_import, print_function
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import os
diff --git a/utilities/pgkillidle.py b/utilities/pgkillidle.py
index 2a1f145..c0c81e9 100755
--- a/utilities/pgkillidle.py
+++ b/utilities/pgkillidle.py
@@ -11,7 +11,7 @@ from __future__ import absolute_import, print_function
 __metaclass__ = type
 __all__ = []
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import os
diff --git a/utilities/pgmassacre.py b/utilities/pgmassacre.py
index 1dd1e7b..b05a3d9 100755
--- a/utilities/pgmassacre.py
+++ b/utilities/pgmassacre.py
@@ -15,7 +15,7 @@ Cut off access, slaughter connections and burn the database to the ground
 
 from __future__ import absolute_import, print_function
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from optparse import OptionParser
 import sys
diff --git a/utilities/report-database-stats.py b/utilities/report-database-stats.py
index 8e236d8..9353e86 100755
--- a/utilities/report-database-stats.py
+++ b/utilities/report-database-stats.py
@@ -8,7 +8,7 @@ from __future__ import absolute_import, print_function
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 from datetime import datetime
 from operator import attrgetter
diff --git a/utilities/smoke-test-librarian.py b/utilities/smoke-test-librarian.py
index ba82385..0581e00 100755
--- a/utilities/smoke-test-librarian.py
+++ b/utilities/smoke-test-librarian.py
@@ -6,7 +6,7 @@
 """Perform simple librarian operations to verify the current configuration.
 """
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import sys
 
diff --git a/utilities/soyuz-sampledata-setup.py b/utilities/soyuz-sampledata-setup.py
index 9a1edba..9edad0e 100755
--- a/utilities/soyuz-sampledata-setup.py
+++ b/utilities/soyuz-sampledata-setup.py
@@ -21,7 +21,7 @@ from __future__ import absolute_import, print_function
 
 __metaclass__ = type
 
-import _pythonpath
+import _pythonpath  # noqa: F401
 
 import os
 import re