@@ -226,7 +226,7 @@ def create_release_commit(version, release_message=None, dist_dir="dist"):
226226 cmd += ' -m "SHA256 hashes:"'
227227
228228 for path in sorted (files ):
229- path = normalize_path (path )
229+ path = normalize_path (path ) # noqa
230230 sha256 = compute_sha256 (path )
231231 shas [path ] = sha256
232232 name = osp .basename (path )
@@ -319,7 +319,7 @@ def bump_version(version_spec, *, changelog_path="", version_cmd=""): # noqa
319319
320320 else :
321321 # Handle dev version spec.
322- if version_spec == "dev" :
322+ if version_spec == "dev" : # noqa
323323 if v .pre :
324324 version_spec = f"{ v .major } .{ v .minor } .{ v .micro } .dev0"
325325 # Bump to next minor dev.
@@ -680,15 +680,15 @@ def get_gh_object(dry_run=False, **kwargs):
680680
681681def get_remote_name (dry_run ):
682682 """Get the appropriate remote git name."""
683- global _local_remote
683+ global _local_remote # noqa
684684 if not dry_run :
685685 return "origin"
686686
687687 if _local_remote :
688688 try :
689689 run (f"git remote add test { _local_remote } " )
690- except Exception :
691- pass # noqa
690+ except Exception : # noqa
691+ pass
692692 return "test"
693693
694694 tfile = tempfile .NamedTemporaryFile (suffix = ".git" )
@@ -705,7 +705,7 @@ def get_mock_github_url():
705705 return f"http://127.0.0.1:{ port } "
706706
707707
708- def ensure_mock_github (): # noqa
708+ def ensure_mock_github ():
709709 """Check for or start a mock github server."""
710710 core .GH_HOST = host = get_mock_github_url ()
711711 port = urlparse (host ).port
0 commit comments