From 73c1d8a1da5d25c524947c84b4bdb6f6bcd739af Mon Sep 17 00:00:00 2001 From: Javier Matias-Cabrera Date: Mon, 22 May 2023 23:29:52 -0400 Subject: [PATCH] Ignore requirements.txt when using python scope --- talismanrc/scopes.go | 2 +- talismanrc/talismanrc_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/talismanrc/scopes.go b/talismanrc/scopes.go index a65a4c71..6129eb67 100644 --- a/talismanrc/scopes.go +++ b/talismanrc/scopes.go @@ -7,5 +7,5 @@ var knownScopes = map[string][]string{ "bazel": {"*.bzl"}, "terraform": {".terraform.lock.hcl"}, "php": {"composer.lock"}, - "python": {"poetry.lock", "Pipfile.lock"}, + "python": {"poetry.lock", "Pipfile.lock", "requirements.txt"}, } diff --git a/talismanrc/talismanrc_test.go b/talismanrc/talismanrc_test.go index 1da13561..de2dea02 100644 --- a/talismanrc/talismanrc_test.go +++ b/talismanrc/talismanrc_test.go @@ -118,6 +118,7 @@ func TestIgnoreAdditionsByScope(t *testing.T) { "python": { testAddition("poetry.lock"), testAddition("Pipfile.lock"), + testAddition("requirements.txt"), }, } @@ -300,7 +301,6 @@ func TestFor(t *testing.T) { }) - } func TestForScan(t *testing.T) {