Skip to content

Commit

Permalink
chore(style): Use set for set inclusion condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 27, 2024
1 parent f0ee976 commit 4f0694d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def do_build():
reader = csv.DictReader(f)
for row in reader:
# Ignore v1.1 and v1.1.1 versions, as these are superseded by versions using the new extension.json format.
if row["Version"] not in ("v1.1", "v1.1.1"):
if row["Version"] not in {"v1.1", "v1.1.1"}:
extension_versions[row["Id"]].append(row)

# Collect the extension versions to build.
Expand Down Expand Up @@ -93,7 +93,7 @@ def cli():
def add(url):
"""Add a new extension and its live version to the registry."""
parsed = urlsplit(url)
if parsed.netloc not in ("github.com", "gitlab.com"):
if parsed.netloc not in {"github.com", "gitlab.com"}:
raise click.BadParameter("URL must be of the form https://github.com/org/repo or https://gitlab.com/org/repo")

name = url.rsplit("/", 1)[-1]
Expand Down

0 comments on commit 4f0694d

Please sign in to comment.