From b1bf2238b3cd0f3e0a438788981122a714482349 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 17 Mar 2022 15:29:07 +0100 Subject: [PATCH] Add poetry.lock to generated files `poetry.lock` is a generated file by the python poetry package manager, see https://python-poetry.org/docs/basic-usage/ for references. --- data/generated.go | 3 +++ utils_test.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/data/generated.go b/data/generated.go index 37680fa..4052eec 100644 --- a/data/generated.go +++ b/data/generated.go @@ -93,6 +93,9 @@ var GeneratedCodeNameMatchers = []GeneratedCodeNameMatcher{ // GraphQL relay nameContains("__generated__/"), + + // Poetry lock + nameEndsWith("poetry.lock"), } // GeneratedCodeMatcher checks whether the file with the given data is diff --git a/utils_test.go b/utils_test.go index 713ddac..56fc4c9 100644 --- a/utils_test.go +++ b/utils_test.go @@ -370,6 +370,9 @@ func TestIsGenerated(t *testing.T) { {"Generated/Haxe/Main.java", true, true}, {"Generated/Haxe/Main.cs", true, true}, {"Generated/Haxe/Main.php", true, true}, + + //Poetry lock file + {"Dummy/poetry.lock", false, true}, } for _, tt := range testCases {