code: def get_requirements(filename='requirements.txt'):
      
      with open(filename) as f:
          return [
              line.rstrip().split('#')[0]
              for line in f.readlines()
              if not line.startswith('#')
          ]
docs: Get the contents of a file listing the requirements.
  
      :param filename: path to a requirements file
      :type  filename: str
  
      :returns: the list of requirements
      :return type: list