How to use the pipreqs.pipreqs.init function in pipreqs

To help you get started, we’ve selected a few pipreqs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bndr / pipreqs / tests / test_pipreqs.py View on Github external
def test_init_savepath(self):
        """
        Test that we can save requiremnts.tt correctly to a different path
        """
        pipreqs.init({'
github bndr / pipreqs / tests / test_pipreqs.py View on Github external
def test_init(self):
        """
        Test that all modules we will test upon, are in requirements file
        """
        pipreqs.init({'
github bndr / pipreqs / tests / test_pipreqs.py View on Github external
def test_init_overwrite(self):
        """
        Test that if requiremnts.txt exists, it will not automatically be overwritten
        """
        with open(self.requirements_path, "w") as f:
            f.write("should_not_be_overwritten")
        pipreqs.init({'
github bndr / pipreqs / tests / test_pipreqs.py View on Github external
def test_ignored_directory(self):
        """
        Test --ignore parameter
        """
        pipreqs.init(
            {'
github bndr / pipreqs / tests / test_pipreqs.py View on Github external
def test_init_local_only(self):
        """
        Test that items listed in requirements.text are the same as locals expected
        """
        pipreqs.init({'