Skip to content

Commit

Permalink
Fix linting again.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewsilcock committed Feb 7, 2025
1 parent 7c42c8f commit 833b123
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hooks/check_missing_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ def _get_required_packages(filepath: str) -> List[str]:
Returns:
List of formatted names of installed packages
"""
return [
package_names = [
_parse_package_name(req.name)
for req in requirements.parse(Path(filepath).read_text())
if req.name
]

return [name for name in package_names if name]


class CheckMissingRequirements(Hook): # pylint: disable=too-few-public-methods
"""Hook to check all requirements are installed within the current dev
Expand Down

0 comments on commit 833b123

Please sign in to comment.