Skip to content

Commit

Permalink
Increased coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 7, 2024
1 parent 2a7d2a0 commit aa83978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ exclude_also = [

[tool.coverage.report]
show_missing = true
exclude_also = [
"@abstractmethod",
]

[tool.ruff]
extend-exclude = ["src/wheel/vendored"]
Expand Down
13 changes: 0 additions & 13 deletions src/wheel/cli/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ def __init__(self, path: Path):
def generate_contents(self) -> Iterator[tuple[str, bytes]]:
with ZipFile(self.path, "r") as zip_file:
for filename in sorted(zip_file.namelist()):
# Skip any compiled bytecode files
if filename.endswith(".pyc"):
continue

# Skip pure directory entries
if filename.endswith("/"):
continue
Expand Down Expand Up @@ -165,11 +161,6 @@ def generate_contents(self) -> Iterator[tuple[str, bytes]]:
for dirpath, _, filenames in os.walk(self.path):
for filename in sorted(filenames):
path = Path(dirpath, filename)

# Skip any compiled bytecode files
if filename.endswith(".pyc"):
continue

if path.parent.name == "EGG-INFO":
if path.name == "requires.txt":
requires = path.read_text("utf-8")
Expand Down Expand Up @@ -260,10 +251,6 @@ def generate_contents(self) -> Iterator[tuple[str, bytes]]:
data_dir = f"{self.name}-{self.version}.data"
with ZipFile(self.path, "r") as zip_file:
for filename in sorted(zip_file.namelist()):
# Skip any compiled bytecode files
if filename.endswith(".pyc"):
continue

# Skip pure directory entries
if filename.endswith("/"):
continue
Expand Down

0 comments on commit aa83978

Please sign in to comment.