@@ -226,7 +226,7 @@ def create_release_commit(version, release_message=None, dist_dir="dist"):
226
226
cmd += ' -m "SHA256 hashes:"'
227
227
228
228
for path in sorted (files ):
229
- path = normalize_path (path )
229
+ path = normalize_path (path ) # noqa
230
230
sha256 = compute_sha256 (path )
231
231
shas [path ] = sha256
232
232
name = osp .basename (path )
@@ -319,7 +319,7 @@ def bump_version(version_spec, *, changelog_path="", version_cmd=""): # noqa
319
319
320
320
else :
321
321
# Handle dev version spec.
322
- if version_spec == "dev" :
322
+ if version_spec == "dev" : # noqa
323
323
if v .pre :
324
324
version_spec = f"{ v .major } .{ v .minor } .{ v .micro } .dev0"
325
325
# Bump to next minor dev.
@@ -680,15 +680,15 @@ def get_gh_object(dry_run=False, **kwargs):
680
680
681
681
def get_remote_name (dry_run ):
682
682
"""Get the appropriate remote git name."""
683
- global _local_remote
683
+ global _local_remote # noqa
684
684
if not dry_run :
685
685
return "origin"
686
686
687
687
if _local_remote :
688
688
try :
689
689
run (f"git remote add test { _local_remote } " )
690
- except Exception :
691
- pass # noqa
690
+ except Exception : # noqa
691
+ pass
692
692
return "test"
693
693
694
694
tfile = tempfile .NamedTemporaryFile (suffix = ".git" )
@@ -705,7 +705,7 @@ def get_mock_github_url():
705
705
return f"http://127.0.0.1:{ port } "
706
706
707
707
708
- def ensure_mock_github (): # noqa
708
+ def ensure_mock_github ():
709
709
"""Check for or start a mock github server."""
710
710
core .GH_HOST = host = get_mock_github_url ()
711
711
port = urlparse (host ).port
0 commit comments