def parse_requirements(
        requirements_path: str = 'requirements.txt') -> t.List[str]:
    """Read contents of requirements.txt file and return data from its relevant lines.

    Only non-empty and non-comment lines are relevant.
    """
    requirements = []
    with HERE.joinpath(requirements_path).open() as reqs_file:
        for requirement in [line.strip() for line in reqs_file.read().splitlines()]:
            if not requirement or requirement.startswith('#'):
                continue
            requirements.append(requirement)
    return requirements
def parse_requirements ( requirements_path : str = 'requirements.txt' ) -> t . List [ str ] : requirements = [ ] with HERE . joinpath ( requirements_path ) . open ( ) as reqs_file : for requirement in [ line . strip ( ) for line in reqs_file . read ( ) . splitlines ( ) ] : if not requirement or requirement . startswith ( '#' ) : continue requirements . append ( requirement ) return requirements
Read contents of requirements.txt file and return data from its relevant lines.

    Only non-empty and non-comment lines are relevant.