1121290a9fe851ebbf9647f44bfa8f58f4e115b6,src/python/pants/backend/python/lint/bandit/rules_integration_test.py,BanditIntegrationTest,run_bandit,#,36

Before Change


            args.append(f"--bandit-args={passthrough_args}")
        if skip:
            args.append(f"--bandit-skip")
        input_snapshot = self.request_single_product(Snapshot, InputFilesContent(source_files))
        adaptor = PythonTargetAdaptor(
            sources=EagerFilesetWithSpec("test", {"globs": []}, snapshot=input_snapshot),
            address=Address.parse("test:target"),
            compatibility=[interpreter_constraints] if interpreter_constraints else None,
        )
        if origin is None:
            origin = SingleAddress(directory="test", name="target")
        target = BanditTarget(PythonTargetAdaptorWithOrigin(adaptor, origin))
        return self.request_single_product(
            LintResult, Params(target, create_options_bootstrapper(args=args)),
        )

After Change


            args.append(f"--bandit-skip")
        return self.request_single_product(
            LintResult,
            Params(BanditTargets(tuple(targets)), create_options_bootstrapper(args=args)),
        )

    def test_passing_source(self) -> None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 25

Instances


Project Name: pantsbuild/pants
Commit Name: 1121290a9fe851ebbf9647f44bfa8f58f4e115b6
Time: 2020-02-27
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/bandit/rules_integration_test.py
Class Name: BanditIntegrationTest
Method Name: run_bandit


Project Name: pantsbuild/pants
Commit Name: 1121290a9fe851ebbf9647f44bfa8f58f4e115b6
Time: 2020-02-27
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/pylint/rules_integration_test.py
Class Name: PylintIntegrationTest
Method Name: run_pylint


Project Name: pantsbuild/pants
Commit Name: 1121290a9fe851ebbf9647f44bfa8f58f4e115b6
Time: 2020-02-27
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/flake8/rules_integration_test.py
Class Name: Flake8IntegrationTest
Method Name: run_flake8


Project Name: pantsbuild/pants
Commit Name: 1121290a9fe851ebbf9647f44bfa8f58f4e115b6
Time: 2020-02-27
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/bandit/rules_integration_test.py
Class Name: BanditIntegrationTest
Method Name: run_bandit